GithubHelp home page GithubHelp logo

Comments (4)

artur-trzesiok avatar artur-trzesiok commented on July 29, 2024

At this moment we don't have that kind of control. We need to balance beetwen low-level webgl features and high-level scientific library. Rather than control of every light on scene i would prefer state like plot.lighShading = True/False. @marcinofulus what do you think?

from k3d-jupyter.

martinal avatar martinal commented on July 29, 2024

I'm not suggesting anything low level here, just (an option to) using THREE.AmbientLight alone and not using THREE.PointLight.

Also, we're exploring ways to make it easy to add things to pythreejs scenes by external libraries like k3d-jupyter. That would make it possible to use the full set of pythreejs light objects etc and add a k3d plot to the pythreejs scene.

from k3d-jupyter.

martinal avatar martinal commented on July 29, 2024

The point being that these lights have arbitrarily chosen positions:

        lights[0] = new THREE.PointLight(0xffffff, 1, 0);
        lights[1] = new THREE.PointLight(0xffffff, 1, 0);
        lights[2] = new THREE.PointLight(0xffffff, 1, 0);
        lights[3] = new THREE.PointLight(0xffffff, 1, 0);

        lights[0].position.set(-100, -1000, -500);
        lights[1].position.set(-3000, 1000, -500);

        lights[2].position.set(-5000, 1000, 1000);
        lights[3].position.set(5000, -1000, 1000);

you have no reason to believe these coordinates make sense for the model that the user is plotting.

from k3d-jupyter.

artur-trzesiok avatar artur-trzesiok commented on July 29, 2024

I will attach lights to camera.

from k3d-jupyter.

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.