[SOLVED] Porting another model format...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Linaxys
Posts: 47
Joined: Tue Feb 24, 2009 10:46 pm

[SOLVED] Porting another model format...

Post by Linaxys »

Hello,
I would like to port Renderware model format into my project,
here's a sample RWX model, a floor :

Code: Select all

ModelBegin
#stone3
Surface .5 .3 0
Color .6 .6 .6
  ClumpBegin
    Vertex -.4 0 .4 UV 0 0
    Vertex .4 0 .4 UV 4 0
    Vertex .4 0 -.4 UV 4 4
    Vertex -.4 0 -.4 UV 0 4
    Quad 4 3 2 1
    Texture stone3
    TextureModes Foreshorten 
    Quad 1 2 3 4
  ClumpEnd
ModelEnd
Could you please where I should look to create a mesh, create a surface on it, set the surface's vertices, set it's texture and how to make a Quad from the vertices ?

Thanks !
Last edited by Linaxys on Thu Mar 05, 2009 6:32 am, edited 3 times in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Use the code from the STL loader. It's the most simple format we support, but it should have all the stuff you use. Just make sure that you flip the indices, because you have counter-clockwise orientation of faces 8)
Linaxys
Posts: 47
Joined: Tue Feb 24, 2009 10:46 pm

Post by Linaxys »

Thank you for your suggestion, it's indeed easier to understand than 3DS and Collada :)
Post Reply