Android : SkyBox does not move with camera

on Wednesday, January 28, 2015


In My OpenGL application I have created a SkyBox which works great if I render it from the origin. I render it with the PVMatrix (ProjectionMatrix * ViewMatrix [Camera]) and as I said if I render it from the origin all works great. But if I move the camera to let's say (0,6,-8) it does not work and the SkyBox is rendered as normal cube.


I thought that it is enought to create a ModelMatrix for the SkyBox and set the position in it to the position of the camera but this does not help. Of course I render the SkyBox with the new MVPMatrix now. Do you have any ideas why that does not work and what can I do to get it work?


0 comments:

Post a Comment