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

LuxCore Render Engine Example #505

Closed

Conversation

WilliamLewww
Copy link
Contributor

@WilliamLewww WilliamLewww commented Dec 6, 2021

🎉 LuxCore Render Engine

Peek 2022-06-02 13-25

Example renders:

Summary

This pull request creates an example plugin using the LuxCore render engine. The implementation is incomplete and only supports basic scenes. Some parameters of the engine are hardcoded and can be adjusted for different effects:

https://wiki.luxcorerender.org/LuxCore_SDL_Reference_Manual_v2.5

How to build and run the example

Download the LuxCoreSDK using the following link (make sure to download the SDK and not the standalone): https://luxcorerender.org/download/

  1. Build and install ign-rendering:
cd ign-rendering
mkdir build
cd build
cmake ..
make install
  1. Build the example:
export LUXCORE_SDK_PATH=<PATH_TO_LUXCORE_SDK_DIRECTORY>
cd ../examples/lux_core_engine
mkdir build
cd build
cmake ..
make
  1. Run the example:
export IGN_RENDERING_PLUGIN_PATH=$PWD
./simple_demo

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Dec 6, 2021
@codecov
Copy link

codecov bot commented Dec 6, 2021

Codecov Report

Merging #505 (1bfb91d) into ign-rendering6 (87b30ad) will decrease coverage by 2.27%.
The diff coverage is 57.60%.

❗ Current head 1bfb91d differs from pull request most recent head 7717b2e. Consider uploading reports for the commit 7717b2e to get more accurate results
Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-rendering6     #505      +/-   ##
==================================================
- Coverage           57.80%   55.53%   -2.28%     
==================================================
  Files                 161      195      +34     
  Lines               15851    19698    +3847     
==================================================
+ Hits                 9163    10939    +1776     
- Misses               6688     8759    +2071     
Impacted Files Coverage Δ
include/ignition/rendering/ArrowVisual.hh 100.00% <ø> (ø)
include/ignition/rendering/AxisVisual.hh 0.00% <ø> (-100.00%) ⬇️
include/ignition/rendering/Camera.hh 100.00% <ø> (ø)
include/ignition/rendering/Geometry.hh 100.00% <ø> (ø)
include/ignition/rendering/GpuRays.hh 0.00% <ø> (ø)
include/ignition/rendering/HeightmapDescriptor.hh 100.00% <ø> (ø)
include/ignition/rendering/JointVisual.hh 0.00% <0.00%> (ø)
include/ignition/rendering/Light.hh 100.00% <ø> (ø)
include/ignition/rendering/LightVisual.hh 100.00% <ø> (ø)
include/ignition/rendering/Material.hh 100.00% <ø> (ø)
... and 135 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87b30ad...7717b2e. Read the comment docs.

@codecov
Copy link

codecov bot commented May 27, 2022

Codecov Report

Merging #505 (7ca2b8f) into ign-rendering6 (a3dc1ae) will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           ign-rendering6     #505   +/-   ##
===============================================
  Coverage           80.00%   80.00%           
===============================================
  Files                   1        1           
  Lines                  15       15           
===============================================
  Hits                   12       12           
  Misses                  3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a3dc1ae...7ca2b8f. Read the comment docs.

@WilliamLewww WilliamLewww changed the title LuxCore Render Engine (Work in Progress) LuxCore Render Engine Example Jun 2, 2022
Lobotuerk and others added 22 commits June 2, 2022 10:12
Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
@WilliamLewww WilliamLewww marked this pull request as ready for review June 2, 2022 17:13
@WilliamLewww WilliamLewww requested a review from iche033 as a code owner June 2, 2022 17:13
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
@chapulina chapulina mentioned this pull request Jun 15, 2022
7 tasks
@chapulina chapulina requested a review from ahcorde June 27, 2022 18:56
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

examples/lux_core_engine/README.md is empty, are you planning to add some docs here ? otherwise remove this file

examples/lux_core_engine/CMakeLists.txt Show resolved Hide resolved
examples/lux_core_engine/GlutWindow.cc Show resolved Hide resolved
examples/lux_core_engine/GlutWindow.cc Show resolved Hide resolved
examples/lux_core_engine/GlutWindow.cc Show resolved Hide resolved
examples/lux_core_engine/GlutWindow.cc Show resolved Hide resolved
examples/lux_core_engine/Main.cc Show resolved Hide resolved
examples/lux_core_engine/Main.cc Show resolved Hide resolved
examples/lux_core_engine/Main.cc Show resolved Hide resolved
examples/lux_core_engine/Main.cc Show resolved Hide resolved
@chapulina chapulina added the enhancement New feature or request label Jul 23, 2022
@nkoenig nkoenig requested review from ahcorde and nkoenig August 22, 2022 18:52
@sanjuksha sanjuksha closed this Oct 10, 2022
iche033 added a commit that referenced this pull request Oct 14, 2022
* state of branch

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Update README.md

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added render engine example

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Render white box

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Reverted simple demo

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed camera image size

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added lens trace example

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added sample render for luxcore

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added ProRender base plugin files

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added dynamic scene creation with luxcore

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added mesh class

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Split classes to separate files

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Add mesh to scene with factory

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added plane

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Moved RenderSession to Camera

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed luxcore initialization

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Wait for render to finish

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed race condition

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Keep render session alive for accumulation

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Use CUDA for renders

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added directional light

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed camera tracking

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added Duck model

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added normals and UV coordinates to submeshes

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Updated format of examples

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed header order error

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Remodev pro-render example

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed versioning

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Cleaned code formatting

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Use cornell box for example

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added environment variable warnings

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Undo edits to simple demo

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Removed lights outside of scene

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Removed outdated comments

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added render engine output when running demo

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added image maps with each mesh import

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added textures into LuxCore SDL

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Fixed loading data from gz::common::image

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* Added duck to cornell box

Signed-off-by: William Lew <WilliamMilesLew@gmail.com>

* PR review comments resolved

Signed-off-by: Sanjuksha Nirgude <sanjuksha@system76-pc.localdomain>

* allow user to configure render engine type

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* PR review comments resolved

Signed-off-by: Sanjuksha Nirgude <sanjuksha@system76-pc.localdomain>

* Added Documentation

Signed-off-by: Sanjuksha Nirgude <sanjuksha@gmail.com>

* update doc, style changes

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Signed-off-by: Sanjuksha Nirgude <sanjuksha@system76-pc.localdomain>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Sanjuksha Nirgude <sanjuksha@gmail.com>
Co-authored-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Co-authored-by: William Lew <WilliamMilesLew@gmail.com>
Co-authored-by: Sanjuksha Nirgude <sanjuksha@system76-pc.localdomain>
Co-authored-by: Ian Chen <ichen@osrfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🏯 fortress Ignition Fortress
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants