Skip to main content
gamedev.net
🔒 Locked

Isometric question

Started by Yami_Yugi 1 reply 900+ views
Original Post
Yami_Yugi
Yami_Yugi
Ok here''s an obvious question that for some reason I dont know the answer to. I am currently working on a 2d engine and i''m not exactly clear on the the theroy side of things. When isometric objects are made are they 2d tiles mapped to 3d objects or are they just 2d objects with their physical attributes?
"In life, no matter how hard we try, we can not escape our fate. Follow your destiny and learn the purpose of your existence"-Ishisu
Waverider
Waverider
Here's the ambiguous answer: whatever works for you.

Here's a more detailed answer:

Generally, I try to keep the physical attributes separate from the rendering attributes. You could treat all objects in any 2D game in a 3D fashion, manipulating their orientations, moving them around, collision detection with polygonal volumes, etc.

When it comes time to render, you could render them as 3D objects with polygons (with or without a perspective projection), using 2D bitmaps, or whatever. Same goes for wall decorations, floor tiles, etc. Floor tiles could be textures rendered on quads, or pre-generated bitmaps simply rendered as tiles.

Buildings in town could have a 3D volume for collision detection against objects, but each could be rendered as a huge bitmap.

One thing I noticed about StarCraft and Diablo is that the ramps and staircases aren't really handled in a 3D fashion. The engine knows you are at a higher or lower altitude, but the ramps and staircases are really nothing more than irregularly shaped barriers. They could have just as easily been rendered as barriers and we would think we are just running around a totally flat level. Because they look like staircases and ramps, we get the sense that we are moving up or down a sloped surface.

You could also just treat all objects as 2D square shapes for purposes of 2D collision detection and then render them any way you like.


[edited by - Waverider on June 3, 2003 3:04:29 PM]
It's not what you're taught, it's what you learn.
Yami_Yugi
Yami_Yugi
Thanks alot
"In life, no matter how hard we try, we can not escape our fate. Follow your destiny and learn the purpose of your existence"-Ishisu

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.