Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-11-21 22:21:38
Updated my LWJGL3 tutorial to version 3.0.0b Smiley

Also made some PR (with some colleagues) for the virtual reality lab at the open day of my university.
The children sure want an Oculus Rift or a Samsung Gear VR for chrismas now persecutioncomplex

EDIT: Started page 111 of this thread Wink
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-10-24 10:19:37
Using Consolas for Windows and Droid Sans Mono for Linux.
For printing I'm using the Liberation fonts though.
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-10-09 09:36:27
Since monday I'm studying again. This time it is Human-Centered Computing to get my Master's degree.
The difference between a Bachelor's course and the Master's course is amazing Wink
Now I can finally work with high end technology. The Bachelor's course was merely the basics.
Looking forward to work in the virtual reality lab!
4  Discussions / General Discussions / Re: Transitioning from Windows to Linux on: 2015-09-30 16:26:26
On my new PC I'm dual booting with Windows 10 and Linux Mint 17.2 Cinnamon (Rafaela).
Windows 10 is currently used just for gaming and Linux for working/programming, but when I'm looking at Wine and PlayOnLinux I may remove Windows from my system some time in the future.

My advice for you would be to setup a Linux VM like Roquen suggested and do some testing if you really want to switch.
You may want to test out different distros.
Some suggestions: Ubuntu, Linux Mint, Fedora, openSUSE.
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-09-20 10:23:43
What I did last day and the night before that day:

Stayed awake the whole night to give consolation and watch over my suffering dog. In the morning we went to the vet to put her out of her misery. I stayed with her until the end, looking in her eyes.
The rest of that day I spend digging a grave in the garden where we ultimately buried her with her first (and favorite) plushie. Also held a simple funeral ceremony with just my family.
She is now in dog's heaven playing on the big green meadow together with her parents and her siblings. I will meet her there in the afterlife.

Rest in Peace Felica, you will be always in my heart.

Now I'm tired, sad and everything is hurting... have to take a nap now.
6  Game Development / Newbie & Debugging Questions / Re: Moving object on: 2015-09-03 15:45:17
Please read this tutorial carefully, it contains some important mistakes, especially about the game loop.
Would you care to elaborate, so I can revise the specific parts?
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-08-17 16:03:29
Good luck @SilverTiger (well you might not need luck but well better than nothing right Pointing )
Thanks! I think the interview went alright, have to wait for a response now Smiley
8  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-08-16 10:54:54
I have given @basil_ his 200th medal persecutioncomplex

Other than that I'm currently preparing for a job interview.
9  Java Game APIs & Engines / Engines, Libraries and Tools / Re: A library for 2d shapes and collisions on: 2015-07-16 08:42:38
If you want to create your own physic library you may want to look a these tutorials.
It will show you how to create some physic from scratch.
10  Discussions / General Discussions / Re: Rayvolution's JGO Appreciation Thread (AKA: Free copies of Retro-Pixel Castles!) on: 2015-05-27 09:59:11
I remember when you started working on that game, during my practical semester I stumbled into your thread every day Grin

I would also like to play and review your game Smiley
Need something interesting to do after my thesis persecutioncomplex
11  Discussions / Miscellaneous Topics / Re: What are your current personal projects? on: 2015-05-23 11:13:05
When I have time I'm working on a game project that also happens to be my childhood dream. Smiley
Apart from that I have a few other projects in mind like some other game ideas or a few NetBeans plugins.
Every now and then I'm learning some japanese Kanji.

But currently I'm implementing the last few parts of my bachelor thesis.
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-20 17:22:13
Held a lecture about the framework of my thesis at the Colloquium of our University.
Most of my fellow student know nothing about modern OpenGL Clueless

R.I.P. Ralphie, I will miss you and I love you. You were an amazing friend and a great dog. Thank you for anyone who took the time to read this, I really needed to write something about it.
That's sad to hear, you have my sympathy. Sad
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-05-15 20:43:29
Submitted the first draft of my bachelor thesis on the concept of a framework for teaching shader-based OpenGL Smiley
14  Java Game APIs & Engines / OpenGL Development / Re: Resources for OpenGL 3.3+ and LWJGL? on: 2015-05-06 11:43:23
You could take a look at the list of learning ressources here on JGO, there are some good tutorials listed.
Especially this one helped me the most when starting to learn modern OpenGL.

Some time ago I made an tutorial for LWJGL3 with OpenGL 3.2 core profile, you may want to take a look here.

Hope that helped Smiley
15  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-02-12 12:05:50
Why not going for a real challenge? Cheesy
16  Game Development / Newbie & Debugging Questions / Re: I want to use VBO instead of depreciated immediate mode.. any senior advice? on: 2015-02-05 22:01:48
It depends what you want to do with the VBOs, you could try using legacy OpenGL with client-side capabilities.
But I would recommend to learn shader programming, even if you have a GPU that only supports OpenGL 2.1.

The list of learning resources have some modern OpenGL tutorials if you want to learn shader programming.
This one helped me a lot with writing my first shaders. You could also look into my tutorial for LWJGL3, but that is still a work-in-progress.

Hope that helps Smiley
17  Game Development / Newbie & Debugging Questions / Re: LWJGL - White box instead of texture on: 2015-01-27 19:09:49
That shouldn't make a difference if you are on Linux or another OS, did that code throw an exception?

Just saw that you are creating a vertex shader, does the code work if you comment that part out?
You may also wan't to try abandoning that legacy OpenGL and start to work with shaders.
I started writing a tutorial some weeks ago for LWJGL3, you could look at it here.
Hope that helps Smiley
18  Game Development / Newbie & Debugging Questions / Re: LWJGL - White box instead of texture on: 2015-01-27 17:36:17
After deeper examination, I noticed that the byte buffer is empty. Let me see if I can override one of the functions in the PNG decoder to make it return it's value instead.

Well in that case you could load the picture with
and put the data into the buffer yourself.
Here's an example code of how you could load your image Wink

BufferedImage image = null;
try {
    InputStream in = this.getClass().getResourceAsStream("textures/" + name + ".png");
    image =;
} catch (IOException ex) {
    throw new RuntimeException("Failed to load a texture file!"
        + System.lineSeparator() + ex.getMessage());
if (image != null) {
    /* Get width and height of image */
    int width = image.getWidth();
    int height = image.getHeight();

    /* Get pixel data of image */
    int[] pixels = new int[width * height];
    image.getRGB(0, 0, width, height, pixels, 0, width);

    /* Put pixel data into a ByteBuffer */
    ByteBuffer buffer = BufferUtils.createByteBuffer(width * height * 4);
    for (int y = 0; y < height; y++) {
        for (int x = 0; x < width; x++) {
            /* Pixel as RGBA: 0xAARRGGBB */
            int pixel = pixels[y * width + x];

            /* Red component 0xAARRGGBB >> 16 = 0x0000AARR */
            buffer.put((byte) ((pixel >> 16) & 0xFF));

            /* Green component 0xAARRGGBB >> 8 = 0x00AARRGG */
            buffer.put((byte) ((pixel >> 8) & 0xFF));

            /* Blue component 0xAARRGGBB >> 0 = 0xAARRGGBB */
            buffer.put((byte) (pixel & 0xFF));

            /* Alpha component 0xAARRGGBB >> 24 = 0x000000AA */
            buffer.put((byte) ((pixel >> 24) & 0xFF));

/* Do not forget to flip the buffer! */

} else {
    throw new RuntimeException("File extension not supported!"
        + System.lineSeparator() + "The following file extensions "
        + "are supported: "
        + Arrays.toString(ImageIO.getReaderFileSuffixes()));
19  Game Development / Newbie & Debugging Questions / Re: LWJGL - White box instead of texture on: 2015-01-27 16:48:59
Don't know about that PNGDecoder, if it decodes the image to the right format, so I just assume, that the ByteBuffer is filled with the right data.

In your rendering code I see, that you use
, but Texture coordinates go from 0.0 to 1.0 so change your rendering to this:

    glTexCoord2d(0, 0);
    glVertex2d(0, 0);

    glTexCoord2d(0, 1);
    glVertex2d(0, texture.getImageHeight());

    glTexCoord2d(1, 1);
    glVertex2d(texture.getImageWidth(), texture.getImageHeight());

    glTexCoord2d(1, 0);
    glVertex2d(texture.getImageWidth(), 0);

Does that solve your problem? Smiley
20  Game Development / Newbie & Debugging Questions / Re: JAR File isn't being written correctly on: 2015-01-21 10:38:29
For reading and writing *.jar files I would take a look at JarInputStream and JarOutputStream.
Did you have already tried that? Smiley
21  Game Development / Newbie & Debugging Questions / Re: Sprite Sheet Instruction Needed on: 2015-01-13 20:51:04
takes the parameters
(S, T)
. As such, the bottom left is
(0, 0)
, the bottom right is
(0, 1)
, the top left is
(1, 0)
and the top right is
(1, 1)
I think bottom right is
and top left is
22  Java Game APIs & Engines / OpenGL Development / Re: Lwjgl Error: Failed to load the native library: lwjgl on: 2014-12-19 17:09:13
When you get that error, then you haven't set the
You could copy the native folder to the folder that contains the jar. Then in your main method do this:

if (System.getProperty("org.lwjgl.librarypath") == null) {
    Path path = Paths.get("native");
    String librarypath = path.toAbsolutePath().toString();
    System.setProperty("org.lwjgl.librarypath", librarypath);

Does this work for you? Smiley
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-12-19 11:27:23
Started a LWJGL3 Tutorial Smiley
Oh and also made my 40th post on JGO right now Cheesy
24  Games Center / WIP games, tools & toy projects / Re: Legends of Fore on: 2014-11-28 11:17:19
That Google German translation is horrible, it should be:

"Hallo, willkommen auf dem Titan, wir führen hier archäologische Forschungen durch."
"Danke" - "Was?"

What about a Japanese translation? Cheesy
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-26 11:15:56
Had a meeting with my Computer Graphics professor to talk about my thesis Smiley
26  Game Development / Game Play & Game Design / Re: Where can I get nice spritesheets and images? on: 2014-11-19 13:45:33
You can find a lots of links at
Maybe you'll find something like that Smiley
27  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-14 17:22:42
Installed Linux Mint 17 on VirtualBox to test it out.
Seems like an alternative to Windows! Cheesy
28  Discussions / General Discussions / Re: Someone pick my license! on: 2014-11-10 08:43:54
I would look here or here.

I think this one would be your best bet!
Under the following terms:
  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • NonCommercial — You may not use the material for commercial purposes.
  • NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
  • No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

Or you could write your own license of course Wink

Hope that helps a bit Smiley
29  Game Development / Newbie & Debugging Questions / Re: Best way to iterate through ArrayList? on: 2014-10-17 21:40:27
If you think that's crazy...
Didn't want to make it too complicated Cheesy
30  Game Development / Newbie & Debugging Questions / Re: Best way to iterate through ArrayList? on: 2014-10-17 21:33:41
Streams are probably my new favorite way of going through some Collection to perform operations on it. They're like LINQ for Java! Smiley

I like Streams too, so if you use Java 8 you can use them!

// One Operation -> val.doSomething());

// Multiple Operations: -> {

// You could even make crazy things like this: -> val.isAThing())
              .forEach(thing -> thing.doSomething());

Just wanted to show some examples for this Wink
For some more methods you can look into the Java Doc.
Pages: [1] 2 3
Dwinin (71 views)
2015-11-07 13:29:08

Rems19 (80 views)
2015-10-31 01:36:56

Rems19 (73 views)
2015-10-31 01:32:37

williamwoles (106 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (134 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (155 views)
2015-10-11 13:26:18

BurntPizza (171 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!