Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

273
Views
Three.js cant see corner of cubes

I created an Orbital Controls with a boxGeometry to render a box. However, when I zoom to my desired distance from the box, the corners of the box do not get rendered like so:

image

I am currently using react-three-fiber and react-three-drei

const SceneItems = () => {
    return (
        <>
            <OrbitControls
                minDistance={0.001}
            />
            <ambientLight intensity={0.5} />
            <spotLight position={[10, 15, 10]} angle={0.3} />
            <Cube />
        </>
    )
}

const CompleteScene = () => {
    return (
        <div id={styles.scene}>
            <Canvas
                camera={{ position: [0, 0, 0] }}
                orthographic={true}
            >
                <SceneItems />
            </Canvas>
        </div>
    )
}

I figured I could reduce the minDistance on the OrbitalControls but to no effect. What am I missing?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Not sure if this counts as a complete answer, but for whatever reason when I remove the camera property in <Canvas> I am finally able to get the result that I want. I think since <Canvas/> provides a perspectiveCamera by default and I added the props there, it overrode my added orbitalControls.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!