English
Forum

usage of oglOrtho

 

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?
CompileMarkSeparation
Window 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
 
11/13/12  
 



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:  [...] 
 
11/14/12  
 




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.
 
11/14/12  
 



i don't know what very You achieve want -

mach still simply time one complete example moreover the from your visibility

not functions.
 
11/14/12  
 




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.
 
11/14/12  
 



look time:  [...] 
 
11/14/12  
 




Andreas
Koch
thanks, now funktionierts.
 
11/15/12  
 




funkheld
Hello, I Search already long such a thing , circa Sprite darzustellen.

can you your Program time Please reinstellen ?

Thank you.

greeting
 
11/16/12  
 



look time:  [...]  and here lifted i a SpaceShip:  [...] 
 
11/16/12  
 




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
 
11/17/12  
 



Download



You can the Yes reduce ifs yet To plenty code is -

i'd but Einarbeiten recommend.

474 kB
Hochgeladen:11/17/12
Downloadcounter25
Download
100 kB
Hochgeladen:11/17/12
Downloadcounter29
Download
 
11/17/12  
 




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
 
11/17/12  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

14.003 Views

Untitledvor 0 min.
H.Brill10/29/23
Sven Bader07/25/21
Member 145180311/18/20
Andreas Koch10/05/16
More...

Themeninformationen

this Topic has 3 subscriber:

iF (12x)
funkheld (9x)
Andreas Koch (4x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie