Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Neometron

Member Since 22 Feb 2007
Offline Last Active Jul 05 2015 12:03 PM

Posts I've Made

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 ;)


In Topic: Backgrounds for full 3D camera rotation

20 August 2012 - 12:22 PM

#1 is the most efficient and what you described is called a skybox. However, there should be no collision detection applied to the cube.

PARTNERS