Strange Camera Issue

Mar 30, 2008 at 9:57 PM
Edited Mar 30, 2008 at 9:58 PM
Hi back again, this time with a strange error concerning the arc camera. When its the current camera my skybox and water texture dissapear and I cant think why. Ive looked for ages now and compared to earlier unedited downloads of your engine that works fine.

Arc Ball

Free Camera

Any ideas appreciated thanks :)
Mar 31, 2008 at 1:15 AM
Edited Mar 31, 2008 at 1:16 AM
When developing that camera I had issues with the water occasionally as well. The culprit at the time was the forward vector, without a proper forward vector, the water shader cannot work properly. The forward vector, calculated in the Update() function in ArcBallCamera.cs, uses the camera's position. You should verify the camera's position is correct. Also, if you have terrain collision enabled for that camera, you should check the ProcessTerrainCollision() as well, it can affect the position of the camera.

My advice would be to make sure neither camera is actually moving, swap between them in debug mode and check all important variables for water rendering and see which ones have changed. I believe forward vector is the main one, position may be important as well.

By the way, the game looks pretty cool. Good job so far.