ray into a skybox

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 103 Jun 20, 2013 at 09:46

Im having trouble converting a normalized direction vector into the faces of a skybox… whats the best way to do this?
Its like its spherical, and I need it to be square.

9qn.png
at the moment its cylindrically chopping off the corners, as if they were circles instead of squares.

2 Replies

Please log in or register to post a reply.

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 103 Jun 20, 2013 at 10:03

ah dont worry i remembered how i fixed it. you have to “squarify normal” the direction, in otherwords make it point to outside a box.

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 103 Jun 20, 2013 at 10:21

well, just for the hell of it, heres my new landscape, hdri lit.

http://public.justcl…4oq0zt.13775373