| Poster | : zouche | | Posts | : 1 | | Country | : | | City | : |
| | | | Posted by zouche on 30/08/2007 at 16:50:39
| | Hi,
I've been reading these tutorials since Series 1 and have found them to be incredibly useful learning tools. If there's ever been something I didn't understand I could always find the answer on these forums or the internet, but I've been stuck on this chapter for ages!
It's probably going to end up being incredibly simple, but can someone tell me why the clipping plane which was defined for the REFRACTION map had +5.0 as its height, but the clipping plane for the REFLECTION map has -5.0?
I checked the XNA API and it says that "The W component defines the distance of the Plane along the normal from the origin".
But if the refraction map has a negative normal (pointing straight down), then a W component of +5.0 should put it 5 units BELOW the origin (along the direction of the normal), when in fact it actually puts it 5 units above at the correct height.
The reverse of this is also true for the reflection map. Can someone explain this to me PLEASE? I'm the type of coder that needs to understand exactly what I'm doing before my mind can be at peace.
Thanks a lot! | |
|
|