Skip to content

Latest commit

 

History

History
73 lines (61 loc) · 3.08 KB

Tutorial_Intro_First_Light.rst

File metadata and controls

73 lines (61 loc) · 3.08 KB

First Light

Render a sample dataset using Ascent

To start, we run a basic "First Light" example to generate an image. This example renders the an example dataset using ray casting to create a pseudocolor plot. The dataset is one of the built-in Conduit Mesh Blueprint examples, in this case an unstructured mesh composed of hexagons.

:download:`C++ Source <../../../src/examples/tutorial/ascent_intro/cpp/ascent_first_light_example.cpp>`

.. literalinclude:: ../../../src/examples/tutorial/ascent_intro/cpp/ascent_first_light_example.cpp
   :language: cpp
   :lines: 50-

:download:`Python Source <../../../src/examples/tutorial/ascent_intro/python/ascent_first_light_example.py>`

.. literalinclude:: ../../../src/examples/tutorial/ascent_intro/python/ascent_first_light_example.py
   :language: python
   :lines: 53-

Tutorial_Output/out_first_light_render_3d.png

First Light Example Result