I'm trying to get Parallax Corrected Cubemap or (BPCEM - Box Projected Cubemap Environment Mapping) in udk. But I am facing a problem.
Things are fine when the cubemap is at the center of the world but goes wrong if the centre of the reflection area is elsewhere. The reflection seems to go wrong beyond the camera position, away from the word origin.
The code I use come from
here.
I also tried
this (which is basically the same but with nodes) but no better result.
I'm have a bit of trouble to understand the algorithm by itself but I cannot find where I went wrong.
Second question: Is it possible to link a cubemap position (for instance) to a material parameter without coding? and if I must code where should I search for?
Replies
I vaguely remember having some issues with WorldSpace->LocalSpace conversion which would be one reason why I sticked with WS only.