Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9292507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:53:47+00:00 2026-06-18T20:53:47+00:00

I am currently working on a project that involves working with very large and

  • 0

I am currently working on a project that involves working with very large and very small distances using three.js

I am having an issue on the smaller side of the scene, where the ‘scene’ will start violently shaking.

At first I assumed it was a problem with the Z-Buffer, so I have written a small snippet that changes the near and far properties of the camera every time a new area is entered. This helped with the issues of ‘shimmering’ I was having before, however the scene still moves dramatically at small distances.

One of the conditions under which this happens is as follows

camera.near = .0133333
camera.far = 12
positionToObjects = 6

this should mean that the z resolution is around : .0001, which I feel like should be good enough, but the shaking that occurs is MUCH more then this.

The Objects themselves range everywhere from -200000 – 200000 in the ‘global’ position, however the scenes themselves do not change position

The other thing that I was thinking that it could be is the camera controls I have been using which are (abbrviated) as follows

if(mouseIsDown == true){
    if(this.movementSpeed < this.maxSpeed){
        this.movementSpeed += this.acceleration
    }else{
        this.movementSpeed = this.maxSpeed
    }

}else{
    if(this.movementSpeed > this.minSpeed){
        this.movementSpeed = this.movementSpeed/this.deceleration
    }else{
        this.movementSpeed = this.minSpeed  
    }

}

where this.minSpeed = 0, and this.movementSpeed is used to move the camera like so:

var actualSpeed = delta * this.movementSpeed;
this.object.translateZ( -actualSpeed * forwardOrAuto );
this.object.translateX( actualSpeed * sideSpeed );
this.object.translateY( actualSpeed * upSpeed );

However, even when the camera is not moving (up to 8 decimal places) the scene is still violently shaking

Are there any reasons that I cannot think of that would make a scene do this?

Please let me know if there is any more information that I can/should provide, and thank you in advance for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:53:49+00:00Added an answer on June 18, 2026 at 8:53 pm

    May I suggest you use values for near and far which are not that small? (Specifically for near)

    Near is used as the divider internally, so if you’re using a small number (<1) you might lose precision and end with those violent movements, as the range of values you’re moving around is way smaller than if you used larger near and far values.

    That’s why you’ll find the default value for near is 0.1:
    https://github.com/mrdoob/three.js/blob/r55/src/cameras/PerspectiveCamera.js#L13

    … although I personally always use 1 for near.

    Also, an online example is always good when asking for help in visual matters 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a project that involves generating sequences using stored procedures
I'm currently working on a project that involves a significant amount of hooking and
I am currently working on a project that is looking at having a database
im currently working on a project that involves listing contacts with a photo and
I'm currently working on a project that involves a CSV file. I initially was
I'm currently working on a project that involves moving a database of documents for
I am currently working on a project that involves crawling certain websites. However sometimes
I'm currently working on a program for a uni project that involves building a
I am currently working on a project that involves splitting a url. I have
I am currently working on a project that involves creating a questionnaire from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.