Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Switchblade_77

Member Since 13 Jun 2011
Offline Last Active Nov 27 2012 01:01 AM

#4834025 Is depth buffer not working ?

Posted by Switchblade_77 on 11 July 2011 - 04:18 PM

This did the trick ..
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER,0.1f);

Thanks Kauna and gsamour


#4823030 Knowledge requisition details

Posted by Switchblade_77 on 13 June 2011 - 09:47 PM


Hello,
I've started my work a 2d game that has an isometric movement type of gameplay and an arcade battle system ..
I've learned some basics of game programming and learning openGL - LWJGL 2.7.1

What are the requirements for making a game like the above mentioned ..
I can draw cubes in true Isometric view using glOrtho(); and would like to know HOW TO PROCEED FROM HERE ... !

Currently I m concentrating on navigating a player in an isometric world ...

Questions on my mind ..
1. How to draw the map for an isometric game ... i.e use pre-rendered images or textures applied on tiles
2. Is it a good idea to use 3d back end - eg the cube as a building and a quad with a texture of a building over it and let the collision detection work on the 3d space rather than the quads ?
3. Is billboarding required ?
4. Can lighting technique be used in a 2d game ?

I have provided an attachment of an isometric orthographic projections .. please help me from here ... I m very dedicated and will like to learn from you'll


I've done a simple engine with Isometric graphics before, but I didn't use OpenGL, nor did i use any 3D of any kind. I used a simple 2D engine and built upon that.
For my engine, I tiled the map tiles, (so, no pre-rendering).
Personally I wouldn't use 3D backend, but it's possible, if you want to use lighting it might be easier!
Billboarding will be needed if you're using a 3D backend, if you're not using 3D, then no billboarding will be needed at all.
yes, lighting techniques can be used in a 2D or 3D game, for the 2D game to use lighting there must be a bump map or light map, to correctly apply the light on the 2D surface.


I have made a character walk without using openGL but I faced issues when porting it to a linux system on my laptop...
And further more many programmers and post in this forums have suggested me to move to a 3d API since the hardware now a days are sophisticated enuf to support them

I have attached the screenshot of the prior project ...

So regarding lightings I have to look up to bumpmaps right ? I mean i understand to provide a night scene we just have to change the ambient lighting to a more bluish color .. but what about if a character moves to a campfire and I want the character to be lit in appropriate manner ..

can you give me an idea about how the tiling system works ..

thank you for ur reply ... very much appreciated

Attached Thumbnails

  • DSC08557.JPG



#4823022 Knowledge requisition details

Posted by Switchblade_77 on 13 June 2011 - 09:05 PM

Hello,
I've started my work a 2d game that has an isometric movement type of gameplay and an arcade battle system ..
I've learned some basics of game programming and learning openGL - LWJGL 2.7.1

What are the requirements for making a game like the above mentioned ..
I can draw cubes in true Isometric view using glOrtho(); and would like to know HOW TO PROCEED FROM HERE ... !

Currently I m concentrating on navigating a player in an isometric world ...

Questions on my mind ..
1. How to draw the map for an isometric game ... i.e use pre-rendered images or textures applied on tiles
2. Is it a good idea to use 3d back end - eg the cube as a building and a quad with a texture of a building over it and let the collision detection work on the 3d space rather than the quads ?
3. Is billboarding required ?
4. Can lighting technique be used in a 2d game ?

I have provided an attachment of an isometric orthographic projections .. please help me from here ... I m very dedicated and will like to learn from you'll

Attached Thumbnails

  • LWJGL_Test7.jpg



PARTNERS