GLBasic forum

Feature request => 3D => Topic started by: Schranz0r on 2008-Oct-28

Title: Rotate vor Movement?
Post by: Schranz0r on 2008-Oct-28
Hi Gernot!

Sagmal wieso geht das den in GLBasic nicht? :

http://wiki.delphigl.com/index.php/Tutorial_Matrix2#Kombination_-_Rotate_vor_Translate

Wär extrem cool für 3D Movements ;) ( besonders für die Camera :) )
Title: Re: Rotate vor Movement?
Post by: Heiko on 2008-Oct-28
Ich glaube beim ES hatte er sowas gemacht, bin mir aber nichtmehr wirklich sicher grad im Moment.
Title: Re: Rotate vor Movement?
Post by: Kitty Hello on 2008-Oct-28
X_PUSHMATRIX - damit geht's.
Title: Re: Rotate vor Movement?
Post by: Schranz0r on 2008-Oct-28
Hat wer was vom ES gesagt? *kopfschüttel*

Nein Gernot, ich frage wieso es so nicht geht, obwohl es in OpenGL so geht?!
Mir schon klar das es mit PushMatrix geht :D
Title: Re: Rotate vor Movement?
Post by: Kitty Hello on 2008-Oct-28
Ich versteh jetzt die Frage nicht.
OK, GLBasic hat eine Matrix in der Move/Rotate/Scale drin ist - und die Reihenfolge hier ist fest, weil logisch.
Wenn man die Reihenfolge ändern will, nimmt man x_pushmatrix - das macht man in OpenGL auch immer so.
Title: Re: Rotate vor Movement?
Post by: Schranz0r on 2008-Oct-28
ne muss nicht :)

In OpenGL kannst du Rotate vor Translate machen ;) OHNE Pushmartix!

Mit dem OpenGL Wrapper funzt das ja auch :D
Sonst nehm ich halt den her! Kein problem ;)

Mich hat nur das "wieso" so interessiert.