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.
Katsumi
Posts: 10 Joined: Fri Feb 27, 2009 9:26 am
Post
by Katsumi » Wed Mar 04, 2009 2:52 pm
Hi.
what is the best way to create standard objects in irrlicht? i see only cubes in api.
next step is to transform this standard objects. example the cube get a new length of 6, but height und width is 4. Or a self created pipe get a new lenght of 20 in runtime.
have anybody a tutorial for this?
vitek
Bug Slayer
Posts: 3919 Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR
Post
by vitek » Thu Mar 05, 2009 4:56 am
Code: Select all
cube->setScale(core::vector3df(4.f, 4.f, 6.f));
As for a pipe,If you're using Irrlicht trunk you could use a cylinder mesh created with..
Code: Select all
scene::IMesh* mesh = smgr->getGeometryCreator()->createCylinderMesh(...);
Travis
venomzx
Posts: 3 Joined: Wed Apr 15, 2009 10:18 am
Post
by venomzx » Wed Apr 15, 2009 10:20 am
i have the same question.
i don't see the function getGeometryCreator in scene manager.
where is the GeometryCreator ?
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Wed Apr 15, 2009 11:14 am
Will be in Irrlicht 1.6, use SVN/trunk for now.
venomzx
Posts: 3 Joined: Wed Apr 15, 2009 10:18 am
Post
by venomzx » Wed Apr 15, 2009 1:51 pm
oh there it is.
thanks