How to build a shadow map?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to build a shadow map?

Manu
Hi,

After a first successful test with shaders in Java 3D, I would like to go further and try to generate shadows in a scene with one or more shadow maps.
Did anyone among you already try this feature with Java 3D?
What API should I use to build a shadow map quickly, and how can I use it in a shader?

Thanks for your help
Emmanuel Puybaret
Reply | Threaded
Open this post in threaded view
|

Re: How to build a shadow map?

hharrison
I can't say I've ever tried to use shaders in Java3d, please report back on any success/failures you run into.

Have fun!

Harvey
Reply | Threaded
Open this post in threaded view
|

Re: How to build a shadow map?

gouessej
Administrator
In reply to this post by Manu
Hi

Java3D still supports GLSL shaders but it's quite limited (only vertex and pixel shaders). You can use javax.media.j3d.SourceCodeShader and javax.media.j3d.ShaderAppearance. If you need to use tessellation or geometry shaders, contribute or use another scenegraph (Ardor3D, JMonkeyEngine).

August is probably better informed than me about shaders in Java 3D:
https://www.java.net//node/698378
Julien Gouesse | Personal blog | Website