Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Do Apr 25, 2024 12:35

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: Views
BeitragVerfasst: Sa Okt 15, 2005 23:34 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jul 21, 2004 22:39
Beiträge: 360
Wohnort: UK, Scotland
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

_________________
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Okt 16, 2005 12:55 
Offline
Guitar Hero
Benutzeravatar

Registriert: Do Sep 25, 2003 15:56
Beiträge: 7804
Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
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... :? )

_________________
Blog: kevin-fleischer.de und fbaingermany.com


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Okt 16, 2005 18:06 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jul 21, 2004 22:39
Beiträge: 360
Wohnort: UK, Scotland
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).

_________________
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 36 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 1.821s | 17 Queries | GZIP : On ]