English
Source / code snippets

produce normal Objects Opengl Sprites - 2

 
who only Sprites having would like, which turn , tip etc ,but itself with Opengl not so intense keep busy would like , separate only the nötigste, the can simply under Opengl only the Objekt produce, turn etc and then in a normal Bitmap wandeln, The then as Sprite used go can.

the others from the Grafikgewimmel becomes complete with the normalen Grafikbefehlen and Bitmapkopierbefehlen of XProfan made.

with my example is the Opengl-lever left. therein becomes really only the Objekt manufactured to that turn, tip etc.
These Opengl-lever we hereafter invisible made, is means only example visible.
it must always hereon geachtet go, the this Objekt(Sprite) always in the black area remaining and not cut we. means too time the turn the Objects testing.

The eigentliche Screen is right, where the transformed Sprite moving is with whom normalen Grafikbefehlen of XProfan.

of these commands becomes The Textur prepares for the Opengl-Objekt(later Sprite), having above here in the Forum already report:
var tex.car%=erzeugetex(bild_auto$)

with "drawglscene" becomes the Objekt in the Opengl-lever new drawn. These becomes always only then called, if with the Objekt in the Opengl-lever something employed watts (turn, zoomen etc).

with "oglzubmp()" becomes the image in this lever "bild_auto_h&" reingepackt, which here angefertigt watts :
bild_auto_h& = Create("HPIC", -1,bild_auto$ ), this is then the Sprite to that moving

now begins The work with the normalen Grafikbefehlen of XProfan.

steer can the Sprite with the Keys : Q,W,E,s,X.

Bastelt so time and schaut you The Commands in all silence on.

zipper is in the attachment.

mfg
peter

35 kB
Hochgeladen:08/24/08
Downloadcounter267
Download
 
08/24/08  
 



an new spending. Sprite with a obstacle.

Gesteuert is with whom Keys : QWES

some Tricks with GetDiBits, BitBlt etc.

mfg
peter

 
08/27/08  
 



nice, look too time here: [...]  - and the SpaceShip: [...] 
 
08/27/08  
 



this Spaceship know I ! , the others not yet.
is beautiful been successful , class experiement this Spaceship, at others Program remaining my screen dark.

I wanted to only the OpenGL-Sprite having , (because one since the body spin can without the one itself new Rechenverfahren for select must) and the Games-surroundings ought to The normal Grafikoberfläche without OpenGl his.
I have too fixes, the The rendition in OpenGl liquid is.

Bloss The detailed Punkteauswertung for controls , Messungen etc in OpenGl is a Eiertanz.
with each Zoomen the OpenGl-surface changes the entire Punktestruktur.
for a Spielecollison without Virtually one Punktgenaues take action can itself Opengl very well use.

mfg
peter
 
08/28/08  
 



Peter Bierbachh
for a Spielecollison without Virtually one Punktgenaues take action can itself Opengl very well use.
mfg
peter


alike How or with which one "darstellt" (gdi or opengl), "punktgenaues Verfahren" afford weder the an yet the others - must one always yourself zusehen and itself something consider.

On each drop but can (naturally) "Punktgenau" works by OpenGL.

Wandelt one The rotierten Graphics in "GDI-Sprites" circa, is one but not absolutely rather "bedient", as if one sooner same a OGL-Viewport uses and then too integrally others effects set can.
 
12/19/08  
 




Frank
Abbing
iF

Peter Bierbachh
for a Spielecollison without Virtually one Punktgenaues take action can itself Opengl very well use.
mfg
peter


alike How or with which one "darstellt" (gdi or opengl), "punktgenaues Verfahren" afford weder the an yet the others - must one always yourself zusehen and itself something consider.

On each drop but can (naturally) "Punktgenau" works by OpenGL.

Wandelt one The rotierten Graphics in "GDI-Sprites" circa, is one but not absolutely rather "bedient", as if one sooner same a OGL-Viewport uses and then too integrally others effects set can.


for punktgenaue GDI-Kollisionen bid The ProSpeed.dll speedy Assembler-functions on. so is one well bedient.
Rechteckkollisionen are of course yet faster, too The finds one naturally in the Prospeed.
 
12/19/08  
 





for punktgenaue GDI-Kollisionen bid The ProSpeed.dll speedy Assembler-functions on. so is one well bedient.


Since there it unfortunately no flüssige turn the Objects during the Programmablaufes. one must since the Rotierung before as Sprites abspeichern. means if I my Objects circa 0,5 strain turn would like (these accuracy need I with my Experiemente) must I 620 Sprites secure for a complete turn. I have 12 derartige Objects on the walk/turn. therefore ziehe I my Vesuch with the conversion the OGL-Objects To Sprite to. If you me punktgenaue Collision create can , How I tappt im dunkeln in the demonstration have, only with OGL or of ProSpeed would I you grateful.

mfg
 
12/19/08  
 




Frank
Abbing

therefore ziehe I my Vesuch with the conversion the OGL-Objects To Sprite to. If you me punktgenaue Collision create can , How I tappt im dunkeln in the demonstration have, only with OGL or of ProSpeed would I you grateful.


for Echtzeit-turns of many large Sprites at the same time is GDI even too slow. there helps too no Assembler, because the Grafikdaten not nativ machine go can, as z.B. DirectX possible is.
in a, How with the OGL goes.
 
12/19/08  
 



The Prospeed can still Kollision of Bitmasken, or? if so, then went the still slight...
 
12/19/08  
 




Frank
Abbing
Yes, but the whole wouldn't in Echtzeit in combination with several grossen, itself drehenden Sprites/Bitmaps, functions. and sincere said have I none The pleasure the To testing for somebody, the itself afterwards anyhow again pöbelnd beschwert, or. for famous is.
 
12/20/08  
 



there my Objects well functions with the obengenannten Sprite of OGL would like I the whole neither More unbauen.

mfg
 
12/20/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

21.789 Views

Untitledvor 0 min.
Sven Bader08/12/21
Tango08/06/21
Michael W.03/19/18
Heltal03/09/15
More...

Themeninformationen

this Topic has 3 subscriber:

unbekannt (5x)
Frank Abbing (3x)
iF (3x)


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