DGL
https://delphigl.com/forum/

Views
https://delphigl.com/forum/viewtopic.php?f=19&t=4733
Seite 1 von 1

Autor:  Stucuk [ Sa Okt 15, 2005 23:34 ]
Betreff des Beitrags:  Views

Im wondering how to convert the following to place the can so it rotates around the center of the box at the top left insted of the center of the view. I tryed several things but when the depth is changed it screws it up and i don't know how to compensate for it.

Code:
  1.  
  2. glTranslatef(Position.x, Position.y, ModelModeCamera.Depth);
  3.  
  4.   glRotatef(ModelModeCamera.X_Angle, 1, 0, 0); // pitch
  5.   glRotatef(ModelModeCamera.Y_Angle, 0, 1, 0);  // roll
  6.  


Iv currently tryed setting Position, playing with gluunproject. And can't think of anything else.

Bild

Autor:  Flash [ So Okt 16, 2005 12:55 ]
Betreff des Beitrags: 

Are all 4 views in one rendering context? If so...may you have to play with gluPerspective or something, to change the position of (0,0,0) in your view. (just an idea. I don't even believe this will work....but... :? )

Autor:  Stucuk [ So Okt 16, 2005 18:06 ]
Betreff des Beitrags: 

Flash hat geschrieben:
Are all 4 views in one rendering context? If so...may you have to play with gluPerspective or something, to change the position of (0,0,0) in your view. (just an idea. I don't even believe this will work....but... :? )


Setting the viewport and perspective works (never thought about the viewport b4).

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/