Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


Neometron

Member Since 22 Feb 2007
Offline Last Active Aug 28 2015 10:36 PM

Posts I've Made

In Topic: Week of Awesome III - The competition Thread

12 August 2015 - 11:17 PM

Hi everyone,

 

The theme "Death is Useful" has turned out to be harder than we thought and it was a slow start for us.

 

Although, I have just made my first journal post ever! Come check it out ;)

 

http://www.gamedev.net/blog/1687/entry-2261391-week-of-awesome-iii-part-one/


In Topic: The Week of Awesome III - The third annual unofficial gamedev.net competition...

12 June 2015 - 09:28 PM

Back in 2005 I was gearing up for the 4 elements competition, but ended up in the military. Now, I'm a family man with aspiring children who want to make video games. I would like to join this competition with my kids as:

 

Team: Digital Owl

Members: Neometron (programmer), Javasuave (audio), Shadowmon (artist)

Website/Blog/Twitter handle: https://twitter.com/neometron

 

I'll set my calendar ;)
 


In Topic: Floats and Android Devices

13 August 2013 - 08:13 AM

Thanks Hodgman for the article. I have seen fixed time step method used in the Minecraft server code when I created mods for my home server. However, I have not used this method in my current project. Although, while debugging, I have set my time delta to 1.0 to check consistency between devices.

It turns out this was causing different values:

double mag = Math.sqrt(Math.pow(this.x, 2) + Math.pow(this.y, 2) + Math.pow(this.z, 2));

 

I have changed it to this and everything became consistent and my ball collides on both devices: 

double mag = Math.sqrt((this.x*this.x) + (this.y*this.y) + (this.z*this.z));

 

Why is this?


In Topic: Floats and Android Devices

05 August 2013 - 11:05 AM

SiCrane,
My physics is essentially the same from you have shown.

This worries me that over time values will have so many errors that it will break the game.


In Topic: Floats and Android Devices

05 August 2013 - 10:57 AM

Very interesting;
Running
 float sum = 0; for(i=0; i<10000; i++) sum += 0.0001; yields 1.0000535 where doubles are 0.9999999999999062.

So currently there could be a potential problem even on my tablet over a span of time. I do check some results against an epsilon value of 0.001, but does this have to be done on every operation? How would one combat error accumulation? Is switching to doubles the answer or is that kicking the can down the road? Do I have to round all results before continuing?

Questions seem to result in more questions ;)


PARTNERS