Tag Info

New answers tagged

0

I suggest another approach: First you render your world and sky, etc. just like you would do normally. Then you have to sort the clouds (or the vertices of the clouds) from closest to the camera to furthest from the camera. You then test if the camera is inside a cloud, if this is the case, you will have to turn off back face culling so that the insides of ...


1

Refactoring is your friend !!! Separate the issues and try to get your code as generic as possible. Separate and factorise the steps of the computing. Keep comments short. • Boilerplate : // ------------------------ var g = 9.81; //Gravitational acceleration var v = 35.9; //Experimantally measured arrow speed var sqrt = Math.sqrt, atan2 = ...


0

I think there's a special shader for that. To lighten the alpha calculation, it might only consider the first alpha from the mesh from the POV, and blend everything else behind it that has no alpha (or that is not clouds). From the inside of a cloud, other clouds are no longer visible.


0

I think the only solution is to do a 2 pass rendering (as Janos said). But the clouds first need to be Z-Ordered. Then render the outside faces of all clouds (back culling), and then render all inside faces (front culling). This will prevent seeing the inside faces from outside, and the sorting will prevent seeing a cloud behind another cloud. Remember ...


1

Set culling to cull front faces first, then render your clouds. This will render the backfaces. After that, switch culling to cull backfaces, and render the clouds, which will render the front faces on top of the back faces. This will prevent rendering your backfaces on top of the front faces, but still keep back faces visible all times. Update: From the ...


0

Sounds like the clouds have both inside and outside faces. Make your cloud double sided but don't turn off backface culling.


0

I'm not sure about Forge aswell, but it is possible to change the nbt tags of individual items in Minecraft. I doubt that there is no implemenation of changing NBT data in Forge. Just google it! :-)


2

I'm unsure about Forge in specific, but back in Bukkit a few years back, I managed to get custom NBT tags saving data regarding items. You might look into working with NBT tags for setting and storing custom properties on items.



Top 50 recent answers are included