English
Forum

usage of oglOrtho

 
- Page 1 -



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  
 



 
- Page 2 -


well so How I the at o.g. SpaceShip made have -

have here a "TGA2TEX" vorgemacht: [...]  and a "bmpbmp2tex".
 
11/17/12  
 




funkheld
Hello, where find I these Spacechip.tga and these Stencil ?

Thank you.

greeting
peter
 
11/17/12  
 



in the already named Thread ( [...]  ) have I 2 functions

posted with them You either a TGA or from 2 BMP Files

a TEX File produce can and a TEX-Loaderfunktion is too in the

oglhelper.inc include - means everything what need. an TGA-File create

(had but not there 2 BMPs well plainer To produce are) can You with

different Grafikprogrammen How IrfanView or Gimp. One BMP is simply

the RGB-Image and the 2. BMP can You as Stencil use - according to the

How You The function anpasst can You to determine How the Stencil wirken should

or. whether transparent or semitransparent etc. simply circa a RGBA-Tex-

File To produce.
 
11/18/12  
 




funkheld
I have now 2 BMP-Images made. The go too to a Tex gewandelt.
The shadow is To see. but which colour must as see through colour chosen go for the Hauptobject ? at this time can I nirgends where durchschauen .

How can I only one Hauptbild produce of BMP-Image without these shadow (Stencil) with the Umwandelprogramm ?

Thank you.

greeting
peter
 
11/18/12  
 



The Bytewert the Variable a places whom Alpha-transparency-worth or. The

Durchsichtigkeit the angegebenen colour solid - You can so play and in the code

self determine whom worth a with which colour holds or whether/ when a 0 or 255

or a worth between has.
 
11/18/12  
 




funkheld
this is Yes Mist, the one there no solid colour as Duchsichtigkeit determine can,

I have zero drin in the Image , but appear Black.

greeting
peter

49 kB
Hochgeladen:11/18/12
Downloadcounter86
Download
 
11/18/12  
 



what write You there? the standing with regard to content Yes very in the Widerspruch to the what

I in previous Posting wrote. You can a still on 0..255 settle as you

popular, z.B. with of/ one designed colour or or...
 
11/18/12  
 




funkheld
How can the image on the Farbwert : FF00FF transparent go.
The others visible colours are then of Farbwert : FF00FF abweichend.

greeting
peter
 
11/18/12  
 



in the code is a:=getrvalue(getPixel(x+xx+1,y)) vorgemacht, means that the

Durchsichtigkeitsgrad itself on the Rotanteil the Pixels orientiert. Mach still

instead something like How a=if(c==$FF00FF,0,255) or. a=c==$FF00FF*255
 
11/18/12  
 



Gib time everything in a Zipdatei then schausch what there verwürgt is.
 
11/19/12  
 




funkheld
this is clarified.
the Schattenbild have I Black made . therefore were any both Images transparent (disappeared).

How do I get the normal Image with whom black to put now transparent ?

Thank you.

greeting

3 kB
Hochgeladen:11/19/12
Downloadcounter60
Download
 
11/19/12  
 



I faith You want this here:

Download



to that understanding: You benötigst for this object no of actual Pixelmaterial

abweichendes Stencil-Image there You Yes simply The in the Image located colour 0 with the

Alphawert 0 into TEX take off want. the abweichende Stencil-Image needed

one Yes only then if one additional not Spritebild located Information

for Stencil needed. I have you means a TEXMaker for the Sprite and a

for shadow prepares and for whom OGL-code something minimizes.

1.307 kB
Hochgeladen:11/19/12
Downloadcounter61
Download
517 kB
Hochgeladen:11/19/12
Downloadcounter45
Download
 
11/19/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.046 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