Skip to main content
GameDev.net gamedev.net
🔒 Locked

rendering

Started by Darego Jan 3, 2013 at 8:25 AM 5 replies 2.6k views
Original Post
Darego
Darego
hi there, i'm pretty decent at java as a whole but i am just after starting getting into game programming. i am following this java rpg tutorial:

http://www.youtube.com/playlist?list=PLF76C2BB0B6FE7848

but i don't think i should go much further until i figure some stuff out, namely rendering. can someone please outline rendering to me in java game programming terms and how i implement it into my code? or even a link that explains graphics rendering in java? so many render() methods and i don't understand exactly how they are working

cheers
ProtoThis
ProtoThis

Hi,

I personally use lwjgl for 3D rendering in java and Slick2D for rendering 2D.

For both libraries there are a few tutorials on the website of lwjgl: http://lwjgl.org/wiki/index.php?title=Main_Page#Getting_started. I personally used this tutorials and must say after doing a few of them I understoot how rendering works (at least with this library). The code is pretty clean so it should be fairly simple to see what is going on.

With kind regards,

StaticCube

Darego
Darego

thanks a lot for the reply. i won't be going near any 3d stuff so i will look into slick2d :) is it possible to use lwjgl for 2d rendering also or?

ProtoThis
ProtoThis

Well it is possible but for 2D I would really suggest Slick2D. The reason comes from there site to be honest ;):
Slick2D is an easy to use set of tools and utilites wrapped around LWJGL OpenGL bindings to make 2D Java game development easier.

Darego
Darego

so slick2d is a combination of lwjgl and openGL? :)

ProtoThis
ProtoThis

Correct :) best of both worlds imho

yckx
yckx

Actually, lwjgl is an OpenGL binding for Java, and slick2d is an lwjgl wrapper that handles the projection issues needed to render in 2D with OpenGL behind the scenes, and exposes a 2D API. In short, lwjgl can do 2D or 3D, and slick2d uses it to make it easier to do 2D.

Topic Locked

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

Sign in to reply to this topic.