Cubes, Cylinderr, Spheres and Pipes

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
Katsumi
Posts: 10
Joined: Fri Feb 27, 2009 9:26 am

Cubes, Cylinderr, Spheres and Pipes

Post by Katsumi »

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? :wink:
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

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 »

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 »

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 »

oh there it is.
thanks
Post Reply