XNA UK User Group

A helping hand for bedroom coders throughout the land.
in

RandomChaos

3D Clouds in XNA - Another Update

http://www.youtube.com/v/khntLU3v_-s <p><a href="http://www.youtube.com/v/khntLU3v_-s">http://www.youtube.com/v/khntLU3v_-s</a></p>

Well I have kind of been letting this code sit for a while, not looked at it as of late, then this week decided to have another play with it, kind of hoping I can put it to bed.

So I have not started to use Ninians sprite sheet, the sheet is full of alphas, so instead of getting them off the sheet and then just sending them to the screen, set the base colour of the sprite then multiply its alpha by the RGB returned from the sprite sheet. This I think gives a more natural cloud look. I still have some performance issues, but have managed to speed up the draw order sort and that has helped a little. I have also put in some terrain so you have a point of reference, was a bit odd just looking at clouds hanging there in the sky..

I still have tones I want to do with this yet. I think the next thing will be imposters, then an editor so you can create a cloud field or set of clouds and be able to save them to disk and re use them as an when you like. Naturally more optimizations and some lighting in the shader.

Hop you like the clip, ratings, and comments are welcome as ever.

Comments

 

Ronzan said:

Great stuff :)

I can't wait to see some code, so I can fix my nebula hehe

June 13, 2008 10:47 AM
 

Nemo Krad said:

LOL, well from what I have seen of your Nebula, it's looking pretty damn cool already!

God knows when I will put the source up, I want to get imposter's in there and also create an editor so you can create cloud fields and save them to be used later in your game.

June 13, 2008 10:55 AM
 

Graphics Runner said:

Looking good as always. I too can't wait for a little demo ;)

June 13, 2008 2:14 PM
 

Dimfacion said:

Impressive ...

June 17, 2008 3:20 PM
 

walthergropius said:

YUM! Lovely stuff, once again.

You know what would be cool? Place and size the clouds based on densities from a greyscale texture per frame, then run some kind of 2D fluid sim/conway's life/whatever on the texture...

June 19, 2008 9:52 AM
 

ileden said:

it's a simple nice cloud but don't u want to use high dynamic range (HDR) in your skydome

September 5, 2008 1:59 PM
 

Nemo Krad said:

Yes, that will come. There is no sky dome used in that clip, it's a sky box using a cube map.

Do you have some suggestions?

September 5, 2008 2:27 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About Nemo Krad

Have been a professional developer since 1995. My skill set ranges from C/C++, VB6,MSSQL, Java Script, VB Script, HTML/ASP, Java, C#, ASP.NET as well as others. I started 3D and games development when the first release of XNA came out in December 2006 and have become addicted to it.