English
Forum

Done: OpenGL: Own Sphere draw

 
- Page 1 -


i want ogl.sphere self to charge circa Einfluss on each Vertexe take to, How errechnet one The Vertexe and normal?

on the end ought to a ogl.List for nötige performance care, so the eigentliche Algorithmus for Erzeugung the Sphere not too performant his must.

can someone help?

@Frank: You Perhaps one ASM for a Sphereerzeugung?
 
09/01/08  
 



 
- Page 2 -




allegedly is indeed OGL3.0 recent rausgekommen...


reading us still first 1.4 and 2.0 correctly. Proggen.
I stops nothing of undichten Mutmaßungen.

means: The "originalbefehle" in brackets settle and to whom originalen Variablenamen The Wellenlinie.

mfg
 
09/03/08  
 





NIE virtual, that to the to that draw one doofen Dreiecks with indicated of 3 Eckpunkten needed...


look you Purebasic on, ... look you Freebasic on,... look you Delphi on...

each Program has its own Types, before the Ogl-commands comes.

mfg
peter
 
09/03/08  
 



Peter Bierbachh

Peter Bierbachh

allegedly is indeed OGL3.0 recent rausgekommen...


...

The "originalbefehle" in brackets settle and to whom originalen Variablenamen The Wellenlinie.



and It's all right even yet plainer, because who xpse using must not yet once "Wellenlinien" (tildes) set.

herewith can The opengl-command simply directly eintippen, these go into faster Calls konvertiert. (More performance)

in the Earth-example [...]  can the well understand.

OpenGL-commands: abc(a,b,c)

XProfan: ogl("abc",a,b,c)

XProfan with XPSE: abc(a,b,c)
 
09/03/08  
 



OGL 3.0 Specification on the 11. august 2008 showed up. Heisst Yes not, that driver already existieren... fountain: [...] 
Greeting, woodpecker
 
09/03/08  
 



pay attention , in xpse there The Variable "GL_BGRA "nicht, for Opengl, for must again a number by hand staid go.

or has IF whom lack already fixed?

mfg
 
09/03/08  
 



XPSE knows The Constant GL_RGBA with the worth $1908, (yet) not however GL_BGRA with the worth $80E1.
 
09/03/08  
 



 
- Page 3 -


finally the XPSE-course-example with the Dreiecks-Eckpunkten found. Well, paper is even geduldig...
CompileMarkSeparation
Declare vertex#:Dim vertex#,3*3*8:float vertex#,0=-1,-1,0, 1,-1,0, 0,1,0
Declare color#:Dim color#,3*4*8:float color#,0=1,0,0,0.5, 0,0,1,0.5, 0,1,0,0.5
Declare xpgl&:xpgl&=oGL("CreateXPGL","T","VC",1,vertex#,color#,0,0)
Cls 0:oGL("Init",%HWnd,.1,.2,.3,1):oGL("Clear")
oGL("Origin",0,0,-4):oGL("BlendMode", 0):oGL("PosMode", 1)
oGL("UseXPGL",xpgl&):oGL("Move",0,0,1):oGL("Rotate",0,0,0):
oGl("DrawXPGL",0,3):oGL("Show")
WaitInput :Dispose vertex#:Dispose color#:
>

I hope, the shadet too, if ichs then with Ratcliff´s bullet try...
Greeting
 
09/03/08  
 





finally the XPSE-course-example with the Dreiecks-Eckpunkten found.


what has with the XPSE it To do?
Runs still without XPSE.

Übersichtlicher is it , The command among themselves To write and not with the ":" next to each other.

mfg
 
09/03/08  
 



Yes, such Doppelpunkte hinder The Overview and Erweiterbarkeit, so sees one it still too same rather:
CompileMarkSeparation
DECLARE VERTEX#,COLOR#,XPGL&
DIM VERTEX#,3*3*8
FLOAT VERTEX#,0=-1,-1,0, 1,-1,0, 0,1,0
DIM COLOR#,3*4*8
FLOAT COLOR#,0=1,0,0,0.5, 0,0,1,0.5, 0,1,0,0.5
XPGL&=OGL("CreateXPGL","T","VC",1,VERTEX#,COLOR#,0,0)
CLS 0
OGL("Init",%HWND,.1,.2,.3,1)
OGL("Clear")
OGL("Origin",0,0,-4)
OGL("BlendMode", 0)
OGL("PosMode", 1)
OGL("UseXPGL",XPGL&)
OGL("Move",0,0,1)
OGL("Rotate",0,0,0):
OGL("DrawXPGL",0,3)
OGL("Show")
WAITINPUT
DISPOSE VERTEX#
SE COLOR#
 
09/03/08  
 



XPGL naturally, not XPSE... SORRY!
 
09/03/08  
 




Andreas
Brandt
having to some Time too this trouble. have different things ausprobiert having but always a problem with the distribution the Eckpunkte. If you from the Eckpunkten one Würfels ausgehst and then The from it resultierenden Dreiecke Teilst (break on the Page between P2 and P3) which You on the Kugeloberfläche new ausrichtest, then get You a Kugeloberfläche with roughly same Oberflächengüte. though double itself with each Durchlauf the Dreieckbrechung The Number of Dreiecke.
If you interresse in a Algorythmus have (in PureBasic) mail me time.
 
12/29/08  
 



iF
already posted: [...] 

You can with OGL any gl-functions Call.

hemisphere is so too no trouble, solely theta3 bisect.


Hello Andreas, I had that here in the Thread angesprochene trouble already solve can and a Solution [...]  publishes. The XProfan-world [...]  have I so created.

your Sourcecode would I (nevertheless) gladly discover, can Yes only help.
 
12/29/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

17.091 Views

Untitledvor 0 min.
H.Brill10/29/23
Sven Bader07/12/21
Michaeal10/14/13
Andreas Koch09/11/12
More...

Themeninformationen



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