Welcome to the Computational Physics Blog Repositories!
aromanro / raytracer Goto Github PK
View Code? Open in Web Editor NEWA ray tracing program
License: GNU General Public License v3.0
A ray tracing program
License: GNU General Public License v3.0
Welcome to the Computational Physics Blog Repositories!
can you please teach me how to run it
I think that could be made to work better, now it does it wrong for some models, in some parts.
Similarly with what is already implemented in the https://github.com/aromanro/SolarSystem project.
Parts of some models that are composed of triangles come out wrong (so it's not due of: #7).
I don't know yet why, might be combined with the texture mapping being wrong.
Many obj files have set the same texture file for different parts of the object and/or the same one for both ambient and diffuse textures. Avoid loading them multiple times by using a 'cache', first check in there and if it's not already loaded, then load it.
There is a lot to be improved here.
A good book on the subject is available for free online: https://pbr-book.org/
Can you, please, load your .obj model and sky image?
In such a case, they could be computed for each vertex using the triangle vectors.
Normal and bump mapping is already implemented in the https://github.com/aromanro/SolarSystem project. Something similar could be added to this project, although probably won't happen soon.
Hello, there!What you've done was so excellent!
I was wondering whether you could share obj models that you got?
Thank you so much.
Would be nice to have one of them at least, but probably won't happen soon.
Currently importance sampling works only for simple objects (that is, not composite). For this project it's enough, it's just a proof of the concept and only simple ones are needed (as lights, mirrors), but it could be enhanced to work for more complex stuff as well.
I kind of skipped that part of the book, I considered it boring.
Hi, I've been working through the Ray Tracing in One Weekend book. When trying to implement a Anisotropic Phong BRDF I had bugs in my code which I couldn't immediately fix until I saw your project and how you implemented it. I used a few lines from your project to get mine to work. As your project uses the GPL licence, I was wondering if I could have your permission to leave the lines of code in the Anisotropic Phong BRDF, where it looks similar to yours, in my project and release my project under the MIT licence? I've given you credit by linking to your github Ray Tracer project both in the ReadMe file and in the code itself. If you don't mind me releasing under the MIT licence, I'm happy to credit you in any way you like for example by also including a link to your website and your name, whatever you would be happy with. I haven't released it yet until I sort out the licence.
I did a pretty basic implementation, just a proof of the concept, but it can be extended.
For example, specular maps and exponent maps are not used, using those should be easy to implement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.