ozen / pyoptix Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for NVIDIA OptiX Ray Tracing Engine
License: MIT License
Python wrapper for NVIDIA OptiX Ray Tracing Engine
License: MIT License
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
Do you have any sample code to render a scene with pyOptiX? Would be very helpful to have it!
Hej!
I cannot make PyOptix run on Windows. Can anyone give me a hint which things I have to change to make it run?
hey!
I tried to install Optix, but when I installed setup.py, I encountered the following error:
######################
Traceback (most recent call last):
File "setup.py", line 193, in
main()
File "setup.py", line 156, in main
sources, include_dirs, library_dirs, libraries = extension_prebuild()
File "setup.py", line 129, in extension_prebuild
raise OSError('Boost.Python library not found. Add its path to ldconfig or LD_LIBRARY_PATH.')
OSError: Boost.Python library not found. Add its path to ldconfig or LD_LIBRARY_PATH.
#######################
But I have added the path related to Boost.Python to the LD_LIBRARY_PATH(libboost_python38.so in path usr/lib/x86_64-linux-gnu ):
$ echo $LD_LIBRARY_PATH
/usr/local/lib::/usr/local/cuda/lib64:/usr/local/NVIDIA-OptiX-SDK-5.1.0-linux64/lib64:/usr/share/doc/libboost-python-dev:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu
Looking forward to receiving a response!
Here is a copy of my journal on how I approach trying your library on my system, at the end you will also find the problem that I am facing currently with the installation:
I started usin NVIDIA OptiX 5.1 version and Ubuntu 16.04:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
Download OptiX from this website:
https://developer.nvidia.com/optix
This will install a file called NVIDIA-OptiX-SDK-5.1.0-linux64_24109458.sh
or similar depending on the version that you are downloading. Extract the content using:
$ cd Downloads
$ chmod +x NVIDIA-OptiX-SDK-5.1.0-linux64_24109458.sh
$ ./NVIDIA-OptiX-SDK-5.1.0-linux64_24109458.sh
$ cd ~
$ sudo cp -R NVIDIA-OptiX-SDK-5.1.0-linux64 /usr/local/
Make sure that you have Optix in your LD_LIBRARY_PATH
:
$ echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/NVIDIA-OptiX-SDK-5.1.0-linux64/" >> ~/.bashrc
Make sure you have everything you need for PyOptix:
$ sudo apt-get install -y build-essential python-dev python-setuptools python3-dev python3-setuptools libboost-python-dev
Make sure that you have nvcc
:
$ nvcc --help
And install PyOptix using pip3:
pip3 install pyoptix
This is what I got at the end:
:PyOptiX$ python3 setup.py install
/sbin/ldconfig.real: Can't stat /usr/local/cuda-8.0/targets/x86_64-linux/lib: No such file or directory
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/usr/local/lib' given more than once
/sbin/ldconfig.real: Path `/usr/lib/nvidia-390' given more than once
/sbin/ldconfig.real: Path `/usr/lib32/nvidia-390' given more than once
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Cannot stat /lib/i386-linux-gnu/libjawt.so: No such file or directory
/sbin/ldconfig.real: /lib/i386-linux-gnu/ld-2.23.so is the dynamic linker, ignoring
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.23.so is the dynamic linker, ignoring
/sbin/ldconfig.real: Cannot stat /usr/lib32/nvidia-390/libOpenGL.so: No such file or directory
/sbin/ldconfig.real: /lib32/ld-2.23.so is the dynamic linker, ignoring
/sbin/ldconfig.real: Cannot stat /usr/lib/libassimp.so: No such file or directory
/usr/local/lib/liboptix.so
/usr/lib/x86_64-linux-gnu/libfakeroot/liboptix.so
/lib/i386-linux-gnu/liboptix.so
/usr/lib/i386-linux-gnu/liboptix.so
/lib/x86_64-linux-gnu/liboptix.so
/usr/lib/x86_64-linux-gnu/liboptix.so
/usr/lib/nvidia-390/liboptix.so
/usr/lib32/nvidia-390/liboptix.so
/lib32/liboptix.so
/usr/lib32/liboptix.so
/usr/local/cuda-8.0/lib64/liboptix.so
/lib/liboptix.so
/usr/lib/liboptix.so
/usr/lib/i386-linux-gnu/sse2/liboptix.so
/usr/lib/nvidia-390/tls/liboptix.so
/usr/lib32/nvidia-390/tls/liboptix.so
liboptix.so
/usr/local/cuda/lib64/liboptix.so
/usr/local/cuda/lib64/liboptix.so
/usr/local/lib/python3.5/dist-packages/openvr-1.0.801-py3.5.egg/openvr/liboptix.so
/home/kaan/.steam/steam/steamapps/common/SteamVR/bin/linux64/liboptix.so
/home/kaan/.steam/steam/steamapps/common/SteamVR/tools/bin/linux64/liboptix.so
/usr/local/NVIDIA-OptiX-SDK-5.1.0-linux64/liboptix.so
/usr/local/NVIDIA-OptiX-SDK-5.1.0-linux64/liboptix.so
Traceback (most recent call last):
File "setup.py", line 193, in <module>
main()
File "setup.py", line 156, in main
sources, include_dirs, library_dirs, libraries = extension_prebuild()
File "setup.py", line 117, in extension_prebuild
raise OSError('OptiX Library not found. Add its path to ldconfig or LD_LIBRARY_PATH.')
OSError: OptiX Library not found. Add its path to ldconfig or LD_LIBRARY_PATH.
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.