English
Includes

OBJ 3D data Import for OpenGL

 
- Page 1 -



Andreas
Gaida
Hi!
have a small Include File written for 3D OBJ data reading and Dastellen under XProfan 10.
Einschränkungen:
yet only Triangels and Quads installed with which one really most OBJ Files reading can ought to.
it can only OBJ Files red go where each row with @Chr$(13)+@Chr$(10) completed watts.
Files can not To big his and it can not several objeckte in a File his.

in the zipper File is one demonstration Program as Exe and as Source and The OBJ Inc.

As I said is not yet integrally ready but I hope the the a or others already so what begin can.
hope with the Time The Inc strain to.

Program:
keys with : 1,2,3,4,5,6,0 can The different OBJ data loading.
according to Rechenleistung lasts the up to 1 mins vorallem The nr.5
Keys +/- are to that zoomen and the Curso Keys to that turn the Objekts.

MfG
Andreas

683 kB
Kurzbeschreibung: OBJ Include with 3D OBJ data and example Program
Hochgeladen:12/21/06
Downloadcounter395
Download
 
Athlon X2 4800 , 2GB Ram , GeForce 7800GT
Windows XP Pro , XProfan 10 und 11 , Profan2Cpp 1.6b
12/21/06  
 



 
- Page 4 -



Frank
Abbing
Dieter Zornow
The expression is wrong, I take at times, that laden_obj a Procedure and that the becomes here as function called. then must it Correctly
CompileMarkSeparation
objekt_1% = laden_obj("auto.obj")
oder
laden_obj "auto.obj"
object_1% = @&(0)pre>

hot, otherwise goes the appeal schief


the functions too so. The Variable save IMHO always whom last Rückwert.
 
09/05/08  
 



I have now with Wings3D one Quader prepares with 4 Zylinder as Räder.
( Wings3D 0.99.03)

have The then with Wings3D a Textur angezogen.

with the Keys QWESAY can the /The Objects turn.

me coming it only on The Anpassung the Textur on.
each Vertex can a Textur miss out on everybody can would like.
Looks times the BMP-Textures on and the on the car.

but eachone single body can only a Textur having.
one Quader can no 2 Textures allocate.

each individual body , here The Räder or Quader or Zylinder can apiece a Own Textur having.

has joke made.

mfg

 
09/05/08  
 



The code has Error and the pkg no Exe. (jag time xpse drüber)
 
09/05/08  
 



then is well the XProfan10-Compiler somewhere on the hudeln and none observes it.
The Compiler spit no Error Message out. Why not?
an Variablenüberschreitung won't gemeldet.

Perhaps can the of/ one time with XProfan11 compilieren.

mfg
 
09/05/08  
 



I wanted to it with XProfan11 kompilieren, but XPSE fractures with Fehlermeldungen ex. gentry at least a Exe with come in.

If I it without XPSE kompilieren would like then works it too with XProfan11. try whom Error time To eliminating.
 
09/05/08  
 



The Error shining already in the 3d-reading1.inc To stick:


Error : OBJDRAWX(LISTENNUMMER2&) UNDEKLARIERT.
Procnaehe: POINTX
Naehe: : ~65, LISTENNUMMER2&=OGL("STARTLIST")
 
09/05/08  
 



so see jetz The variables in derr INC from :
CompileMarkSeparation
Declare OBJ_vertex![1,1],OBJ_vertex_vn![1,1],OBJ_vertex_vt![1,1],OBJ_face_Quad&[1,1,1],OBJ_counter_v1&,OBJ_counter_vt1&
Declare OBJ_face_TRI%[1,1,1],OBJ_face_POLY%[1,1,1],OBJ_Textur%[1000],OBJ_Texture$[1000],MTL_counter&
Declare OBJ_counter_vn1&,OBJ_counter_f_QUAD&,OBJ_counter_f_TRI&,OBJ_counter_f_POLY&,OBJ_counter_f_POINT&,OBJ_counter_f_LINE&
Declare OBJ_Face_x&,OBJ_MTL$[1000],OBJ_Faces$[61000],OBJ_Vertex_V$[65000],OBJ_Vertex_VN$[65000],OBJ_Vertex_VT$[65000]
Declare OBJ_Textur_count%,OBJ_Textur%,Tex_Data_geladen$
declare rückgabe&,Listennum

an was twice, a fehlte, because the in in the Hauptprogramm was.

XPIA/XPSE compilieren now fehlerfrei, but left is "0".

Error lying probably in anybody Profandatei the compilers.

One Überlauf, the not controlled becomes.

mfg
 
09/05/08  
 



Lad Please one complete integeres pkg high which no Error own.
 
09/05/08  
 




Dieter
Zornow
@Frank:

Frank Abbing
the functions too so. The Variable save IMHO always whom last Rückwert.


I faith You must everything take back and the contrary insist. probiers first time from
CompileMarkSeparation
proc abc

    parameters a&
    return 200 + a&

endproc

cls
Print abc(10)
abc(10)
Print @&(0)
w
ut
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/05/08  
 




CompileMarkSeparation
test{

    return 3

}

test2{}
test
print @&(0)
test2
print @&(0)
ey
is still very aufschlussreich with
3
3


Nachtrag:

@Dieter: interestingly! becomes a function as argument called shining tappt im dunkeln @& not To fill mean You?
 
09/05/08  
 



Compiliert fehlerfrei: XPIA/XPSE.

mfg

15 kB
Hochgeladen:09/05/08
Downloadcounter117
Download
 
09/05/08  
 




Dieter
Zornow
@IF: I have of it written, a Procedure as function aufzurufen, The filling not.. Can too from my first Posting ersehen.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/05/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

60.609 Views

Untitledvor 0 min.
Walter04/30/23
Sven Bader09/23/21
Alibre01/28/21
Ralf Netz04/07/20
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