-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Optix engine #32
Conversation
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
# DEALINGS IN THE SOFTWARE. | ||
# | ||
############################################################################### |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to go into Acknowledgements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks. Still now quite sure how to properly do that. Will ask you tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the files. No ack needed anymore.
if(BRAYNS_OPTIX_ENABLED) | ||
common_find_package(OptiX REQUIRED SYSTEM) | ||
common_find_package(CUDA REQUIRED SYSTEM) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm required and activate the engines found, fail if no engine is found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum... ok, changed because I understand this is what we do everywhere else. But to me, it's not because the dependencies are present that you necessarily want to build the module.
PointLightPtr sunLight( new PointLight( | ||
DEFAULT_SUN_POSITION, DEFAULT_SUN_COLOR, DEFAULT_SUN_INTENSITY, DEFAULT_SUN_CUTOFF )); | ||
scene->addLight( sunLight ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious: Why the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OptiX does not provide a directional light and was too lazy to implement it, but I have to admit that rendering does look better with a directional light. I guess the right answer to your comment is: Ok, I will implement the directional light in OptiX then ;-) Working on it.
BRAYNS_INFO << "Loading PDB folder " << folder << std::endl; | ||
boost::filesystem::directory_iterator endIter; | ||
if( boost::filesystem::exists( folder ) && | ||
boost::filesystem::is_directory( folder )) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is_directory does not return false if !exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does, thanks for that.
Why have you added the FindCUDA scripts? What's wrong with those that CMake already ships? |
I did not find any FindCUDA in CMake Common. Is CommonCUDA.cmake doing the job? |
No, no. Not in CMake Common, in you very CMake installation. At least in Ubuntu it comes along. |
Ok, thanks for the info. Removed. |
d710b75
to
7a92d1a
Compare
The OptiX engine can be used by setting the following command line option:
--engine optix
3D Models size is limited to what the GPU can handle.