Jump to content

  • Log In with Google      Sign In   
  • Create Account


rendering


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Darego   Members   -  Reputation: 156

Like
0Likes
Like

Posted 03 January 2013 - 02:25 AM

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

Edited by Darego, 03 January 2013 - 02:29 AM.


Sponsor:

#2 StaticCube   Members   -  Reputation: 200

Like
1Likes
Like

Posted 03 January 2013 - 04:46 AM

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



#3 Darego   Members   -  Reputation: 156

Like
0Likes
Like

Posted 03 January 2013 - 04:50 AM

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?



#4 StaticCube   Members   -  Reputation: 200

Like
1Likes
Like

Posted 03 January 2013 - 05:25 AM

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.



#5 Darego   Members   -  Reputation: 156

Like
0Likes
Like

Posted 03 January 2013 - 07:44 AM

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



#6 StaticCube   Members   -  Reputation: 200

Like
1Likes
Like

Posted 03 January 2013 - 08:37 AM

Correct :) best of both worlds imho



#7 yckx   Prime Members   -  Reputation: 1163

Like
1Likes
Like

Posted 03 January 2013 - 04:12 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS