Author Topic: 3d shakey at range  (Read 2385 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1622
  • Particle Hawk
    • View Profile
3d shakey at range
« on: 2009-Dec-01 »
3d starts shaking after you go further than 32000 in xyz from the center of the world(0,0,0)


as go further, the shaking oscillates progressively faster proportionally.

at around 32000 the shaking starts(about 1 pixel across screen), and at 100000+ the shaking is about 3 or 4 pixels oscilation across the whole 3d screen.

I dont know if this is a GLBasic bug, or an OpenGL common issue.
Either way, at this point it is something to be careful of, not to stretch too far.

I found this issue by trying to represent a position as 1 foot, and create a rather large world...time for some scaling.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10852
  • here on my island the sea says 'hello'
    • View Profile
Re: 3d shakey at range
« Reply #1 on: 2009-Dec-01 »
might be a problem, because internally OpenGL uses 32 bit floats.