LWJGL Tutorials

For whom is this series meant?

This series is meant for those who have an intermediate knowledge of Java but do not know anything about OpenGL®.

Links to the LWJGL tutorials

This LWJGL tutorial series contains both video tutorials and text tutorials. Either watch the video playlist through YouTube, or read the articles which are listed below. Also, have a look at the source code.

Workspace in Eclipse: setting up the workspace in Eclipse that is required for the compilation and execution of software written with the Lightweight Java Game Library.

Creating a displayusing the Display class to create a window with custom resolution and title.

OpenGL drawing: setting up a two-dimensional rendering canvas and drawing coloured primitive shapes OpenGL.

Inputprocessing input using the Keyboard and Mouse classes.

Texturing: applying textures (images) to shapes using the slick_util library.

Game statesimplementing varying game states, for example the main menu, the loading screen, and the in-game state.

Animationimplementing frame-rate independent movement.

Entities: encapsulating game objects in classes. An object-oriented approach to entities.

Distributingbundling the software into a comprehensive executable jar-file.

Orthographic projectionscreating and using orthographic projections (i.e.: 2D cameras) using glOrtho.

Missing tutorials

I have not created text versions of all of the video tutorials. In fact, the video tutorials cover over double the content of the text tutorials. I will work on creating text versions of the remaining video tutorials when I have time for it.

 

52 thoughts on “LWJGL Tutorials

  1. Yoavrinc

    Champion Davis, Canada’s swashbuckling Olympic gold-medal swimmer, died Monday from injuries incurred Saturday in an luck that Montreal protect still are infuriating to unravel.
    Davis, 25, was identifiable dead at 11 a.m. PST, said Jacques Charbonneau, a spokesman for Notre Dame Hospital in Montreal.
    Doctors gave Davis small chance of surviving after suffering a severe skull rift, capacity and spinal injury and multiple bruises from being hit home not later than a car.
    http://vangoghartist.livejournal.com/

    Reply
  2. More Tips

    hello there and thank you for your info I have definitely picked up something new from right here. I did however expertise some technical issues using this website, since I experienced to reload the site lots of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will often affect your placement in google and can damage your high quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my email and can look out for much more of your respective intriguing content. Ensure that you update this again soon.

    Reply
  3. Our Source

    Its really a great and useful piece of info. I am glad that you shared this helpful info with us. Please keep us up to date like this. Thanks for sharing.

    Reply
  4. More Info

    Ill immediately grasp your rss feed as I can’t find your e-mail subscription link or newsletter service. Do you’ve any? Please let me know so that I may subscribe. Thanks.

    Reply
  5. visit webpage

    This website online is really a stroll-by means of for all the data you wanted about this and didnt know who to ask. Glimpse here, and also youll definitely discover it.

    Reply
  6. SAT

    Tanto en empresas de la hosteleria como en hogares, debe ofrecerse profesionalidad en todos los ambitos de los electrodomesticos y sus posibles averias.

    Reply
  7. lilac shade

    This is very interesting, Youre a very skilled blogger. I have joined your feed and look forward to seeking more of your magnificent post. Also, I have shared your website in my social networks!

    Reply
  8. Robert Farwell edward jones

    Id personally declare this site article is utterly amazing, thanks a lot much to the helpful content present to people, remember to carry on and produce this sort of content. Thanks a lot yet again. Wonderful operate throughout Site.

    Reply
  9. sepak bola

    You actually make it appear so easy together with your ptesentation but I in finding this
    atter to be actually something that I believe I’d bby nno means understand.
    It srems too complex and extremely extensive for me. I am having a look forward in your
    next put up, I wiull attempt to get thhe hold of it!

    Reply
  10. judi online

    Hi there, just became aware of your blog through Google, and found that it’s truly informative. Im going to watch out for brussels. I will be grateful if you continue this in future. Numerous people will be benefited from your writing. Cheers!

    Reply
  11. bandar bola

    Hiya, I am really glad I have found this info. Today bloggers publish just about gossip and net stuff and this is actually irritating. A good blog with exciting content, thats what I need. Thank you for making this website, and Ill be visiting again. Do you do newsletters by email?

    Reply
  12. pekanbaru hosting

    Fantastic website you have here but I was wondering if you knew of any discussion boards that cover the same topics discussed here? Id really love to be a part of group where I can get feed-back from other experienced people that share the same interest. If you have any suggestions, please let me know.

    Reply
  13. agen poker

    I just want to tell you that Im newbie to weblog and absolutely liked your blog site. More than likely Im going to bookmark your website . You really come with great articles and reviews. Thank you for revealing your blog

    Reply
  14. levitra

    The brand of Moda in pelle provides extremely stylish, durable and comfortable shoes.
    All footwear at Bourne is hand-crafted especially by Opanka construction and the use of adhesives and
    machinery is minimal while creating the shoes, thus making the designs eco-friendly.
    Moccasin UGG slippers are quite popular among the men.

    Reply
  15. tadalis

    There are hundreds of brands out there manufacturing the shoes.
    The world is really shrinking and ideas are being shared around
    the globe at a rapid pace. Right from the beginning the company had earned great reputation thanks to
    the quality of its shoes.

    Reply
  16. erekcja

    So, it is necessary that you plan your shoe budget before buying one.
    You should always seek advice from someone who has purchase the original boots before.
    Wearing an elegant UGG boot with tight jeans can give you
    a classy and beautiful look.

    Reply
  17. uroda

    It is not better to select high-heeled shoe, if you are an obese.
    The Unitron website includes detailed description of the features and benefits from this product.

    Right from the beginning the company had earned great reputation thanks to the quality of its shoes.

    Reply
  18. Sheldon Chears

    Simply wish to say your article is as astounding. The clearness in your put up is just spectacular and i could suppose you’re knowledgeable in
    this subject. Well with your permission allow me to grab your RSS feed to stay updated with imminent post.
    Thank you a million and please carry on the rewarding work.

    Reply
  19. levitra

    There are hundreds of brands out there manufacturing the shoes.

    Media doesn’t really know how to handle it and this was never
    more clear when we saw the Vogue Italia cover for June 2011.
    The Fashion Industry is totally focused on how people look and larger people
    do not figure on mainstream fashion’s radar.

    Reply
  20. uroda

    Also, they have ruled the market due to their anatomical constructions of shoes that make
    the shoes anti-stress with special shock absorption system.
    Media doesn’t really know how to handle it and this was never more clear when we saw
    the Vogue Italia cover for June 2011. The cable breaking system is also
    new feature added to the line of three wheel strollers.

    Reply
  21. torebki

    You can adopt their styles to suit yours; this is one of the best ways
    to determine the right fashion for you. Style- Most of us
    looks at the design and style while buying any item.

    Wearing an elegant UGG boot with tight jeans can give you a classy and beautiful look.

    Reply
  22. potencja

    Most of the girls are choosing the basic sheepskin slip shoes, as they are comfortable and stylish.
    Bourne’s President, Thomas Mc – Claskie, always uses his creative
    imagery to make trendy shoes for men. Right from the beginning the company had earned
    great reputation thanks to the quality of its shoes.

    Reply
  23. sukienki

    It is not better to select high-heeled shoe,
    if you are an obese. All footwear at Bourne is hand-crafted especially by Opanka construction and the use of adhesives and machinery is minimal while
    creating the shoes, thus making the designs eco-friendly.
    The Fashion Industry is totally focused on how people look and larger people do not figure on mainstream fashion’s radar.

    Reply
  24. www

    So, it is necessary that you plan your shoe budget before buying one.
    You should always seek advice from someone who has purchase the original boots before.

    Right from the beginning the company had earned great reputation thanks to the quality of its shoes.

    Reply
  25. bakery story cheats blog

    Also, while on the storage capacity you have questions about the
    abilities and bakery story cheats memories of
    his dog. It provides for an app with the music playing to
    be the participant will experience reality by having a perfect square.
    Let me introduce three top mobile games are developed using the
    invention of hand-free cell phones through bluetooth, or can they keep themselves entertained.

    Reply
  26. deer hunter 2014 cheats android

    Nowadays, they have deer hunter 2014 hack taken casino
    games. Because deer hunter 2014 hack of this platform.
    One other thing about these games are the ways to entertained oneself.
    At last, Bobby is now available for the best source of finding
    everything.

    Reply
  27. age of warring empire cheats pdf

    Mobile gaming utilizes a range of players.
    Solitaire is not only treated just as easily performed by your mobile phone, they are willing to meet
    agents or new friends in order to age of warring empire
    cheats login with your friends or family in no time.
    The goal of players in based on the edge, struggling to adapt all the bananas using
    your money, chance, etc. Mobile phones have become a
    little money to play, you will need to think of firing you, because it
    also might want to carry out, then again whilst you progress muchfaster.

    Reply
  28. http

    You can adopt their styles to suit yours; this is one of the best ways to determine
    the right fashion for you. Style- Most of us looks at the design and
    style while buying any item. Moccasin UGG slippers
    are quite popular among the men.

    Reply
  29. game of war fire age cheats blogspot

    Cell phones game of war fire age cheats are no codes involved here.
    By employing the games as long as you try and have spread to sophisticated designer home
    consoles, computer, PS express, Sketchbook pro and when they back from the Grand Theft Auto series, this cell
    phone. 3 or higher operating system micro blogging sell their application store.

    Reply
  30. Spanking Aunts

    This is occurring, in part, as a result of improving housing market conditions both nationally and regionally Spanking Aunts however,
    if you make certain that this monthly interest stays the same
    for your full term in the car loan, you then won’t have got unbudgeted increases that may
    cause trouble for some people.

    Reply
  31. atique

    i learned java. i started learning lwjgl with the with the aim to game development. i fell in love with lwjgl. Now i come to know that game engine( unity3d, udk etc) is required to develop games. A game engine abstracts out all of the OpenGL, low-level logic. It does 100% of the rendering for you (except for shaders). And developing a game engine is not one persons work. So why did/should i learn lwjgl?

    Reply
    1. Oskar Veerhoek Post author

      For smaller, more customized, games it makes much more sense to use a low-level library like LWJGL. Also, using LWJGL greatly alleviates you of licensing issues. Lastly, for me most of the fun is in the low-level OpenGL code, but that is a personal thing of course.

      Reply
  32. TorakTu

    Might I suggest not going higher then Core 3.1 for OpenGL. Reason being is because the highest OpenGL a MAC can do is 3.2. Although I personally do not use a MAC, but looking at all this from a tutorial’s perspective, you can grab a larger audience by sticking with what everyone is able to use. otherwise, you will get a lot of people complaining how things do not work and that in itself can get overwhelming.

    Here is a quote from this website ( http://www.g-truc.net/post-0531.html ) DATE [ 27/12/2012 ] :
    ” The OpenGL ecosystem is particularly fragmented. There is a lot of different OpenGL implementations but none of them is reaching the same level of features. NVIDIA implements OpenGL 4.3; AMD implements OpenGL 4.2; Intel implements OpenGL 4.0; Apple implements OpenGL 3.2; and MESA implements OpenGL 3.1. On top of this, even if there are OpenGL 3 and OpenGL 4 hardware supporting each minor revision of the specifications, a lot of OpenGL 4 extensions are available on OpenGL 3 hardware. ”

    As you can see from the list, OpenGL 3.1 is able to be ran on most all hardware. So it in itself, In My Humble Opinion, should be the highest version of OpenGl to teach.

    Java with LWJGL with the ability to run your games on android and other devices, yea this is the way to go. Keep up the good work on your tutorials. They are some of the best I have seen.

    Just my thoughts on this subject.
    TorakTu

    Reply
  33. huhlig

    These videos are awesome. It would be cool at some point if you could show from the beginning alot of the basics using only the OpenGL 3.2 core profile rather than the old deprecated stuff.

    Reply
    1. Oskar Veerhoek Post author

      Thanks. I have been looking into the core profile and have decided they are not worth the extra effort. It’s much more likely I will switch to Windows and use the 3.3 features in compatibility mode.

      Reply
      1. huhlig

        A pity. It adds a lot of speed, power and flexibility to what you can do. But you don’t get to use all the magic functions for your matrices.

        Reply
        1. Oskar Veerhoek Post author

          I know. Perhaps when my audience begins to dwindle, when I loose interest in the current set-up, or when I’m feeling really ambitious I will try to put out some content.

          Reply
        2. Oskar Veerhoek Post author

          Guess what? I have been working with core opengl. I might even make an entirely new series about it!

          Reply
          1. Oskar Veerhoek Post author

            Core OpenGL is the purest kind of modern OpenGL. It strips out a lot of features and lets you do pretty everything by yourself.

Leave a Reply to Spanking Aunts Cancel reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>