Triangle reduction in LODs (in practice).

Started by
10 comments, last by Captian Goatse 20 years, 8 months ago
Now I have a final problem. I can't seem to get the right distance from the center of the node to the position of camera.

The behaviour is extremely wierd, since I have higher detail on the side closer to the origin and lower on the further side. In fact it is frustratingly nasty.

I'm using displacement = cam.pos - node.center

and then getting the unsquared length. And thoughts on what I might be doing wrong?


Edit: Well final and final, I have to fix the cracs after that and it should be relatively easy.

[edited by - Captian Goatse on August 17, 2003 2:00:49 PM]
Advertisement
If you are using the unsquared "distance" try to take the absolute value of the difference.

distance = fabs(camera.pos.x - node.center.x) + fabs(camera.pos.z - node.center.z)

HellRaiZer
HellRaiZer

This topic is closed to new replies.

Advertisement