Jump to content
  • Advertisement
Sign in to follow this  
nicolasbol

OpenGL Light scattering source code and exec.

This topic is 3668 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, I've been working on an openGL implementation of the light scatttering effect based on Kenny Mitchell article in GPU gems 3. As the example in the book is HLSL based, I thought I may as well release my code, it may help someone. Binaries are provided for Vista and MacOs, I tested it on: - Windows Vista : GeForce 8600 GT - MacOS X 10.5.5: GeForce 8600M GT Light scattering

Share this post


Link to post
Share on other sites
Advertisement
I can't see any lighting on my 7900GS (Windows build). The demo loads up fine, but no light scattering. The console window shows nothing related.



Windows XP Pro, Geforce 7900GS (512MB, latest drivers), Athlon 4800, 2GB RAM

Share this post


Link to post
Share on other sites
Thanks for the demo, very nice work. No problems running it but command line complains about not being able SKY2.OBJ though (the file is not in the .zip).

Share this post


Link to post
Share on other sites
Thanks ndhb, SKY2 is loaded but not used I wanted to make the demo lighter.

@deadstar, looks like the shader doesn't load properly, any compilation error in the console ?

Share this post


Link to post
Share on other sites
Quote:
Original post by nicolasbol
Thanks ndhb, SKY2 is loaded but not used I wanted to make the demo lighter.

@deadstar, looks like the shader doesn't load properly, any compilation error in the console ?


Nope, nothing unusual:


Starting bsp.
Initiating SDL......OK.
Initiating openGL...OK.
Video card supports GL_ARB_vertex_buffer_object.
Video card supports GL_ARB_shading_language.
Video card supports GL_EXT_framebuffer_object.
Loading Shader file:'.\ressources\vert_simpleTexture.glsl'.
Loading Shader file:'.\ressources\frag_simpleTexture.glsl'.
Loading OBJ file:'.\ressources\TENSO.OBJ'.
'TENSO.OBJ' will use Binary Space Partition.
Loading OBJ file:'.\ressources\IKAL.OBJ'.
Loading OBJ file:'.\ressources\SKY1.OBJ'.
Loading OBJ file:'.\ressources\SKY2.OBJ'.
Could not load OBJ file:'.\ressources\SKY2.OBJ'


Share this post


Link to post
Share on other sites
Loading OBJ file:'.\ressources\SKY2.OBJ'.
Could not load OBJ file:'.\ressources\SKY2.OBJ'

That seems unusual...Could not load a sky model? The sky box is rendering in your screenshot so maybe this models responsible some how for the casting of the rays?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!