Code Monkey home page Code Monkey logo

Comments (8)

mrdoob avatar mrdoob commented on May 5, 2024

The code seems fine. Do you have an online link we can test?

from three.js.

Gergling avatar Gergling commented on May 5, 2024

I've set this link up.
http://davies.gotgeeks.com/test/three.js/?debug=0 does not include the debug code
http://davies.gotgeeks.com/test/three.js/?debug=1 includes the debug code

I'm stumped. Any ideas?

from three.js.

Gergling avatar Gergling commented on May 5, 2024

Forgot to mention I've left a pause function in there for the renderer if you click the screen. Also you can use the arrow keys to rotate the model.

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Just a quick test. Could you try camera.position.z = 500?
Otherwise could you zip everything so we can easily try stuff?

from three.js.

 avatar commented on May 5, 2024

I can't find the cause either!

It's strange, since I would suspect that having ThreeDebug.js in addition to Three.js would cause conflicts, but it's the other way around in that having them both is fine, but just Three.js is not. Weird :)

I would suggest stripping down the page until there's no problem anymore, and then slowly build until the problem appears...

from three.js.

Gergling avatar Gergling commented on May 5, 2024

I did the camera position thing locally - you can turn the sphere with the left/right arrow keys, but now you can see the position of the camera - and tried viewing it from the inside (distance 1 instead of 500) but still got no change to the result (other than being inside the sphere of course).

Just so you're aware I never have had the sphere working without the debug include - I've been experimenting with various shapes resulting in the junk code. I was wondering if the next step would be to start from one of the examples, since those seem to work ok, then strip/rebuild like you said.

As I understand it your hypothesis is that the debug code might conflict somehow. Is it possible I'm using a dodgy build of the three.js code or an unreliable combination of files?

I'll let you know my findings.

from three.js.

mrdoob avatar mrdoob commented on May 5, 2024

Probably something was broken on the version of Three you downloaded. I've just tried with the latest Three.js and ThreeDebug.js and works fine :)

from three.js.

Gergling avatar Gergling commented on May 5, 2024

Thanks - that seems to do it. :)

from three.js.

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.