Giter VIP home page Giter VIP logo

Comments (2)

erichlof avatar erichlof commented on May 18, 2024

Hi @PhilAndrew ,
I tried the link you posted but it makes my browser lose its WebGL context and the screen goes black. I'm on a 2014 laptop which might be part of the problem, although it is what I develop everything on in this GitHub repo. Could you post a lighter example?

But in any case, thanks for the suggestion. Just want to make sure I understand correctly: Let's say I wanted a rock texture: Would it be like placing the camera directly over a gray-scale height map, looking down, kind of like a satellite view of a mountain range on Google Maps? Then trace rays directly downwards? I can envision getting a good first intersection (or 't' distance along the primary ray to the surface), but what about secondary ray bounces to capture global illumination/ indirect lighting? I can't envision the algo/math to shoot sideways along a height field texture in search of a second intersection point, once we're sitting on the first intersection point.

Maybe it's in the code you posted but I just couldn't see it. The pic looks great though, thanks for sharing!
-Erich

from three.js-pathtracing-renderer.

PhilAndrew avatar PhilAndrew commented on May 18, 2024

Firstly, just show you some more pics. So you can see that from the outside the texture mapping is wrong and a bit crazy but inside the texture mapping is correct. The object can be rotated and on my computer it only takes about 5 seconds to settle down to a nice texture. So ok I'm on a relatively high end graphics card on a relatively new PC.

image

image

from three.js-pathtracing-renderer.

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.