| |
|
|
Andreas Koch | allô zusammen,
peux mir quelqu'un expliquer, comment qui korrekte Verwendung de oglOrtho lautet? j'ai maintenant déjà verschiedene Versionen ausprobiert et viens pas plus. comment muss je cela folgende Beispiel ajuster, avec cela je statt Quadern Rechtecke angezeigt bekomme? KompilierenMarqueSéparationWindow 0,0 - 500,500
$H opengl.ph
oGL("Init", %hwnd, 1, 1, 1, 1)
Ogl("clear")
oGL("Origin", 0, 0, -8)
oGL("Cuboid", 1, 1, 1)
oGL("Origin", -2, 0, -8)
oGL("Cuboid", 1, 1, 1)
oGL("Origin", 2, 0, -8)
oGL("Cuboid", 1, 1, 1)
Ogl("Show")
waitinput
Ogl("clear")
Ogl("glMatrixMode",~gl_projection)
Ogl("glLoadIdentity")
Ogl("glViewport",0,0,Width(%hwnd), Height(%hwnd))
Ogl("glOrtho", 0, 500, 0, 500, -10, 10)
oGL("Origin", 0, 0, -8)
oGL("Cuboid", 1, 1, 1)
oGL("Origin", -2, 0, -8)
oGL("Cuboid", 1, 1, 1)
oGL("Origin", 2, 0, -8)
oGL("Cuboid", 1, 1, 1)
Ogl("Show")
WaitInput
|
|
|
| |
|
|
|
| exposition la fois: KompilierenMarqueSéparation
ogl.2dnow{
ogl("origin",0,0,0)
ogl("posmode",1)
ogl("glEnable",gl_blend)
ogl("glMatrixMode",gl_projection)
ogl("glLoadIdentity")
ogl("glViewport",0,0,ogl.maxx,ogl.maxy)
ogl("glOrtho",long(ogl.orthoCache,0 ),long(ogl.orthoCache,4 ),long(ogl.orthoCache,8 ),long(ogl.orthoCache,12),long(ogl.orthoCache,16),long(ogl.orthoCache,20),long(ogl.orthoCache,24),long(ogl.orthoCache,28),long(ogl.orthoCache,32),long(ogl.orthoCache,36),long(ogl.orthoCache,40),long(ogl.orthoCache,44))
font>
aus qui oglhelper.inc aus dem oglui-paquet: [...] |
|
|
| |
|
|
|
Andreas Koch | allô iF, merci pour deine Antwort. Einen faute habe je trouvé (En-tête Dossier einbinden), mais maintenant vois je keinen Unterschied plus et es funktioniert toujours pas. |
|
|
| |
|
|
|
| je ne sais pas quoi oui c'est ca Du erreichen veux -
mach doch simple la fois un komplettes Beispiel en supplément cela aus Deiner Sicht
pas funktioniert. |
|
|
| |
|
|
|
Andreas Koch | Eigentlich voudrais je aucun perspektivische Ansicht, mais une Parallelprojektion meiner Szene avons. avec cela würden zum Beispiel aus Quadern Rechtecke. cela funktioniert allem Anschein pour avec oglOrtho. maintenant versuche je rauszufinden, comment Je l' Befehl korrekt verwende. Im obigen Beispiel sollte pour meinem Verständnis qui gleiche Szene einmal avec Quadern et einmal avec Rechtecken ausgegeben volonté. cela passiert pas. si je pour diesem Befehl google, bekomme je seulement qui Abfolge qui Befehle, qui je aussi dessus verwende et qui du aussi posté la hâte. |
|
|
| |
|
|
|
| exposition la fois: [...] |
|
|
| |
|
|
|
Andreas Koch | merci, maintenant funktionierts. |
|
|
| |
|
|
|
funkheld | allô, je cherche aussi déjà longtemps so quelque chose , um Sprite darzustellen.
peux du dein Programme la fois s'il te plaît reinstellen ?
merci.
Gruss |
|
|
| |
|
|
|
| exposition la fois: [...] et ici hob i a SpaceShip: [...] |
|
|
| |
|
|
|
funkheld | Hm.., là finde je ne...aucune glortho drin. là wird zuviel avec Texture usw gemacht. cela verwirrt mich un bisschen. je voulais eigentlich seulement la fois une simple Ortho-représentation avec einem BMP-Spritebild et einem Hintergrund.
allez cela pas einfacher ?
merci.
Gruss peter |
|
|
| |
|
|
|
| Herunterladen
tu peux cela oui réduire wenns encore trop viel Code ist -
je serait mais Einarbeiten empfehlen. |
|
|
| |
|
|
|
funkheld | Jup, merci. là stehen quelques belle Sachen im Code.
comment peux on cet Sprite maintenant so durchsichtig faire, cela seulement qui gelben Konturen trop voyons sommes et l'autre durchsichtig ?
merci.
Gruss peter |
|
|
| |
|
|