Where to find Mesh Structure description ?

Advanced game related topics
banban73
User
User
Posts: 21
Joined: Sun Jul 18, 2004 12:03 pm
Location: Bergerac - France

Where to find Mesh Structure description ?

Post 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
Anonymous

Post 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.

@++
banban73
User
User
Posts: 21
Joined: Sun Jul 18, 2004 12:03 pm
Location: Bergerac - France

Post by banban73 »

Thanks for the help Cpl.Bator.
See You in french forums !

Regards
Post Reply