Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Poor Mans 3D Clouds

Author
Message
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 17th Sep 2009 14:14
Well haven't been on for a bit so i tossed together a little test of 3d clouds which uses 15 different noise textures and randomly places and sizes them based on the configuration and seed. It does have a little bit of the typical alpha tearing, but its usually not too bad. anyways, heres the code with a download below:



It would take a bit of modification to really be useable but thought it may give someone else some ideas.

Attachments

Login to view attachments
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 17th Sep 2009 14:15 Edited at: 17th Sep 2009 14:16
Image 1#

Attachments

Login to view attachments
Coldfire
15
Years of Service
User Offline
Joined: 22nd Oct 2008
Location: Indiana
Posted: 17th Sep 2009 14:16 Edited at: 17th Sep 2009 14:17
Image 2

Attachments

Login to view attachments
Dr Tank
15
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Southampton, UK
Posted: 17th Sep 2009 23:15
Nice. You can get rid of the flickery wierdness by putting

disable object zwrite offset

in the object creation loop. However, this would make the draw order in order of textures i think, and inside that, presumably in order of objects, polygons etc, so you might need to be clever about that if you cared about the rendering order.

Login to post a reply

Server time is: 2024-05-05 02:21:23
Your offset time is: 2024-05-05 02:21:23