Drawing the skybox to a (dynamic) cubemap
by Manoel Neto · in Torque Game Engine Advanced · 08/21/2006 (8:51 am) · 2 replies
I reached a point where I need the sky to appear on dynamic cubemaps, but it won't render no matter what. When I set the render masks, seems the Sky::renderSkyBox() cannot properly render the sky textures. It smells like a matrix issue, but the sky rendering code is sorta confusing (it seems to do way more things than it sohuld need to get the skybox rendered).
Does anyone have a clue on why the skybox would fail to render to the cubemap?
Does anyone have a clue on why the skybox would fail to render to the cubemap?
About the author
Recent Threads
#2
This is crazy, I'm almost scrapping the whole sky rendering code and writing my own, or making it to use a shader and have more control on how it's rendered.
08/23/2006 (7:31 am)
I got it to show up on the cubemaps, well, sort of. I did a quick hack in the calcPoints function, to make the skybox points in the [-1, 1] range, and disabled the renderBan rendering. The skybox is drawing, but it doesn't look quite right from some angles (it seems plit up/wrapped around, it's very weird).This is crazy, I'm almost scrapping the whole sky rendering code and writing my own, or making it to use a shader and have more control on how it's rendered.
Torque Owner Jeremiah Fulbright