Page 1 of 1

Where to find Mesh Structure description ?

Posted: Wed Nov 15, 2006 10:20 am
by banban73
Hello,

I am coding an importer for ".x" files into PB (already retrieves accurate meshes and display them) but I am stucked with UV coords parsing (code gives no error on runtime but the meshes appear plain-colored).
Is there a way to retrieve datas from an existing PB mesh to check the values, in other words, is the mesh structure documented somewhere ? It seems Ogre site does not give infos about structures, nor does PB site.

Thank you in advance,

Best regards

Posted: Wed Nov 15, 2006 9:14 pm
by Anonymous
if you speak french, you can go on french forum, i can't help you here because my english is too poor...

i try nevertheless :P

The structure of an mesh in pb are :

Code: Select all

Structure Vertex
   px.f
   py.f
   pz.f
   nx.f
   ny.f
   nz.f
   co.l
   U.f
   V.f
EndStructure 
A face is composed by 3 vertex, a quad by 2 face, etc...

http://purebasic.forum-gratuit.com/view ... 19&start=0

go in 3D section for more information.

@++

Posted: Thu Nov 16, 2006 1:07 pm
by banban73
Thanks for the help Cpl.Bator.
See You in french forums !

Regards