Ray-tracer?

Hi,

I've got a scene that has a sphere to it, onto the sphere I use an WaterRenderPass (modified for aboveWater function). Now there is only one major problem that is visible to me with water on a globe is that the reflection is all wrong.

Will a ray-tracer able to create a texture of the reflection even though it should be added to a sphere, if so how do i set up the ray-tracer and get it working, I have found no examples of raytracers in jME.

So what I want is to modify the method renderReflection in WaterRenderPass so that it can work for spheres as well.

Please help



//Considerate

Ray Tracing is a fundamentally different technique for creating an image then rasterizing, which is what OpenGL does.  I don't think you'll find any ray tracing support in JME.  It is typically done using very different kinds of data structures and is very slow.



I think what your really looking for is a reflection map, but thats just a guess.

jeffpk said:

I *think* what your really looking for is a reflection map, but thats just a guess.


Thank you for your reply, I think that is exactly what I should use.
Do you have any tutorial for this or could you please post a link to one.

Thanks
//Considerate

I will continue with this in an other thread.



//Considerate