Cubemap Questions
Blitz3D Forums/Blitz3D Programming/Cubemap Questions
| ||
I have tried to do some cubemapping with a water plane. However the cubemap stuff doesn't produce the desired results basing the cubemapping from the plane's xyz, or the camera's xyz. The cubemap in my mind should be like my following example, where a ray hits the water depending on the camera's angle, and basing the cubemap from the coords where the ray hits the water. C = Camera O = object * = ray w = waterplane X = wanted xyz coords e = emtpy space(stupid forums not allowing spaces) CeeeeeeeOeee e*eeeee*eeee ee*eee*eeeee eee*e*eeeeee wwwwXwwwwwww Does this seem logic? or am I completely lost? How do you do a ray to obtain the wanted xyz parameters? |
| ||
try this http://www.d-grafix.com/software.html there are bugs, but check the forums as i suspect someone has improved it by now. Also check for posts by red oktober and cygnus |
| ||
Your example works fine, with skyboxes... Once you have a terrain you will see the mesh's back being reflected. |
| ||
XmlSpy and D-Grafix.... Use multiple pass renders and a clip plane when rendering from under the water so the bottom of the terrain/mesh/whatever doesnt get drawn.. its not 100% perfect, but it works well enough on slight waves. :) |
| ||
Hi cygnus, :) Any chance you can email me an example of this, as im on a tight project sched and cannot really experiment too hard. |
| ||
Yes, me too. |
| ||
heh, Tight project sched? you dono the meaning ;) I guess i should throw a demo together though.. maybe a bit later today :D |
| ||
Update... been stupidly busy and living in a home without Broadband at the moment... and i dont have my blitz projects with me, so i dont get to do any programming :/ |