Giter Site home page Giter Site logo

Rotations around world axes about p5.easycam HOT 4 OPEN

diwi avatar diwi commented on May 22, 2024
Rotations around world axes

from p5.easycam.

Comments (4)

nevahid avatar nevahid commented on May 22, 2024

hi there. i guess it's too late, but i'm curious if you managed to solve it!
i faced same problem here, so i thought it would be ok if i set the distance to be (1,0). i mean just close to the camera. now if i drag mouse, the camera will rotate around itself (by one pixel difference) and it looks good in this way... what about you?

from p5.easycam.

DavidResin avatar DavidResin commented on May 22, 2024

Oh my god that was almost a year ago. I completed this project without p5 in the end. I used Three.js and here is what I settled with:

camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
controls = new THREE.OrbitControls( camera, renderer.domElement );

from p5.easycam.

nevahid avatar nevahid commented on May 22, 2024

Yup... sooo late... time really flies... :-) thank you anyway...

from p5.easycam.

DavidResin avatar DavidResin commented on May 22, 2024

My pleasure!

from p5.easycam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.