ozen / PyOptiX

Python wrapper for NVIDIA OptiX Ray Tracing Engine
MIT License
64 stars 7 forks source link

PyOptix More Examples? #4

Open kaanaksit opened 6 years ago

kaanaksit commented 6 years ago

Hi Ozen,

I wonder if you have any plans towards enabling more examples, such as loading meshes as in the SDK's optixMeshViewer or refracting says as in optixWhitted example or common tutorials suchs as optixTutorial.

Thank you,

Best regards, Kaan

kaanaksit commented 6 years ago

I want to share what I have been doing so far with your PyOptix. rendered_scene

kaanaksit commented 6 years ago

Vaktin olunca lütfen cevap yaz. Eğer uygun olursan seninle konuşmak istiyorum.

ozen commented 6 years ago

Hi Kaan,

I'm dying to continue to work on PyOptiX, but I'm preoccupied with my graduate school work. I'll be busy especially this month. I can let you know when I have time, and answer questions that won't take too long in the meantime.

MathGaron commented 5 years ago

Hi Kaan and Yigit,

Actually I implemented some examples with your wrapper, you can check my fork : https://github.com/MathGaron/PyOptiX. I added meshviewer (loading a mesh), path_tracer and tutorial (load hdr panorama). I used trimesh (https://github.com/mikedh/trimesh) for loading the obj (seemed to be the most stable python implementation for my obj files.) and OpenEXR/imageio to load the hdr panorama.

Also I use glut to handle the window/events and pyOpenGL for opengl calls, and I still have not implemented the FBO render that would make the demos a bit more efficient. However I have similar fps than the C++ code.

Finally, I was too lazy to implement the rotation with the mouse, I only implemented the zoom interaction, however I got most of the transform code coming up in another project so I will probably bring it here for the demo purpose.

Thanks Yigit for the nice work with PyOptix, it is really useful!

EDIT: I did all my tests with PyOptix 5.1.0 **

ozen commented 5 years ago

Hi Mathieu,

I took a quick look. Great work! I'll try to improve reusability and merge it when I have more time.

Thanks!