| |
|
|
 Andreas Koch | Hello together,
can someone explain, as korrekte usage of oglOrtho sounds? I have now already different versions ausprobiert and come not further. How must I the following example adjust, so I instead of Quadern Rechtecke displayed get? CompileMarkSeparationWindow 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
|
|
|
| |
|
|
|
 | look time: CompileMarkSeparation
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>
from the oglhelper.inc from the oglui-pkg: [...]  |
|
|
| |
|
|
|
 Andreas Koch | Hello iF, thanks for your response. a Error have I found (Header File integrate), but now see I none Difference More and it functions still not. |
|
|
| |
|
|
|
 | i don't know what very You achieve want -
mach still simply time one complete example moreover the from your visibility
not functions. |
|
|
| |
|
|
|
 Andreas Koch | really would like I no perspektivische view, separate a Parallelprojektion of my scene having. so would to that example from Quadern Rechtecke. the functions everything appearance to with oglOrtho. now try I rauszufinden, How I the commands correctly use. in the obigen example ought to to my understanding The same scene once with Quadern and once with Rechtecken outputted go. the happens not. If I to this commands google, I get only The Abfolge the command, The so did i supra use and the You too posted have. |
|
|
| |
|
|
|
 | |
|
| |
|
|
|
 Andreas Koch | thanks, now funktionierts. |
|
|
| |
|
|
|
 funkheld | Hello, I Search already long such a thing , circa Sprite darzustellen.
can you your Program time Please reinstellen ?
Thank you.
greeting |
|
|
| |
|
|
|
 | look time: [...] and here lifted i a SpaceShip: [...]  |
|
|
| |
|
|
|
 funkheld | Hm.., there find I no glortho drin. there becomes too much with Texture etc made. the confused me a little bit. I wanted to really only time a simple Ortho-statement with a BMP-Spritebild and one background.
goes not plainer ?
Thank you.
greeting peter |
|
|
| |
|
|
|
 | Download

You can the Yes reduce ifs yet To plenty code is -
i'd but Einarbeiten recommend. |
|
|
| |
|
|
|
 funkheld | Jup, thanks. there stand some nice things in the code.
How can this Sprite now so transparent make, the only The yellow Konturen To see are and the others transparent ?
Thank you.
greeting peter |
|
|
| |
|
|