Car Model out of Cubes

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
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Car Model out of Cubes

Post by GameDude »

Hey,

Does anyone have a good idea how to make a "model" that resembles a car using cubes? Or is there some other easier way to get something that looks like a car using Irrlicht's built in shapes?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Car Model out of Cubes

Post by Radikalizm »

GameDude wrote:Hey,

Does anyone have a good idea how to make a "model" that resembles a car using cubes? Or is there some other easier way to get something that looks like a car using Irrlicht's built in shapes?
What's wrong with good old low-poly meshes?
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Re: Car Model out of Cubes

Post by GameDude »

Nothing, I'm just working on a prototype.
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Car Model out of Cubes

Post by Radikalizm »

Ok then, just 'cubes' is way too vague
How many cubes? Voxel-like format or large format? Uniform cubes or different sizes?

And the fact that you're making a prototype still doesn't really explain why you couldn't use a very simple mesh :D
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Re: Car Model out of Cubes

Post by GameDude »

I guess you you have a point, I could use a generic car model. However with cubes, I'm talking about something that resembles a car. Say a rectangle with four wheels on the bottom. Something similar to the bullet physics vehicle demo, if that makes sense.
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Re: Car Model out of Cubes

Post by Katsankat »

For the hull: addCubeSceneNode(). Then 4 other cubes, setParent(), setPosition() and voila!

Probably not your goal but this can be used for collision detection (the cubes are hidden underneath a real model) : simple shapes for faster calculations.

That being said you got to be good at maths. I did not manage to make it follow the ground.
Brainsaw
Posts: 1183
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: Car Model out of Cubes

Post by Brainsaw »

Katsankat wrote:For the hull: addCubeSceneNode(). Then 4 other cubes, setParent(), setPosition() and voila!

Probably not your goal but this can be used for collision detection (the cubes are hidden underneath a real model) : simple shapes for faster calculations.

That being said you got to be good at maths. I did not manage to make it follow the ground.
That's what physics engines are for. No need to re-invent the wheel, especially as there are lots of wrappers for using some physics engines with Irrlicht.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Post Reply