RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
Gardon
Scholar


Joined: 05 Feb 2006
Posts: 157

PostPosted: Wed Dec 19, 2007 6:02 am    Post subject: 3D models, 3D terrain, 2D projection [quote]

I have a 3D world I would like to use, as well as 3D models of weapons and characters. I would like to project them orthogonally, meaning that distance will not be taken into account when figuring how close they are to the camera. This would be the same as blitting a 2D image to the screen.

How do I go about doing this? I need 3D perspective for landscape, but want the characters the same size every time.
Back to top  
Jon Alma
Monkey-Butler


Joined: 09 May 2005
Posts: 50
Location: The Sunny South of France

PostPosted: Wed Dec 19, 2007 7:47 am    Post subject: [quote]

Could you describe what you want a bit more (sorry it's early in the morning and my brain is still in neutral)? I would imagine that what you are after is to project the whole scene orthogonally - you get the 3D effects (objects hidden by other objects, etc) without any scaling - in effect something close to a 'high tech' isometric view with a camera that can be moved.

Alternatively if what you want is a true 3D background] (with scaling) then draw this using a normal perspective setup and then switch to orthogonal projection to draw the characters and objects in the foreground (this is what I do for the user interface elements in my game)

I'm assuming you don't want to have orthogonally projected characters drawn in a true 3D world as the mismatch in scaling would mean that dwarves would gradually turn into giants as they moved into the distance.

Jon.
_________________
Legends from the Lost Realms
Back to top  
Gardon
Scholar


Joined: 05 Feb 2006
Posts: 157

PostPosted: Wed Dec 19, 2007 3:14 pm    Post subject: [quote]

You know those isometric games like Diablo? They looked 3D but they really weren't. I want to make something like that, only the characters will be fully 3D.

I got the idea from a 2.5D game. It was a fully functional 3D terrain, with 2D images blitted onto the screen. He would have 4 views for each object in the game, and would switch between them as the player rotated the camera. It was an awesome game but I wanted to take that idea a step further.

Why not get rid of the 2D image in a 3D terrain/world and just use 3D models? The only problem is that perspective might take away from the quality I'm looking for.

Let me experiment more and get back to you. Perhaps when I have a more functional engine I can come back and tweak it to my standards.
Back to top  
RedSlash
Mage


Joined: 12 May 2005
Posts: 331

PostPosted: Thu Dec 20, 2007 7:41 am    Post subject: [quote]

In short: you want an isometric view in 3D?
Back to top  
Hajo
Demon Hunter


Joined: 30 Sep 2003
Posts: 779
Location: Between chair and keyboard.

PostPosted: Thu Dec 20, 2007 10:12 am    Post subject: [quote]

I think OpenGL support orthographic projection out of the box. Found a brief introduction here:

http://www.cprogramming.com/tutorial/opengl_projections.html
Back to top  
Gardon
Scholar


Joined: 05 Feb 2006
Posts: 157

PostPosted: Thu Dec 20, 2007 9:10 pm    Post subject: [quote]

I'm going to take a different approach. This seems to be more trouble than it's worth :P
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum