BASIC

Author Topic: Prevent 3d Camera "Shake"  (Read 220 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Prevent 3d Camera "Shake"
« on: 2019-Feb-10 »
To prevent cam shake in 3d:

Cause Number #1: Camera Point-to Resolution
You want the resolution of the camera rotation to be very fine factors.
The Point-to magnitude, the point-to length must be high, like 100 or more.
If magnitude of pointto is small, like value of 1.0, the entire scene in the area will "shake" when the camera moves.

Cause Number #2: Skybox Sphere/Box Radius
For the same reason point-to res causes camera shaking, a background skybox sphere needs to be wider than 1.0
eg. The skybox position should follow your camera, and should be wide radius (although 1000.0 works, i use 1 million)
 to be smooth moving to match the fine changes of movement of the camera.
Tip: A box as opposed to a sphere renders better, yet, it will need to be wide radius as well.

--------------------------------
Note about Z-Fighting:
Camera shaking is not the same thing as Z-Fighting, where textures overlap on identical xyz positions.
Some Z-Fighting can be caused by special effects, which are too far to render 100%
Z-Fighting also happens to spheres, with strange texture coordinates on the ends/sides of texture mapping, typical of a sphere.
--------------------------------

That said....you can create ENORMOUS 3d worlds!
I've been working on a 3d space/gravity program, and it is HUGE, no cam shaking even with the cam at extremely far distances (like 300k or more)
edit: I have created a smooth rendering 3d simulation, millions of 3d positions wide, and growing!
« Last Edit: 2019-Feb-17 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Re: Prevent 3d Camera "Shake"
« Reply #1 on: 2019-Feb-10 »
Enormous!
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4168
    • View Profile
    • Portfolio
Re: Prevent 3d Camera "Shake"
« Reply #2 on: 2019-Feb-14 »
Tell more about the 3d space/gravity program!

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Re: Prevent 3d Camera "Shake"
« Reply #3 on: 2019-Feb-14 »
heh
Its just something im playing with , newtons laws, mixed with sphere volume/radius algorithm.
So far what i have is a planetary solar system formation simulator, in very early stages.
Newtons gravity algorithm looks really cool in 3d space.
The spheres increase in mass as they collide, biggest mass wins the collisions.

take a looky:
« Last Edit: 2019-Feb-14 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4168
    • View Profile
    • Portfolio
Re: Prevent 3d Camera "Shake"
« Reply #4 on: 2019-Feb-14 »
Nice! I was just reading about ganymede moon yesterday and how it possibly formed by disk accretion and whatnot.
So while I was expecting an ELITE game, a simulations suits just fine! :D