Coder Social home page Coder Social logo

Comments (5)

rafael-fuente avatar rafael-fuente commented on May 18, 2024

Hi!
There is no problem with using and modifying this ray tracer in your project; just cite this repository.
Best wishes for your project, and keep me updated about it!

from python-raytracer.

zenux-dev avatar zenux-dev commented on May 18, 2024

thnx alot and sure i will keep you updated about it

from python-raytracer.

zenux-dev avatar zenux-dev commented on May 18, 2024

hi i was wondering is there a way to read obj or fbx files to be putten in scene instead of basic ones using scripting or smt?

from python-raytracer.

rafael-fuente avatar rafael-fuente commented on May 18, 2024

I already have implemented a class named TriangleMesh to load arbitrary .obj files as triangle meshes.

However, the rendering is quite slow because we need to loop for every triangle of the mesh, and Python loops are very slow. A bounding volume hierarchy acceleration structure could be implemented, but I think renders will still take a lot of time.

If you want to render arbitrary triangle meshes, Python isn't the language to work with.

I worked some time ago in making a very similar Python interface to the C++ Ray Tracing in one-weekend project. I didn't implement an obj loader, but it shouldn't take a lot of work. The raytracer can already quickly render complex scenes with a very similar scene scripting language to this raytracer written in pure Python.
I can share the project with you if you want. However, you should be proficient in C++ to be able to modify it.

from python-raytracer.

zenux-dev avatar zenux-dev commented on May 18, 2024

oh ok iam not fammiliar with c++ but i gotta learn it cause godot's plugins should be made with c++ to work fast and even to work soo ya thnx alot again

from python-raytracer.

Related Issues (10)

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.