fede-vaccaro/TerrainEngine-OpenGL

Why is value of Camera->GetViewMatrix() is shaking between positive and negative

Opened this issue · 1 comments

image

This is part of value i printed,I print as follows in "camera.h":
image

They are shaking between positive and negative while the camera position is settled.
"invertPitch()" every frame made me failed when i get viewMatrix from camera and try to make some ray intersection operations.I personally think that it would be good to add another interface or datastruct to solve this problem.

Any help or explaination would be appreciate!
Plus I like this program very much(thumb up)

Hi there, sorry for the very late reply.

It should be due to the off-screen reflection rendering. During this phase the camera's pitch is first inverted, then reverted again.

Actually i'm not actively supporting this repository, it was made mainly for fun and i have not much time available for working on it...