Skip to content
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

Merged
merged 3 commits into from
Oct 12, 2016
Merged

Added Optix engine #32

merged 3 commits into from
Oct 12, 2016

Conversation

favreau
Copy link
Member

@favreau favreau commented Oct 5, 2016

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.

# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
###############################################################################
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Member Author

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()
Copy link
Contributor

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.

Copy link
Member Author

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 );
}
Copy link
Contributor

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?

Copy link
Member Author

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 ))
Copy link
Contributor

@eile eile Oct 6, 2016

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?

Copy link
Member Author

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.

@hernando
Copy link
Contributor

hernando commented Oct 7, 2016

Why have you added the FindCUDA scripts? What's wrong with those that CMake already ships?

@favreau
Copy link
Member Author

favreau commented Oct 7, 2016

I did not find any FindCUDA in CMake Common. Is CommonCUDA.cmake doing the job?

@hernando
Copy link
Contributor

hernando commented Oct 7, 2016

No, no. Not in CMake Common, in you very CMake installation. At least in Ubuntu it comes along.

@favreau
Copy link
Member Author

favreau commented Oct 11, 2016

Ok, thanks for the info. Removed.

@favreau favreau force-pushed the optix branch 6 times, most recently from d710b75 to 7a92d1a Compare October 11, 2016 16:03
@favreau favreau merged commit 73e0a91 into BlueBrain:master Oct 12, 2016
@favreau favreau deleted the optix branch October 13, 2016 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants