Ferrous Moon
http://www.ferrousmoon.com:80/forums/

2D Objects on a 3D map
http://www.ferrousmoon.com:80/forums/viewtopic.php?f=45&t=1633
Page 2 of 2

Author:  bluechill [ Sun Aug 16, 2009 6:46 am ]
Post subject:  Re: Writing a Java game, want to use a 3D map... so...

cool when are you going to run this php code on a server
Code:
<? shutdown >
:) yes I know php xhtml html dhtml and javascript as well. :)

happy learning java. err well relearning

Author:  eddieringle [ Sun Aug 16, 2009 9:09 pm ]
Post subject:  Re: 2D Objects on a 3D map

Changed the focus of this topic, because of JOGL's horrible lack of documentation. Already have a basic program written with OpenGL, SDL, and CrissCross (in C/C++). Here are my questions as of now:
  • How will I create the map in the first place (what software is recommended)?
    I want 3D buildings eventually, so keep this in mind.
    How do I set a viewport to the point where it is always centered on the player? (ala Runescape)
Implementing the 3D world will take some time, so here's a simpler question (I hope):
I want to get a basic full 2D game setup but with an isometric view. Here's my current OpenGL setup code:
Code:
glClearColor(0,0,0,0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0,width,height,0,-1,1); glMatrixMode(GL_MODELVIEW); glLoadIdentity();
I read online that in order to make it isometric, I would change the arguments of glOrtho(). Now, if I wanted a tile system, would I use this code above and draw the tiles out first, then switch to isometric view for the sprites?

Author:  prophile [ Mon Aug 17, 2009 4:44 pm ]
Post subject:  Re: 2D Objects on a 3D map

Just draw everything top-down. Using an isometric coordinate system doesn't mean you have to adjust for that in OpenGL - in fact it will make life more difficult for you.

Author:  eddieringle [ Mon Aug 17, 2009 4:47 pm ]
Post subject:  Re: 2D Objects on a 3D map

So draw top-down, then change the camera angle?

Page 2 of 2 All times are UTC-05:00
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/