Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 ... 27
1  Discussions / Miscellaneous Topics / Re: Things you disagree with in the java language on: 2012-09-12 12:27:10
Yes, that'd be a great option for Eclipse to support.

You can get most of the way there with the @NonNullByDefault annotation - you can apply this at the package, type or method level so it's not a lot of work to cover the entire codebase, and you can leave bits out if you want.
2  Game Development / Performance Tuning / Re: Particle Optimization on: 2012-01-20 05:15:01
Vertex arrays should be far, far faster than glVertex calls. How are you using them? Can you describe your render loop?
3  Game Development / Newbie & Debugging Questions / Re: Recording demos on: 2011-05-28 09:48:00
Do you know an efficient solution to record demos on Linux? XvidCap is very slow on my machine Sad
Recordmydesktop works fairly well.
4  Game Development / Newbie & Debugging Questions / Re: Is this JDK ok? on: 2011-03-18 09:45:26
You don't have to go outside the repository to install a Sun/Oracle JDK - the package is called "sun-java6-jdk"
5  Discussions / General Discussions / Re: Go on, ask me anything. on: 2011-03-17 10:10:03
This question has been bugging me for ages.
What the feck is a gidrah?
I had the same question.
6  Game Development / Game Mechanics / Re: Specialized Data Structure on: 2011-03-03 16:25:36
Sounds like what you want can be solved by a doubly-linked list whose nodes are stored in an array, plus a stack to keep track of empty array locations.
7  Game Development / Newbie & Debugging Questions / Re: byte[] => String => byte[] on: 2011-03-02 07:02:09
Check out base 64 encoding
8  Java Game APIs & Engines / OpenGL Development / Re: Get translation and rotation based on a triangle on: 2011-03-01 15:20:05
Is this in 2D or 3D?
9  Game Development / Newbie & Debugging Questions / Re: Pass By Reference Doesn't Work For Wrapper Classes?? on: 2011-02-19 10:05:40
Yes, java.lang.Integer is immutable. You would have to define your own mutable integer wrapper class.
10  Game Development / Newbie & Debugging Questions / Re: Pass By Reference Doesn't Work For Wrapper Classes?? on: 2011-02-17 10:35:10
As gouessej says, java passes everything by value - passing an object passes the value of the object reference.
11  Java Game APIs & Engines / OpenGL Development / Re: Simulate "glowing" in character on: 2011-02-12 06:48:41
hummm excelent Idea .
But then I'd have to disable writing on depth buffer, otherwise I would see only the bigger one .

I'll try that, thanks for the quick reply !
No need to disable depth buffer, just either draw the glow quad further away (bump the z-coordinates or use glPolygonOffset), or set your depth test to LEQUAL and draw the glow quad first.
12  Games Center / Featured Games / Re: Revenge of the Titans on: 2011-02-12 06:42:05
... a bit too difficult ... I'm playing on the hardest difficulty.
Sounds like successful tuning to me.
13  Java Game APIs & Engines / OpenGL Development / Re: games on the galaxy tab on: 2011-02-11 10:25:44
Android has both LWJGL and JOGL style ways to get at OpenGL, so porting is not a big problem.
14  Game Development / Game Mechanics / Re: Trigonometry Java on: 2011-02-05 15:31:51
Use Math.atan2( y, x ). It'll handle the division of mY over mX (and the attendant risk of divide-by-zero) for you. Note the order of arguments though - it's very easy to get used to entering the x value as the first argument when doing geometry stuff.
15  Java Game APIs & Engines / Android / Re: Android Emulator performance? on: 2011-02-04 15:17:22
It's awful. Don't waste your time with it, especially for OpenGL stuff (software rendering FTL).

Edit for posterity: have since discovered that it's broken in scarily fundamental ways: Version 1.2 does not implement glGetFloat. Admittedly, it will log messages when you call it. The problem is that the message is "unimplemented API", so not too helpful.
16  Java Game APIs & Engines / JOGL Development / Re: get as much video memory I have on: 2011-01-28 13:06:03
This is the JOGL section, proposed solutions have to use JOGL.
I'm having difficulty understanding why this restriction is necessary. It seems like an arbitrary rule that can only reduce the quality and amount of help that the forum can offer. Could you perhaps explain what undesirable outcome it is protecting us from?
17  Game Development / Newbie & Debugging Questions / Re: Update stuff unsync with the rendering loop on: 2011-01-22 14:10:51
Use System.currentTimeMillis() to track the time between frames
18  Java Game APIs & Engines / JOGL Development / Re: get as much video memory I have on: 2011-01-22 14:08:33
Is this any good?
19  Game Development / Newbie & Debugging Questions / Re: Update stuff unsync with the rendering loop on: 2011-01-21 12:34:48
Aye, use delta time if you want to update not in multiples of frames. i.e
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
long particleDelta = 1000 / 20; // update particles at 20 fps
long particleTime = 0;
long aiDelta = 1000 / 40; // AI at 40 fps
long aiTime = 0;

private void advance( long delta )
{
   particleTime += delta;
   while( particleTime >= particleDelta )
   {
      particles.advance( particleDelta );
      particleTime -= particleDelta;
   }

   aiTime += delta;
   while( aiTime >= aiDelta )
   {
      ai.advance( aiDelta );
      aiTime -= aiDelta;
   }
}
20  Discussions / General Discussions / Re: A successful attack on SMF on: 2011-01-18 11:33:15
As I noted just before the outage, spammers are still managing to register. It seems that there are actually three certainties in life: death, taxes and spammers.

Huge props to Riven for his efforts. It sounds like this attack was a shuddering nightmare for your server, so to have the forum back up so soon deserves more than an appreciate++. Thankyou.

Does a more secure forum package exist? From reading the #lwjgl logs it sounds like SMF is a gaping orifice of fail on the security front, and our installation in particular is thoroughly compromised. If it's going to be a ball-ache to fix up then I wouldn't be opposed to a fresh start: stick the current forum into a read-only archive, everyone re-registers and carries on as before.
It's happened before IIRC, when we moved to YABB.

Well, the databasedump was not infected. Whatever naughty stuff is in the database, it won't make it through to the visitor, because SMF does proper escaping of values in the database. I made a fresh install of SMF, on a fresh server. I have no reason to assume 'our installation is thoroughly compromised' ... it was, I hope.
Good news!
21  Game Development / Newbie & Debugging Questions / Re: Impossible ArrayIndexOutOfBoundsException on: 2011-01-18 10:26:13
Thanks for the feedback: So it seems that this is at least not embarrassingly obviously my fault. The possibilities that I can see:
  • Malicious users: they've altered or fabricated the error reports. I've had reports from 3 different people, I'd hope that they'd have more to do with their lives than conspire to troll me with bizarre error reports.
  • Some error in the reporting mechanism. I can't see it if it's there. Anyone else?
  • VM error. I've encountered some worrying stuff in android before, but this is on a different level entirely...

I suppose the android mailing list would be the next step...
22  Discussions / General Discussions / Re: A successful attack on SMF on: 2011-01-18 10:06:53
As I noted just before the outage, spammers are still managing to register. It seems that there are actually three certainties in life: death, taxes and spammers.

Huge props to Riven for his efforts. It sounds like this attack was a shuddering nightmare for your server, so to have the forum back up so soon deserves more than an appreciate++. Thankyou.

Does a more secure forum package exist? From reading the #lwjgl logs it sounds like SMF is a gaping orifice of fail on the security front, and our installation in particular is thoroughly compromised. If it's going to be a ball-ache to fix up then I wouldn't be opposed to a fresh start: stick the current forum into a read-only archive, everyone re-registers and carries on as before.
It's happened before IIRC, when we moved to YABB.
23  Discussions / General Discussions / Re: Vote now in the official JGO logo contest thread with this topic on: 2011-01-14 23:49:59
I'm going to change my vote to minus A. I want the red eye without highlight, but I also want no highlight on the head or text. Minimalist FTW.
Icons and logos should be as simple and bold as you can get away with, not made out of polished plastic.
24  Game Development / Newbie & Debugging Questions / Re: Impossible ArrayIndexOutOfBoundsException on: 2011-01-14 17:35:24
I wish it were that easy. The code was lifted straight from somewhere else, java-fied and committed.  I haven't touched it since, so I don't think there are any other versions of this class out there (at least from me). Also, the crash report was versioned :-/
25  Game Development / Newbie & Debugging Questions / Impossible ArrayIndexOutOfBoundsException on: 2011-01-14 16:39:00
Can anyone see how this frustum code can cause the following exception?
1  
2  
3  
java.lang.ArrayIndexOutOfBoundsException
at com.ryanm.droid.rugl.util.geom.Frustum.extractFromOGL(Frustum.java:180)
...


The offending line 180:
1  
frustum[ 3 ][ 0 ] /= t;

The declaration of the frustum arrays:
1  
private final float[][] frustum = new float[ 6 ][ 4 ];

The only instances of "new" in that file are the 4 at the start, so there's no way that the arrays are being changed after construction.
To put it mildly:  Huh

I've had 5 reports of this from 3 different users. The only possible explanation that I can see someone out there has taken my (freely available) code, b0rked it, and is distributing broken apks.

Does anyone have an alternative?
26  Discussions / General Discussions / Re: Spam problem not quite solved. on: 2011-01-14 13:12:41
Well that seems to have worked, I haven't seen a spam post since Cheesy
Bizarrely, there are still spam profiles getting through. I find it incredible that there are real people out there who have the knowledge to compile and run a java snippet who find it worthwhile to spam forums. Do we know if they try to post, or is their objective just to get the signature into the DB? Does the verification snippet change? Is it possible that the solution is being shared amongst spammers?

I also note that I've gained a "Delete this account" ability that purports to nuke a user and all their posts. Is this safe to use? Have the potential DB problems been resolved?
I have to admit, its presence makes me slightly nervous. I'm pretty sure I'm not going to abuse the awesome power it affords, but who knows what evil lurks in the hearts of men? It's like a big red button labelled "DO NOT PRESS"  persecutioncomplex
27  Discussions / Suggestions / Re: Stack Overflow style view on: 2011-01-10 23:48:06
It is a ridiculous piece of interface design - the most useful link is the smallest, least obvious thing to click.
In fact, would it be possible to make the thread title link go to the first unread post rather than the first in the thread?
28  Discussions / Suggestions / Re: Stack Overflow style view on: 2011-01-09 03:26:01
Something like http://www.java-gaming.org/index.php?action=unread?
29  Discussions / General Discussions / Re: Vote now in the official JGO logo contest thread with this topic on: 2011-01-05 00:10:31
A++
30  Discussions / General Discussions / Re: PS3 gets its front door kicked in! on: 2011-01-04 11:19:59
You still NDA'd?
Pages: [1] 2 3 ... 27
 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (22 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (68 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (55 views)
2014-09-08 06:06:29

BurntPizza (39 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (30 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

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

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

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

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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!