Hello!
I’m trying to create a 2 point vanishing view on a house I’ve created but I can’t get it right. I managed to get the isometric view by using
[NOTE]gluLookAt(dist, dist, dist,0.0, 0.0, 0.0,0.0, 1.0, 0.0);[/NOTE]
where dist is sqrt(1/3.0). When I try to set up the 2 point vanishing projection I’m doing something very wrong. Now my object is from -3 to 3 on x-axis ,-3 to 3 on y-axis and -6 to 6 on z-axis. This code
[NOTE]c = 0;
gluLookAt(3.0, 0, 6.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); [/NOTE]
works by setting the translatef range to 0, then goes to the right front corner ,on flat level(y=0) and looks at it sideways. now this gives me the dimetric just fine. but when I try to add perspective , the object gets so warped I cant even understand what went wrong. Here:
[NOTE]c = 0;
gluPerspective(90, 1, 0.1, 20);
gluLookAt(5.0, 0, 10.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);[/NOTE]
I’ve trying changing fov,znear,zfar , the order of the commands, but I just can’t get it to work.