BASIC

Author Topic: 3d camera source code bug - added project  (Read 1171 times)

Offline djtoon

  • Dr. Type
  • ****
  • Posts: 290
    • View Profile
hi
people
iv attached a project im working on

what happens is the camera shakes when you move the ui

its a simple iphone ui for a flight sim
here is the project

if anyone can help me figuew out why the camera shakes when you move and turn

thank you in advance



[attachment deleted by admin]

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: 3d camera source code bug - added project
« Reply #1 on: 2011-Feb-16 »
Hi,

you have a problem with Z-fighting here. (Google it).

You should not use such a large scale from minz to maxz. Try to keeb between 0.1 and 1000.

X_MAKE3D 100,100000000,45
helps "a bit" - but please redesign it.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Re: 3d camera source code bug - added project
« Reply #2 on: 2019-Feb-10 »
Point-to magnitude must be high, like 1000 or more
when the pointto is low, it is a choppy rotation and makes the cam "shake"

Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5006
  • O Rly?
    • View Profile
Re: 3d camera source code bug - added project
« Reply #3 on: 2019-Feb-11 »
Hemlos, the post was 3 Years old...
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Re: 3d camera source code bug - added project
« Reply #4 on: 2019-Feb-11 »
poor sap
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)