meshBuffer

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
lostclimategames
Posts: 331
Joined: Sat Sep 02, 2006 4:11 am
Location: Michigan
Contact:

meshBuffer

Post by lostclimategames »

ok, i want to use a mesh that is returned from a different engine (i plan to use irrlicht as the renderer and the other engine for the rest of the stuff) now if i wanted to do this would I just do this?

Code: Select all

irr::scene::SMeshBuffer* meshbuff;
meshbuff.Indices= pMesh; /// mesh from other engine
IAnimatedMesh* mesh = smgr->addMeshBuffer  ( meshbuff);
___________________________
For all of your 3D/2D resource needs:
Image
datamagik
Posts: 26
Joined: Wed Feb 14, 2007 11:25 pm
Location: Bar Harbor, Maine USA

Post by datamagik »

What format is the other mesh in?
lostclimategames
Posts: 331
Joined: Sat Sep 02, 2006 4:11 am
Location: Michigan
Contact:

Post by lostclimategames »

well heres the disscussion on the forum for the other engine i use:
http://www.coniserver.net/ubbthreads/sh ... Post697706

In one of the replys, someone said it was in dx format. im not sure what the difference is, i am a noob when it comes to dx, or opengl, i've just used basic engine commands up till now.
___________________________
For all of your 3D/2D resource needs:
Image
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Most likely the other engines vertex format is not the same as what Irrlicht uses. You would need to create a mesh buffer of the correct type [SMeshBuffer, SMeshBufferLightMap or SMeshBufferTangents], and then push vertices and indices onto that mesh buffer, being sure to initialize the right fields of each vertex.

Travis
Post Reply