Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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 ... 20
1  Games Center / WIP games, tools & toy projects / Re: SilenceEngine - A 2D/3D Game Engine on: 2014-11-24 21:49:47
Can you elaborate reasons behind making yet another "engine". What are motivates. Why this is better than others or is it(in the future)? What is the future goals? Is this just for learning? Do you have game what drives the development?
2  Discussions / Miscellaneous Topics / Re: How memory works? on: 2014-11-14 21:30:48
In Java, everything is heap allocated.

Just to be clear, Objects are heap allocated. Primitives (like ints, doubles and pointers) are (since their size is known) allocated on the stack.

Computerphile has a video on stacks and why they are fundamental to how we do computation: https://www.youtube.com/watch?v=7ha78yWRDlE
If you liked that, you should go and watch as much of their other stuff as you have time for. It's good stuff.

Nothing says that objects are heap allocated. You just don't have the control. Because of this JVM can optimize allocations away if its like.
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-11 19:15:40
Update on my order-independent transparency algorithm.

What you plan to do with the algorithm? Write a paper from it? Keep it as secret? Share it? Its sounds very interesting and I can't wait to see how well its work on different use scenarios.
4  Java Game APIs & Engines / OpenGL Development / Re: [GLSL] Terrain multitexturing shader is too slow on: 2014-11-11 00:28:18
Ofc I meant uniform vec4 tiles.
5  Java Game APIs & Engines / OpenGL Development / Re: [GLSL] Terrain multitexturing shader is too slow on: 2014-11-10 21:49:57
I meant textureLocations uniform array.
6  Java Game APIs & Engines / OpenGL Development / Re: [GLSL] Terrain multitexturing shader is too slow on: 2014-11-08 12:18:49
How does performance goes if you replace uniform array with 1d texture LUT. This way you get away from all integer based dynamic indexing.
7  Discussions / Miscellaneous Topics / Re: simplifying getter/setter classes on: 2014-11-07 22:29:59
There seems to be an assumption here that setters just set a variable and getters just return a variable.  The majority of uses of setters in my code do much more than that - validate values, fire listeners, invalidate caches, etc.  Even for those minor cases that it is a 'pure' setter, I'd rather leave the option open to add these things in without massive refactoring - even in a private codebase that's still more of a PITA than writing a few setters!

2c  Grin

If your setters are doing that much stuff you are doing it wrong.
8  Discussions / Miscellaneous Topics / Re: simplifying getter/setter classes on: 2014-11-07 00:33:06
Still quite a lot of front-end Java work around as far as I can see, though not as much.
I would love to work as a Swing (or JavaFX) developer the rest of my life.

That would sound extremely depressing.
9  Discussions / General Discussions / Re: What defines a Game Library or Collection of Utilities on: 2014-11-06 00:28:41
Good library solve only one problem and does it elegantly.
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-05 21:06:36
I'm in shock... I think I found the holy grail of graphics programming... I'm literally getting cold sweat...

I solved transparency sorting. I get perfect quality without any pre-sorting at all; not on the CPU or the GPU. I just throw stuff at it and it works. It is completely order-independent. No depth peeling. No stupid additive blending weighted by depth that corrupts color. No shitload of layers to make it look good. No GPU linked lists. Just 4 render targets and 2 passes of all transparent stuff, constant time regardless of view. And then it just works, at perfect quality. At half resolution 1920x1080p, it only uses 13MBs of memory, CONSTANT.

There's no compromise anywhere. It uses a constant amount of memory, runs in constant time, handles any amount of overdraw and always gives correct results. W-what do I do?! Who do I talk to?!

How does that cube shot look when you have actually translucent and additive particles in mix? There must be something that you are not telling or yet discovered.
11  Java Game APIs & Engines / OpenGL Development / Re: Temporal Subpixel Reconstruction Anti-Aliasing on: 2014-11-04 22:00:46
http://screenshotcomparison.com/comparison/98800
Added jittered camera to get 2x supersampling like results. Not yet done with triangleId and only using simple depth based rejection.
12  Game Development / Newbie & Debugging Questions / Re: [engine] How to represent object transforms on: 2014-11-02 19:36:51
Store them in decomposed states. This use less memory(16floats vs 8/10(vec3 pos, quaternion orientation, vec1/3 scale)
This way you can also avoid problems related to interpolated rotations, inverse transforms etc. Composing matrix from these hardly use any cpu cycles.
https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/math/Matrix4.java#L222
13  Java Game APIs & Engines / OpenGL Development / Re: Temporal Subpixel Reconstruction Anti-Aliasing on: 2014-11-02 17:51:18
What is your heuristic for triangleID? Is it really unique per triangle? How about triangles sharing vertices?
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-11-02 14:25:06
Implemented temporalAA. I do resolve before transparent and post process so its fully artifact free. This also help temporal smoothed screenspace global illumination because now input and output is temporally stable.
Did you see my post on temporal SRAA? http://www.java-gaming.org/topics/temporal-subpixel-reconstruction-anti-aliasing/34555/msg/326409/view.html#msg326409
Yeah. Also Unreal prensetation https://de45xmedrsdbp.cloudfront.net/Resources/files/TemporalAA_small-59732822.pdf and Ubisoft ones http://advances.realtimerendering.com/s2014/drobot/HRAA_notes_final.pdf

In Harldand we have very high triangle count >2-3M and about 50% of that is skinned. So any technique that would need extra pass is out off question. Also I am too busy to make anything too sophisticate that also would run on large set of hardware. So I just decided to ditch all camera jittering at all so and use temporal antialiasing just help with temporal shading aliasing and let the fxaa smooth the geometry aliasing. When I get some free time I will put some effort to actually make some high quality antialiasing instead of just temporally stable.
15  Game Development / Newbie & Debugging Questions / Re: Image Effects on: 2014-10-31 23:00:24
Be carefull by chaining many effects serially if you output them to 8bit texture, you will lose precision of original image every time and these errors  just accumulate up and might cause horrible banding. Using +- half bit dither and/or srgb/higher precision after every effect will help with this.
http://loopit.dk/banding_in_games.pdf
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-31 18:44:39
Implemented temporalAA. I do resolve before transparent and post process so its fully artifact free. This also help temporal smoothed screenspace global illumination because now input and output is temporally stable.
17  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-30 23:52:43

Yeah now it look plausible and code seems to be fine.
18  Game Development / Newbie & Debugging Questions / Re: Image Effects on: 2014-10-30 23:49:35
Usually you can find code for any image effect by searching glsl or hlsl shader code. Then just convert that to java code.
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-30 21:34:58
Tested my memory skills; I haven't done any graphics programming in about 5 months! I wanted to see if I could remember hwo to write a phong lighting shader, and to my surprise I got one working without any Google searches. For some reason I couldn't get any ambient stuff working, which is weird. But here it is, specular equation included: http://goo.gl/9p16Po

I probably messed something up (the specular highlight is crazy, I couldn't make it look semi realistic), also I guessed on what the view vector for the site was. But it looks fine...

Edit: I was being stupid about the specular thing. http://goo.gl/vVA3SZ

You forgot to normalize interpolated normal. Also your light vector isn't normalized. View vector is also wrong.(should be from camera to vertex)
20  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-29 17:41:26
On the other hand, I do use anisotropic filtering for particle motion blur. I modify the gradients using textureGrad() and do a single texture lookup for each pixel. Since particles use texture filtering and mipmaps, this looks decent and automatically clamps the maximum blur kernel size to the amount of anisotropic filtering enabled, but it has some limitations. The biggest one is the limited precision of the anisotropic filtering direction. It seems like the anisotropic filtering only works for a limited number of angles, my guess is 32 or 64 discrete angles. For particles, this works pretty well, but I would not want to use it for motion blur, as this could cause weird seams in the blur.

Nice idea, need to test it out. Have you tested extruding particle geometry towards motion vector?  I use this for sparks and other fast moving/emissive particles but it doesn't work at all if particle sprites can have arbitary rotation.
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-29 10:12:03
Would you be so kind that you would share that motion blur code as reference?

http://www.java-gaming.org/?action=pastebin&id=1115

There's lots of things going on in other shaders though. I have 4 other shaders that do motion blur related work. Two of them are used to calculate the maximum and minimum motion vectors of each tile, the third shader dilates the tiles and checks if the resulting min and max vectors have similar weight (if they do, it outputs (2048, 2048) to signal the motion blur shader that it should use the fast path), and then a fourth shader generates the packed (linear depth, motion vector length) texture. It's not easy to implement unless you already have motion vectors and linear depth textures lying around. =P

You could propably optimize the plain color blur by using bilinear or anistrophic filtering and get away with lower amount of actual samples.
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-25 09:10:35
Improved the motion blur even more. It now has no artifacts with anti-aliasing, the gradual change from 0 motion blur to 0.5 pixel motion blur (= when a pixel starts moving just fast enough to get motion blur) no longer makes a visible pop as the introduction of motion blur has been smoothed out, and I no longer get very slightly blurry edges that should be sharp. I've also added a faster blur for tiles that have coherent motion and don't need depth awareness, which improved performance significantly.

Motion blur performance with and without the cheap blur optimization when the whole screen is in motion:
 - Without: 1.275 ms
 - With: 0.68 ms

87.5% faster! =D

Would you be so kind that you would share that motion blur code as reference?
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-24 16:37:19

It's our company own c++ framework so not really java related. I am behind all graphics programming. If someone is interesting about modding there should be plenty fun to do. Everything(shaders, textures, models, entities, world) is moddable in realtime.
24  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-23 19:56:14
Released Harldland early access to Steam. http://store.steampowered.com/app/321980/

That is... IMPRESSIVE!

WOW. So much gonna check that out. Awesome.

(Health-, Stamina-, etc. bars would be nice, numbers are hard to parse quickly Wink )

EDIT: Just saw it's singleplayer.
Mutiplayer is kind of a must-have nowadays. That'd make the game much more awesome, though Cheesy

Multiplayer for small team(7ppl) is huge reach. Maybe one day.
25  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-23 19:36:08
Released Harldland early access to Steam. http://store.steampowered.com/app/321980/
26  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-19 15:48:58
yea. cheesy isn't it Smiley

.. i mean, it's suffering from mipmap issues : not working properly with all resolutions, "kernel size" is bound to mip level and not easy to control. for a subtle effect it's good enough tho' Smiley (even linear filtered)

http://advances.realtimerendering.com/s2014/index.html

"NEXT GENERATION POST PROCESSING IN CALL OF DUTY: ADVANCED WARFARE"
This presentation have nice solution to bloom based aliasing.
27  Game Development / Newbie & Debugging Questions / Re: LWJGL - 3D Frustum Issue on: 2014-10-16 23:45:29
check out http://www.iquilezles.org/www/articles/frustumcorrect/frustumcorrect.htm

he's pointing out what is usualy made wrong when culling frustum.

I tested that method on one of our game and it improved frustum culling accuracy by big 0.2% margin. Using object space aabb's instead of world space was much bigger win with around 2.5% more objects culled.
28  Game Development / Newbie & Debugging Questions / Re: LWJGL - 3D Frustum Issue on: 2014-10-16 18:42:00
Minimal stateless c++ implementation that I use for everything. http://pastebin.com/3uJmYXPT

It's work in any space you want.(Object, world, view)

If you have lot of shared state you can make it faster and precalculate most of the things but its already really fast(hundred million aabbs per seconds)
29  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-10-13 20:02:44
Quickly hacked softer penumbra shadows for alpha tested geometry using stippled discard pattern where alpha > soft treshold(0.25) but < alpha treshold(0.5). This increase quality of grass blade shadows a lot. With these values I wanted to make shadows bit fatter to get higher contrast on areas where normally big shadow kernel would turn thin geometry not cast fully umbra shadows.

https://www.dropbox.com/s/wm51zc79u91e55y/AlphaTestShadowSoftPenumbra.png?dl=0
https://www.dropbox.com/s/heah8svsvpwnyi7/AlphaTestShadow.png?dl=0

Using different values shadows could be also be made more soft/transparent.
30  Discussions / Miscellaneous Topics / Re: Is drinking half a bottle of vodka safe? on: 2014-10-09 20:31:40
This is one of those questions. If you need to ask... don't.
Pages: [1] 2 3 ... 20
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

SHC (24 views)
2014-11-25 03:00:59

SHC (24 views)
2014-11-25 02:53:45

Norakomi (22 views)
2014-11-25 02:26:43

Gibbo3771 (22 views)
2014-11-24 10:59:16

trollwarrior1 (36 views)
2014-11-22 03:13:56

xFryIx (74 views)
2014-11-13 03:34:49

digdugdiggy (52 views)
2014-11-12 12:11:50

digdugdiggy (46 views)
2014-11-12 12:10:15

digdugdiggy (41 views)
2014-11-12 12:09:33

kovacsa (69 views)
2014-11-07 10:57:14
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 13:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 13:36:02

List of Learning Resources
by Longor1996
2014-08-16 01:40:00

List of Learning Resources
by SilverTiger
2014-08-05 10:33:27

Resources for WIP games
by CogWheelz
2014-08-01 07:20:17

Resources for WIP games
by CogWheelz
2014-08-01 07:19:50

List of Learning Resources
by SilverTiger
2014-07-31 07:29:50

List of Learning Resources
by SilverTiger
2014-07-31 07:26:06
java-gaming.org 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‑gaming.org
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!