Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (683)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (751)
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 ... 13
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-25 11:27:45
Yep, managed environments have their flaws, some more direct control over GC cycles could be nice in case of games, but... Is there anything better? Most AAA games are GPU-limited anyway, and you don't need all that extra CPU power from native environments in almost all cases anyway (well, maybe unless you make some really, really complex RTS game... But I know only few of them, and all of them are indie titles... OK, MAYBE we can count first Supreme Commander). Smiley
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-25 08:35:49
Been reverse engineering Evolve Free to Play for the past few days. It's ridiculously easy because CryEngine is open source and a LOT of stuff is client side. In a few days I was able to implement flying (with noclip), infinite ammo, primitive rendering (to render AABBs), and an aimbot with smoothing using game functions. Currently working on a bounding box update work around for infinite health. Also, since a decent portion of the actual game's logic (not engine, I can only access the engine's source) is in lua, I'm attempting to dump that as well. I mean it's like they didn't try to protect it at all. This was done using dll injection, IDA, scylla x64 to dump the game, and github to search the engine source.

The graphics portion is really fun; I'm able to hook into the direct x context and use it to draw 3D stuff in game, including textures and models. So it all looks pretty fancy Cheesy

Also programming an 8080 emulator on the side, check it out here:

I am still waiting for a day when (especially non-indie) devs will finally start caring about security and doing online games right instead of just complaining that their game got hacked... Smiley
3  Game Development / Newbie & Debugging Questions / Re: JavaFX sound: no exceptions, but no sound? on: 2016-07-08 22:58:56
Did you tried playing the sound (and loading it as well) inside Platform.runLater?
4  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-07-07 00:22:35
Keep in mind Java EE != Java JDK.
Yes, but who knows - what next?
(what point support them Java if they drop commercial Java EE, its Oracle - they leave not profitable projects Sad )

I don't think that Oracle would stop supporting Java platform - if it wouldn't be profitable for them, they would most likely just sell it to someone else (and I am sure there would be at least few companies willing to buy it).
5  Java Game APIs & Engines / OpenGL Development / Major (3d) render rewrite - need pointers on: 2016-07-03 01:34:16
Hello everyone!

I am developer of DeedPlanner program (source is available here: ). In a nutshell this is a program which allows you to rapidly design villages for Wurm Online/Unlimited games, preview it in 3d and evaluate costs before actually starting doing anything in-game. The program is relatively large, with over 100 versions published and its original version is over 3 years old.

The program is heavily depending on customized Swing GUI's, with JOGL GLJPanel doing the actual 3d rendering. Due to Swing dependency, it is impossible to switch to any non-JOGL based library easily. In action, it looks like this:

Rendering itself without going into details looks like this:
  • Interface and JOGL panel is initialized
  • For each frame:
    • Buffers are cleared
    • Set current camera (perspective or orthographic projection depending on view)
    • Render map: iterate all tiles in radius of "x" tiles around camera, in case of 3d view rendering everything but labels/2d borders, in 2d view - everything on current floor + 2 floors below
    • In 3d view, render skybox

When it comes to optimizations used, textures are pre-loaded on first use and models are pre-rendered to display lists on first use. Everything else is done every frame, including ground/cave rendering. Currently program uses mostly OpenGL 1 rendering with OGL 2 elements, but I can use OGL up to 4.1 easily.

The question

I want to rewrite the rendering in program. Why?
  • Program performs relatively bad when there are many objects in radius around user (can easily slow down even good PC)
  • Rendering seems inflexible
  • Shader support is minimal (especially as I want to implement lighting and water which actually looks like water)

Are there any specific resources I should take a look at or general guidelines I should follow? Maybe some pointers on how to refactor current rendering to make it easier to extend now and in a future?
6  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-01 10:20:46
Written last exam in this semester... And got accepted on summer internship I wanted literally hour later (first in my life as well)! Smiley
7  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-23 22:49:47
Found these... Things, playing with them at the moment:

Basically feature-complete JVM together with compiler and some other stuff built in browser (first link) and library built on top of it which allows you to use Java code just like JavaScript in HTML (second link). Both look and work surprisingly well, but their startup time is terrible so not very useful for usual tasks.
8  Game Development / Game Play & Game Design / Re: request: receipe/materials approach? and/or design pattern? on: 2016-06-20 11:21:45
Can recipes output more than one item or always just one?
9  Java Game APIs & Engines / JavaFX / Re: JavaFX For Pixel Games on: 2016-06-02 09:09:35
JavaFX is actually nice, but still young. Smiley Ironically thing which causes it to be not yet commonly used and developed for more platforms is.... Older GUI API, Swing. Other than that, in JavaFX you can basically do everything you could in Swing + much more.
10  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-26 13:29:15
If only for value classes (aka structs)... This is very, very good idea.

Otherwise, I don't agree.

What else could it be for?

If operator overloading would be possible for "normal" classes as well, I am sure that this possibility would be abused a lot: things like events/setters done with overloaded "+" operator and similar code smells.
11  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-26 12:05:42
I really really really miss operator overloads

If only for value classes (aka structs)... This is very, very good idea.

Otherwise, I don't agree.
12  Discussions / General Discussions / Re: Interesting proposals: Java 9 and beyond on: 2016-05-26 01:48:02
Personally I am looking forward to structures - currently any abstractions for stuff like vectors or matrices are often resource-intensive (unless used sparingly).
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-05-26 01:23:04
Swing listeners are problematic, but JavaFX ones should work just fine.
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-05-24 21:31:22
Posted minimal JOGL in JavaFX example:

From other stuff - I did some work on my little Java-inspired language, finished scanning and lexing stuff already:

15  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-05-18 10:44:47

Did a little experiment and compared few different implementations of pseudo random number generators, for example above you see path drawn with Java built-in generator.

UPDATE: I added possibility to see a path being drawn in real time, few iterations every frame... This is really hypnotizing. Cheesy
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-05-10 00:03:03
Hi lads! Smiley
'Til now, this is how my loading screens worked:

[Fade-in starts]....[Fade-in ends][Loading starts]....[Loading ends][Fade-out starts]....[Fade-out ends]

Very suboptimal.
It worked all right, because I didn't have a lot of resources to load so it would just fade in then fade out. However, I've been adding quite a lot of textures and fonts lately, so the loading time became longer. Today, I decided to change my loading screen patterns to:

[Loading starts]...........................................[Loading ends]
[Fade-in starts]....[Fade-in ends]........................................[Fade-out starts]....[Fade-out ends]

As you can observe, the fade-in and the loading now start at the same time; the fade-out starts whenever the loading ends. However, as resources become longer and longer to load (this afternoon I hit ~450 ms), I'm thinking of removing the fade-out in order to gain extra time and make it more bearable. But with no fade-out, it just looks awkward Emo
Of course, it would be impossible to make the fade-out end exactly at the same time as the buffering. I guess I could find a way to start the fade-out at an approximated time so that it would end more or less at the same moment as the buffering.
How would you cope with this problem? Delete completely the fade-out, leave it as is, approximate?

(I should probably mention that the fade-in and fade-out times are about 150 ms each)

J0 Smiley

As long as you are below 5 or 15 seconds (depending on if you show loading screen on every level/area loading or only once when game is starting) you don't have anything to worry about. Smiley
17  Discussions / Miscellaneous Topics / Re: Where I came from on: 2016-05-05 12:32:28
Personally I had my first attempts at scripting around 2005 already (when I was still in elementary school), when I was experimenting with RPG Maker and similar software. I made dozens of small games during that time, in few last years of this period editing and writing some "real" code as well. Piece of software I remember best from that period is (sadly no longer existing) PlayCrafter.

Programming my own things using widely used languages began around 2011 (high school period) and was initially focused around creating useful tools for Wurm Online. This taught me mostly about general programming, languages and patterns and - when I thought my knowledge is sufficient already - I begun adding gamedev-related elements into my programs, with pretty good results - for example here is one large, finished project called DeedPlanner: link to topic. I didn't released publicly even one game from this period, but did lots of various experiments, mostly with gameplay mechanics, networking and graphics.

Around one year ago I got an offer to join Wurm Online development team, which I accepted naturally. This was a very important moment - while you learn a lot while doing personal projects, working on already existing projects will teach you "how the stuff is actually done", which you can't learn from personal projects and is very hard to learn from just reading the code/learning programming theory. On the other hand, I think that everyone must find balance between personal projects and work/open source - both teach you important things about development.

Currently, I am on 2nd year of CS engineering studies. While I don't think it influenced my programming ability directly, it shown me some new ways to do things and taught useful things that I would most likely never use otherwise, most notable example being LaTeX.

When it comes to tips for gamedevs and programmers in general... The most important: experiment first. Programming is all about experimenting, learning. Sometimes you will fail, in some cases even abondoning weeks or even months old project going nowhere, but you will not lose the most important thing - experience which will prevent you from doing the same mistakes twice and will make ALL your future programs even better.

What is needed to be considered a programmer? I personally think that you can consider yourself a programmer if you start thinking algorithmically in real life to the degree which influences it in many ways. For example, take most obvious example: mathematics. This is hard to describe, but - when you start looking at math in purely alghoritmic way, bringing programming concepts into your thinking - you will notice that. The same applies to lots of other areas - the more experienced you become, the more areas are getting affected by this effect. I don't think there is any kind of knowledge needed to be considered programmer. While some concepts are used far more often than others, everyone have different needs and preferences.

Motivation is rather complex topic. Personally the thing which motivates me most is any kind of feedback, both negative and positive - without it I find it hard to stay focused on one project without starting side project or coming back to projects that are already receiving feedback. That's why I find iterative and/or feature-driven approach to the development being the best for personal stuff and small groups. Start small, think big.

"Right" learning atlitude? Hmm... Just keep trying, experiment, learn new stuff. Everyone have different ways of learning, but - as long as you don't stay in one place in this rapidly changing programming world - you should be fine.
18  Discussions / General Discussions / Re: How does Steam handle free games with micro transactions? on: 2016-05-05 11:18:41
war thunder is in the steam store and they have micro transactions via their own system but also a few pieces of steam dlc.
They basically did what you are suggesting, but they might also have a special deal.

When playing via Steam, the default payment option for everything (including non-Steam DLC) is Steam wallet as well, so I guess Steam takes their part from that as well.
19  Java Game APIs & Engines / OpenGL Development / Re: LWJGL 3 vs JOGL on: 2016-04-28 13:39:46
- javafx support is tricky afaik

Not really, you can easily use JavaFX built-in Swing panel integration to embed GLJPanel and everything works just fine.
20  Discussions / Miscellaneous Topics / Re: The "impressiveness" of games on: 2016-04-12 01:33:18
If this is just something done as a hobby or for learning (preferably both at the same time) - sure, go for technical challenge. Smiley

If you actually want to finish and maybe even sell something, "fun" projects are usually way to go. On the other hand, if all of us followed this approach, we most likely wouldn't have games like Dwarf Fortress or Minecraft (two examples that came to my mind as first) that push the genre forward, create genre/subgenre or even completely change the gamedev world.
21  Discussions / Miscellaneous Topics / Re: lambdas rant on: 2016-04-09 23:35:07
To be honest, I think that this depends on use case - while since Java 8 release I tend to avoid using anonymous inner classes, in case of complex lambda methods I often move them to new (static or non-static) function and reference it using "::" operator. On the other hand, when doing simple operations like working on streams simplified lambdas are usually just fine.
22  Game Development / Game Play & Game Design / Re: Blender or GIMP ? Libgdx or what ? on: 2016-04-05 10:57:15
Caspian's First Law of Indie Game Programming: don't do 3D.

Cas Smiley

Second law of Indie Game Programing (for experts only!) - don't do 3D yet. Smiley

And seriously, "full" 3D is usually much more time consuming than almost anything done in 2D... Altrough game itself can be 2D while graphics are 3D.
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-04-04 10:52:36
It's a tough choice.  University is investing in your future and it can be an expensive investment.  If you learn too little, you lose.  If you spend too much for what you've learned, you lose.

Not really expensive (for me personally only public transport cost) unless we consider time needed for university as well (but you can still spend your free time on personal projects, open source etc.). Personally I am looking at university as a good time to try different things, develop both in my main area of interest as well as other programming domains.
24  Discussions / General Discussions / Re: Virtual Reality on: 2016-03-27 21:26:56
Allow me to piss on everyone's chips but VR is going to be a massive flop - at least, in the gaming industry.

Let's guess some numbers.

Number of people willing to pay $x00 for a VR system (I'm assuming they get them to that sort of price)
Number of people who have a physical playing area around their PC actually big enough for VR experience
Number of people willing to don ridiculous headgear just to fire up some game or other
Number of game designs that would be good in VR... that's basically, er, FPSes, plus a few niche interests like "surgeon simulator" and so on*
Amount of money that needs to be spent on an FPS to compete with the latest AAA titles
Amount of extra money needed to make that title support VR adequately and meaningfully (remembering stringent performance requirements to avoid motion sickness and achieve suspension of disbelief)

Discuss the numbers and then tell me how VR is going to be in any way a success. Compare and contrast with 3D cinema. Or maybe even 3D TV for laughs. Pay special attention to previous stabs at 3D goggle tech such as Nvidia's shutter goggles.

Cas Smiley

* Feel free to call me out on this one but let's face it the AAA games industry is not renowned for its innovative risk taking in game design, is it?

To be honest, I think that AAA industry will be one of first to use VR on the bigger scale, just like in case of 3d which is put into most of movies and TV's nowadays, but (especially in case of TV) almost not used at all (although I know only few cinemas with 3d as well). The same with VR, people either don't want, need or cannot afford it.
25  Game Development / Game Mechanics / Re: Best way for LWJGL to AWT in 3? on: 2016-03-09 06:28:16
OpenGL in  AWT works good in JOGL. When it comes to LWJGL... One of possible solution would be to create offscreen window, render anything you need in it and then read pixels and use them to create proper BufferedImage.
26  Discussions / Miscellaneous Topics / Re: I hate hi-res graphics on voxel based games on: 2016-02-25 17:44:35
To be honest, I think that Skyrim graphics style fit this game perfectly - on second screenshot I am barely able to recognize anything, although situation would be different if the whole game was designed with this style in mind.

On the other hand, there are games where hi-res graphics (and "hiding"/smoothing voxels) are usually more harm than good:

Let's take a look at Space Engineers/Seven Days to Die - both of them have "mixed" style with semi-realistic terrain and square structures. Due to that, terrain to structures transitions look terrible, there are problems with determining actual terrain "volume" as well.

Terraria/Starbound - while being 2d games, so hard to compare to the ones I mentioned above - solved this problem perfectly. Terrain is not perfectly squared, but transitions are clearly visible and therefore editing terrain is much easier and more enjoyable.
27  Discussions / General Discussions / Re: Unity3D/2D on: 2016-02-22 10:52:07
My opinion:

Unity is VERY great if you want to actually make and finish the game in reasonable amount of time - it have all kinds of features you need to achieve this goal and - even if something is missing - you can easily grab that from asset store or make on your own. Probably the biggest problem for lots of people is that you must stick to Unity API if you actually want to have something done, and that it makes writing clean code really hard (forget about good scope control unless you want to use some dirty tricks, stuff like MVC and many other useful patterns - while possible - are mostly impractical here). It also lacks good IDE, MonoDevelop or Visual Studio are not even close to NetBeans or Eclipse and tend to be much slower. Also, are you Linux user? Well... Then available toolset is even smaller - while Unity itself works on Linux natively, forget about Visual Studio.

On the other hand, Java is excellent if you want to have code-heavy stuff finished in reasonable amount of time, so - while writing game in it will in most cases take much more time than in Unity - it is very good for writing tools, especially GUI-heavy tools. Unity don't have good out of box GUI support with advanced components, while Java have two very good GUI libraries with lots of available free libraries for them: Swing and JavaFX. Like I mentioned in Unity section, Java IDE's tend to be better than their C# equivalents, you are not limited with pretty strict Unity pipeline as well.
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-02-18 21:42:56
Had some fun with LWJGL 3 and contexts in OpenGL, here is example result:

There are no 6 textures loaded in 6 different windows: all windows use the same texture, loaded in offscreen window.

This code is very simple, I compressed it into very basic example of how to share resources between multiple windows. In case of Windows, this must be offscreen window and it must be not current on any thread while creating new window bound to it (but after that, you are free to make it current again - just make sure to call "glfwSwapBuffers(offscreenWindow)" each time you load new texture/model etc.).
29  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-02-12 02:53:36
Another day, another GIF... Map generator is taking shape, it is time to finally start adding actual generation on top of this framework which is basically UE4 Blueprint system implemented in Java, with some additional features to make it more friendly for typical user.

Click to Play
30  Game Development / Newbie & Debugging Questions / Re: Ways(or Best Way) of Declaring Orthographic Projection on: 2016-02-12 01:07:28
From my current experience:

-1...1 approach - good if you want to maintain similar look on different resolutions. Trade-off: on large screens and resolutions graphics will look blurry unless proper precautions will be taken.
Screen width and height approach - good for UI's, pixel art and other things that needs to be pixel perfect. Trade-off: on small resolutions UI/game area can be too small, while on large ones this can be exact opposite.

Keep in mind that you can for example render game using first approach and then switch to second projection and render UI - it is good idea to mix these two (and maybe even some other) approches. Smiley
Pages: [1] 2 3 ... 13
orrenravid (220 views)
2016-07-16 03:57:23

theagentd (290 views)
2016-07-11 14:28:54

Hydroque (378 views)
2016-07-06 05:56:57

Hydroque (529 views)
2016-07-03 08:52:54

GrandCastle (400 views)
2016-07-01 09:13:47

GrandCastle (393 views)
2016-07-01 09:09:45

CopyableCougar4 (446 views)
2016-06-25 16:56:52

Hydroque (420 views)
2016-06-22 02:17:53

SwampChicken (386 views)
2016-06-20 13:22:57

SwampChicken (306 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17 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!