Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (426)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
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 ... 69
1  Game Development / Game Mechanics / Re: Axis-aligned cylinder-triangle collisions on: 2014-04-22 13:39:54
I have no resource at hand, but try googling capsule collision instead of cylinder.
2  Discussions / Miscellaneous Topics / Re: What programs are there for making music? on: 2014-04-20 21:34:15
I am a fan of Renoise, http://www.renoise.com/products/renoise. You can download it for free with some minor limitations.

Most notable you need an external wave recorder like freecorder to record the final song to. wav with the free version
3  Game Development / Newbie & Debugging Questions / Re: New vector from known angle on: 2014-04-17 10:51:30
What the actual ...?
Normal vectors and dot product? Come on.

Don't fight math. It will help. Especially vector-math is a very valuable tool for games. Inverting the axis is just a shortcut in this special case. Next time you need to calculate your balls movement (nice wording Wink) in another case, you'll need to learn it anyway or fall back to another shortcut for another special case, and on and on and on...

If you limit your solutions to special cases, you limit your game to special cases and therefor limit your creativity to special cases...
4  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-14 17:39:21
Ah ok, so you randomly need to process sprites from your available sheets and it's not a sheet per level or something?
5  Game Development / Newbie & Debugging Questions / Re: New vector from known angle on: 2014-04-14 16:50:53
Learn a bit of vector math. Especially what normal-vectors are and what a dot-product is. Otherwise you will get stuck again. Other than that, google for "2d vector math primer" and "2d vector reflection".
6  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-10 18:15:35
good if it works for you now, but you for sure made a mistake somewhere, because a 1024x512 pixel image is peanuts... Also loading one bigger file is waaaaaaay faster than 300 small properties files - creating pixel-perfect maps for 512 sprites from a single sheet should be doable in millis, not in seconds...
7  Game Development / Newbie & Debugging Questions / Re: Advice on a faster way to check every pixel in an image. on: 2014-04-09 16:01:11
Sadly though, I realized the major issue isnt coming from getColor, it's coming from where getColor has to get it's data. I was pulling the source image from a very large spritesheet and the problem is when .getColor (or any of your methods) are used it has to grab that value off a huge 1024x512 spritesheet, and there in lies the slowdown. I wasn't realizing that even though I am only looking at a 32x32 image I pulled from the sheet, when it has to calculate color values it has to load up the entire sheet into memory. Thus, the major slowdown. Problem with that is, even your guy's methods of snagging the byte array still has similar issues because of that. So your methods are a lot faster, but not fast enough!

Just make sure, you load the image only once at startup and always use the same instance and you should be fine...
8  Discussions / Miscellaneous Topics / Re: C++ standard library is really lacking - good or bad? on: 2014-03-02 23:33:14
I imagine Java is used for much of the front end code in a company. C++ for the powerful back end.
Erm... no Smiley

If you really want to go the C++ route, make sure you fully understand and see the implications of its object model. Especially regarding virtual functions,  virtual destructors,  when and why you need them and how pass by value works for objects.

Also keep in mind that C++ code might look correct,  compiles and even runs,  but could be still be very wrong...
9  Discussions / Miscellaneous Topics / Re: C++ standard library is really lacking - good or bad? on: 2014-02-27 17:48:24
IMO the only low level part of C++ is just C.

Other than that C++ requires you to very much think about what possibly could go wrong beforehand, because with C++ it will go wrong in the end and you will have a hard time to debug it.

Granted, this opinion is based on legacy experience, but I doubt it has changed too much...
10  Games Center / WIP games, tools & toy projects / Re: Synthclipse - GLSL demo development environment based on Eclipse IDE. on: 2014-02-20 09:54:30
You could use java. Smiley  I don't see any reason to use a dynamically typed language, but I don't know what your vision for scripting is.

+1 for java or simply loading class-files and providing a api-jar, so everybody could use any language that compiles to jvm bytecode.
11  Discussions / Miscellaneous Topics / Re: I present to you: the BS-LC ratio! on: 2014-01-24 13:45:07
hmm.  I do the latter,  BUT I contribute... So what am I?   Roll Eyes
12  Discussions / General Discussions / Re: Did you ever cut corners to solve a problem? on: 2013-12-12 12:58:13
edited to fit the usual day job environment:

Most of the time i write some hacky prototypes to try out some new ideas.
After a while it gets really dirty (and unfortunately works), then my boss comes around and releases the solution into production.
13  Game Development / Game Mechanics / Re: 3D perspective correct texture mapping on: 2013-11-21 19:51:37
Quote from: Wikipedia link=http://en.wikipedia.org/wiki/UV_Mapping
The letters "U" and "V" denote the axes of the 2D texture[note 1] because "X", "Y" and "Z" are already used to denote the axes of the 3D object in model space.


Source: Texture Mapping Mania
14  Game Development / Newbie & Debugging Questions / Re: Debugging, i'm doing it wrong? on: 2013-11-21 19:43:23
the problem with anything is that there always might be something that may not work sometimes...  Tongue

My answer was a bit coarse.

I just wanted to emphasis that trying to find a bug using a debugger first usually helps in the majority of cases. Depending on the nature of the problem, you sometimes need to log debug output, put in asserts, use conditional breakpoints, create isolated testcases, draw color markers in textures etc.
15  Game Development / Newbie & Debugging Questions / Re: Debugging, i'm doing it wrong? on: 2013-11-21 14:01:48
1. USE THE DEBUGGER
2. USE THE DEBUGGER
3. USE THE DEBUGGER

but seriously.... USE THE DEBUGGER Wink

In all IDEs I know, using the debugger means:

- click in the column between your code and the line numbers to create a breakpoint at an interesting place
- start your program by clicking on the debug button instead of the run button
- your program will halt at the breakpoint, marking that line
- you get a panel with all variables and their values at the bottom

thats it. no need to hold you back. once you've found out about other possibilities like setting values of variables on-the-fly and even hot-exchanging code during your debug session, you'll ask yourself why oh why you ever even bothered writing System.out.println to debug something...
16  Games Center / WIP games, tools & toy projects / Re: 3D Game Engine From Scratch on: 2013-11-21 13:50:52
Oh, matrices suck...
http://www.sjbaker.org/steve/omniv/matrices_can_be_your_friends.html
17  Java Game APIs & Engines / OpenGL Development / Re: Learning LWJGL/JOGL to C++ with OpenGL on: 2013-11-13 14:24:36
Go with LWJGL.  If you use static imports with the GL classes,  your OpenGL code almost looks identical to the C/C++ counterpart.
18  Game Development / Shared Code / Re: 2D normal maps on: 2013-11-03 12:01:35
hmm, would it? I thought of passing the rotated lightsource as vertex attribute. compute it per bone and pass the same for every attached vertex, but you may also rotate it in the vertex shader when you pass the bone matrix. of course this requires that you can pass additional vertex attributes per batched image...
19  Game Development / Shared Code / Re: 2D normal maps on: 2013-11-03 10:28:23
cant you just rotate the lightsource per bone instead to "simulate" the effect you'll get from rotating the normals?  
20  Game Development / Performance Tuning / Re: Concurency in 3d engine. on: 2013-10-18 21:30:31
One frame is 16 miliseconds with 60 fps. Thats really a small amount. So the tearing can remain at most for 16fps. It's almost impossible to see.
I see such things and are really annoyed by them.  Other than that it is only difficult to spot if it happens once in a while,  but as soon as the update thread and the render thread each take more than 50 percent of the frame time,  its probable that it happens every frame!

also if you use locks to solve latency problems, youll effectively synchronize your engine into single threaded performance - also youll hate to debug it.  but as you said,  time will tell  Tongue
21  Game Development / Performance Tuning / Re: Concurency in 3d engine. on: 2013-10-18 15:00:46
actually you might reconsider your opinion on copying renderstates,  because not having a frame completely updated befor drawing results in annoying glitches. your argument that it is only milliseconds does not hold,  because the glitch is at least timeboxed to the frame time. especially in more demanding scenes youll get the 3d equivalent to screen tearing,  but extended to all kinds of attributes - from color to lighting to textures to geometry. and since it can happen that youll have completely different glitches in subsequent frames youll end up with a very poor visual quality.  you need at least something like double buffering for your data.  to reduce data copying you could journal your changes to one buffer and apply the same changes to the second buffer before applying the changes for the next frame.
22  Game Development / Performance Tuning / Re: Does this cause lack of Performance? on: 2013-10-12 16:33:46
should be.  but more importantly it does not create redundant temporary string objects that cause unwanted garbage collector runs. Also see: http://www.odi.ch/prog/design/newbies.php#3
23  Game Development / Performance Tuning / Re: Does this cause lack of Performance? on: 2013-10-12 10:37:43
afaik primitives are autoboxed to be able to call toString on them.  Jeremys answer is best.
24  Game Development / Newbie & Debugging Questions / Re: Saving game data with performance in mind on: 2013-10-11 21:04:51
for the ease of it,  I would try to load/save json through xstream. also try out roquens advice to use compression by wrapping the input and output streams with inflater or gzip streams.  chances are that network/filesystem bandwidth is more limiting than cpu
25  Game Development / Newbie & Debugging Questions / Re: [LWJGL] Use 2 images to create shadows on: 2013-10-10 09:27:00
to answer the OPs initial question, google: FBO render to texture opengl
26  Game Development / Game Mechanics / Re: The 0,1 & 2 conundrum! on: 2013-10-09 22:12:34
you need to xor the incoming edge with 3 beforehand:
1  
2  
3  
x^=3;
op1=x&1;
op2=x&2;


but i dont know, if the ^= translates to two bytecode instructions eating up the savings in op1 and op2...
27  Discussions / Business and Project Discussions / Re: "Chunk Engine" - Upcoming Voxel-Based 3D Sandbox Game Engine on: 2013-10-09 21:07:41
Your site shows:
Error establishing a database connection

How will you compare to the likes of Voxelfarm or Atomontage?
28  Discussions / Miscellaneous Topics / Re: ISS for "Hacking" and Strange Depression... on: 2013-10-08 09:59:18
@depression:
Do sports
( or sex  Wink )
No really, you need to do something body related, so you're moving your focus away from your thoughts towards physical  self-awareness. Coding (alone) does not help. Force yourself to socializing may also not work, because you need some kind of openess to get something out of it.
29  Discussions / General Discussions / Re: Is the WIP Section supposed to be used as some sort of development blog? on: 2013-10-07 09:46:18
If you spell it correctly, my bots will detect your posts about me (...)
Shocked Oh my... err... this is satire, isn't it? Roll Eyes
30  Games Center / WIP games, tools & toy projects / Re: SF Citybuilder- Buildings/Concept Art on: 2013-10-03 11:15:04
http://www.opengl.org/wiki/Texture%5FCombiners
Pages: [1] 2 3 ... 69
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (74 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (80 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (81 views)
2014-04-14 15:48:38

tom_mai78101 (105 views)
2014-04-10 04:04:31

BurntPizza (165 views)
2014-04-08 23:06:04

tom_mai78101 (261 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!