Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 / General Discussions / Re: why are people trying to use Java2D to make games? on: 2012-12-26 16:25:24
But it must be said that if you're thinking of not bothering to learn how OpenGL works then Java is probably the wrong language for you in the first place, no?

Why is it important to learn how OpenGL works? I think the result is important, not the knowledge about the techniques under the hood. Once you released your game barely anyone will be interested in the libraries/frameworks you used and nobody will ask you about your OpenGL skills. Of course is it good to know how things work, but is it essential? I don't think so. And hell, we are programming in Java. A language that does most of the low level stuff like memory management and so on for you. It would be nice to know how OpenGL works, but I don't have the time, the will or the need to learn it.

... and this is what's wrong with a lot of programs released today. Wink

To be blunt, as I am always blunt, knowing how things work under the hood allows you to write more solid and optimized code. Just linking things together in a way that works usually leads to a huge mess in the end, sure it runs, but you will have tons of memory leaks, extra CPU/GPU polls, and you will have no idea of how to fix those issues. A program is a work of art, not a hammer.
2  Games Center / Archived Projects / Re: Hackers' Haven on: 2012-12-26 11:41:09
What do you mean by 'layered VBOs' ?

I really described that badly. I should have stated shared VBOs, I think. I was half asleep when I typed that out. lol

Bascially, one VBO can contain several objects instead of one object per set of VBOs, using offsets and counts that are easily managed inside the mesh object classes for quick reference.
3  Games Center / Archived Projects / Re: Hackers' Haven on: 2012-12-25 14:16:47
To give an idea of what the new rendering engine will look like:

Full armature/skeleton support for animated meshes, two texture layers, one for diffuse the other for emit. Though my library actually has capabilities for 3, to keep my target audience a little wider I opted to skip the specular highlights to reduce GPU/CPU drain, since my target audience are the generic computer users not hardcore gamers I have to accommodate a lot of low level capabilities. Most of the engine is low level stuff, using pure VBO/VAO objects, even layered VBOs as well.

The "camera" object is a game camera specifically, so all movements are based on the same coordinates as objects. Object linking is hierarchical as well, and textures are fully dynamic, you can paint on them very easily. There is also a low memory, fast, texture sequence in the core engine. Working on the new GUI engine next. I will be caught back up in about a week, I think, give or take a few days.
4  Games Center / Archived Projects / Re: Hackers' Haven on: 2012-12-10 22:09:03
Okay, coding in raw OpenGL ... not as annoying as I thought. I will release the graphics+game library as well, which will be open source. I have way better material settings and shaders than previously demonstrated, and they'll work on older graphics cards as well, as old as 2006 at least, as that is what I am testing it with and developing it on. I may go up to 2008 but nothing newer as I don't want to alienate too many computer users, and that's part of why I ditched jPCT for this. The library I am working on only uses pure OpenGL and mostly modern stuff, there should at least be extensions available for your card to support it. Current test runs include 8 lights per object, unlimited in the world environment, multipass rendering with and without FBOs, and a very simple but elaborate material system that mimics Blender's materials very closely, with lower quality results as it's real time and to do raytracing the exactly how Blender does would not be possible in real time. Even wrote the engine using Blender units though the Y/Z coordinates are exchanged, as I prefer that coordinate system anyway.

In other words, lots of new coming.
5  Java Game APIs & Engines / OpenGL Development / Re: Shot in the Lighting on: 2012-12-04 11:26:12
Lighting is calculated using the programmable pipeline. Depending on the application, it's often achieved through fragment shaders
Lighting a simple sphere
Lighting a 2D normal-mapped texture
The Illumination Model
Normal mapping tutorial

There are more advanced techniques such as deferred lighting, but first you should ensure a strong understanding of shaders and the illumination model, including the basic math behind it.

Thank you, that PDF was extremely useful. But I'm really hoping for some examples of sending uniforms to the shaders, I'm still struggling with that part, instead of using the glLight and glMaterial commands I mean. But that PDF will be VERY useful once I get that far.
6  Java Game APIs & Engines / OpenGL Development / Shot in the Lighting on: 2012-12-04 08:02:49
Okay, looking for information on the NEW light and material methods for OpenGL, specifically pure version 4 methods. So far everything I find is only the old method of lighting and I notice that both lights and materials in version OpenGL 4 are not in the list of functions, so if they're changing to a new system, I would like to keep up. Please let me know if you have any links or ideas on how to migrate from the 1.1 method to the newest one.
7  Games Center / WIP games, tools & toy projects / Re: Angel's Destiny WIP - Open Source Java Final Fantasy 2 based RPG - another story on: 2012-12-02 22:33:42
Zelda tree houses!
8  Games Center / Archived Projects / Re: Hackers' Haven on: 2012-12-01 20:59:04
Slight delay, not much of one really. The library I was using for the graphics may not work out too well, so I'm probably going to do what I should have done anyway and develop my own graphics routines. Which will benefit the game a lot because there are some nifty effects I discovered a long time ago using OpenGL which are just not available on any of the libraries, not even the big ones. Such as altering the shadow and specular colors per object, just for one example, which, if done correctly, can produce better glowing effect without any extra work on the processor.
9  Games Center / Archived Projects / Re: Hackers' Haven on: 2012-12-01 06:24:41
Actually, Jimmt, I tested out some darker coloring, and it does look a bit better. So, yeah, thanks for the advice.
10  Games Center / Archived Projects / Re: My Current Project on: 2012-12-01 02:01:59
Word of warning: please don't make the glowy art overly bright. When I play games, I'm usually already tired and don't want to look at bright flashy stuff.

lol Well, that would kind of ruin the whole look. There will be changes to make it more mellow though, and the world itself is really dark, except the lines. It's suppose to feel like 80's virtual reality but with a more modern style.

On another note, I'm having issues with the scaling, working on it, but it's just not placing things correctly yet in the loader and I can't figure out why. I actually can't play these type of games, 3D games make me dizzy, so it slows development a bit when I have to take breaks just to let my head stop spinning. So if you're wondering why it's taking so long to get the demo working, it's because right now I'm working on that part that makes me dizzy to test.
11  Games Center / Archived Projects / Re: My Current Project on: 2012-11-30 20:55:13
Now the fun shots, these are all in game shots. The first three showcase one of the avatars that will be available, Shiva.

The few numerical stats.

Program management.

File management, includes programs not loaded.
12  Games Center / Archived Projects / Re: My Current Project on: 2012-11-29 18:44:21
One more generic building/server.

Anderhall Bank and Loan server, one of the demo's servers.

Wondermill Robotics server, the other of the demo's servers.
13  Games Center / Archived Projects / Re: My Current Project on: 2012-11-29 02:48:11
Just for some technical.

Polygon counts are, all quads still:

First: 137
Second: 117
Third: 83
14  Games Center / Archived Projects / Re: My Current Project on: 2012-11-29 00:39:40
I had forgotten I started another thread on the graphics already .... so ... I'm posting the new ones there.

Edit: Thank you Riven!
15  Games Center / Archived Projects / Re: My Current Project on: 2012-11-29 00:35:17
Alright, some more images, these are rendered with Blender so they don't look exactly like they will in game, but it's pretty close:

16  Game Development / Performance Tuning / Re: Garbage collection / Performance issues/ Out of Memory on: 2012-11-28 21:44:32
This is a problem many programmers fail to address, so simply by paying attention I am impressed.

Check how many objects you are creating, then discarding soon after using it. If it's an object that you need to use a lot, you should consider creating long term "junk" versions of the object to use in method calls, because those objects will take up less memory, especially if the method is called a lot. When you leave a method call, or some such, the objects created are not immediately reclaimed by the system, the garbage collector does that, so they continue to use up memory until the garbage collection pass, which should be left to the system. Any object that is not a primitive can cause this.
17  Games Center / WIP games, tools & toy projects / Re: Angel's Destiny WIP - Open Source Java Final Fantasy 2 based RPG - another story on: 2012-11-28 06:11:47
I think there was a mind control spell or ability that made one of your guys an enemy temporarily.

There were several actually. Confuse ans charm would do it, those ones the player could attain as well.
18  Games Center / Archived Projects / Re: My Current Project on: 2012-11-28 06:08:29
awesome art!  more please!!

Thank you. I'll post more as I finish them. I am finally far enough in the code development to actually work on this part.
19  Games Center / Archived Projects / Re: My Current Project on: 2012-11-28 05:09:41
I'm finally getting into making the game models. Here's one.

Helps if I paste the correct link.
20  Discussions / Miscellaneous Topics / Re: Inspiration for the look of your game. on: 2012-11-13 21:29:26
I play my PS2 or watch movies. My favorite movie is Tron Legacy, as awesome as the story is for Tron, Tron Legacy has more inspirational imagery.
21  Game Development / Newbie & Debugging Questions / Re: Applet - Illegal URL Redirect on: 2012-11-06 21:31:46
I don't have a definitive answer, it's a wild guess based on old Java issues and just maybe they didn't correct it. Did you clear your stored files in the Java applet control panel? If not, give it a try, that may work.
22  Game Development / Networking & Multiplayer / Re: Strings not equal after sending them over ObjectOutputStream? on: 2012-11-06 21:29:33
Thanks, I didn't think it was too complicated, i just was very confused.

It's a nuance of Java that often takes a bit for coders from c/c++ and others to get the hang of. Everything is a pointer, basically, except primitives. Also there is no operator overloading, so comparisons always compare pointer values for everything that is not a primitive, thus the compareTo and equal methods are usually employed to compare the stuff in the objects you create, such as String. Just remember, if it's a class then operators will effect the pointer, so look for the comparison methods. You can overload equal and if you implement the comparator interface you can add a compareTo as well, which is really helpful in sorting.

Personally, I prefer this nuance, it's probably my favorite aspect of Java.
23  Game Development / Networking & Multiplayer / Re: Price of Servers? on: 2012-11-06 18:04:59
You can rent space on servers, a good one that I use is:

Very reasonable prices, full access to your server or directories, it's great for testing things.
24  Game Development / Networking & Multiplayer / Re: Strings not equal after sending them over ObjectOutputStream? on: 2012-11-06 18:01:14


if the case of the letters should be ignored.

Very common mistake for beginners Tongue

You check pointers with "==" not the content of the strings.

Another good one is string.compareTo(otherstring) if you want to know the order as well. I always use compareTo == 0 for matches, just out of habit.
25  Discussions / General Discussions / Re: What's your preference is spacing on: 2012-11-06 10:55:46
Compact ... I'm a minimalist. I don't even comment ... much.
26  Java Game APIs & Engines / Tools Discussion / Re: Real-time multiplayer framework on: 2012-11-06 06:18:03
Interesting! Do you mind telling me more about what it can handle? A 3D FPS game? A strategy game? An MMO?

(EDIT: No, I'm not making a 3D FPS strategy MMO game. =S)

Hmm ... that could be a fun project, 3D, FPS, and strategy in an MMO. The AI could would have to be insane ... but ... Tongue
27  Game Development / Newbie & Debugging Questions / Re: Int & Float, Design questions. on: 2012-11-05 07:16:43
Is it common for people to add a semicolon like so?:
public int x, int y, int width, int height;
}; <---- Right Thurr

It's a non-issue, one of those old throwbacks that's not really important anymore. For some of us it's just an old habit, I do it sometimes without thinking.
28  Game Development / Newbie & Debugging Questions / Re: Int & Float, Design questions. on: 2012-11-04 17:11:23
To your get/set notion, I base it on how volatile the the data is and what would happen if something changed it unexpectedly. If you have to control changes made then protected/private is the best method, so when a change happens the class can do the other work. But if it's just a data holding class for something where if the contents change unexpectedly you won't get an exception, then do what's comfortable. Some classes in Java I think over use the private/protected members, things like Color should be a bit more transparent than they are, but meh.
29  Game Development / Newbie & Debugging Questions / Re: Smooth walking on: 2012-11-04 15:47:51
Time tracking and a lower sleep, say 20 or 30 milliseconds.

Here's a quick time tracking class example.


 * A tracker to find the time between calls.
 * @author kitten

public final class TimeTracker {
   private long lasttime = System.currentTimeMillis();

   public TimeTracker() {
      this.lasttime = System.currentTimeMillis();
    * @return The number of milliseconds passed since last call.

   public int getTimePassed() {
      long curtime = System.currentTimeMillis();
      int millis = (int)(curtime - this.lasttime);
      this.lasttime = curtime;
      return millis;

Just every time you pass through your loop start off by calling the getTimePassed method to get the number of milliseconds passed since the last call then interpolate your movement and animations based on that.
30  Game Development / Newbie & Debugging Questions / Re: [synchronized(this) { } ?] on: 2012-11-04 12:13:24
Vectors are about the only time I use it, and that's because I use vectors to communicate between threads. Otherwise I avoid it, you can manage locking inside the class if the object really needs it.
Pages: [1] 2 3
DesertCoockie (21 views)
2018-05-13 18:23:11

nelsongames (69 views)
2018-04-24 18:15:36

nelsongames (66 views)
2018-04-24 18:14:32

ivj94 (750 views)
2018-03-24 14:47:39

ivj94 (80 views)
2018-03-24 14:46:31

ivj94 (604 views)
2018-03-24 14:43:53

Solater (96 views)
2018-03-17 05:04:08

nelsongames (169 views)
2018-03-05 17:56:34

Gornova (387 views)
2018-03-02 22:15:33

buddyBro (1047 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!