Skip to content

Commit

Permalink
Merge branch 'release-1.8.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffamstutz committed Mar 1, 2019
2 parents bc52451 + 5c893a3 commit c42a885
Show file tree
Hide file tree
Showing 14 changed files with 235 additions and 138 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
Version History
---------------

### Changes in v1.8.2:

- CMake bug fix where external users of OSPRay needed CMake newer than
version 3.1
- Fix incorrect propagation of tasking system flags from an OSPRay
install
- Fix inconsistency between supported environment variables and
command line parameters passed to `ospInit()`
- Missing variables were `OSPRAY_LOAD_MODULES` and
`OSPRAY_DEFAULT_DEVICE`

### Changes in v1.8.1:

- CMake bugfix to remove full paths to dependencies in packages
- CMake bug fix to remove full paths to dependencies in packages

### Changes in v1.8.0:

Expand Down
67 changes: 53 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OSPRay
======

This is release v1.8.1 of OSPRay. For changes and new features see the
This is release v1.8.2 of OSPRay. For changes and new features see the
[changelog](CHANGELOG.md). Visit http://www.ospray.org for more
information.

Expand Down Expand Up @@ -317,11 +317,11 @@ prefixed by convention with “`--osp:`”) are understood:
</tr>
<tr class="even">
<td style="text-align: left;"><code>--osp:verbose</code></td>
<td style="text-align: left;">shortcut for <code>--osp:loglevel 1</code></td>
<td style="text-align: left;">shortcut for <code>--osp:loglevel 1</code> and enable debug output on console</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><code>--osp:vv</code></td>
<td style="text-align: left;">shortcut for <code>--osp:loglevel 2</code></td>
<td style="text-align: left;">shortcut for <code>--osp:loglevel 2</code> and enable debug output on console</td>
</tr>
<tr class="even">
<td style="text-align: left;"><code>--osp:module:&lt;name&gt;</code></td>
Expand Down Expand Up @@ -473,14 +473,19 @@ environment variables for easy changes to OSPRay’s behavior without
needing to change the application (variables are prefixed by convention
with “`OSPRAY_`”):

| Variable | Description |
|:----------------------|:----------------------------------|
| OSPRAY\_THREADS | equivalent to `--osp:numthreads` |
| OSPRAY\_LOG\_LEVEL | equivalent to `--osp:loglevel` |
| OSPRAY\_LOG\_OUTPUT | equivalent to `--osp:logoutput` |
| OSPRAY\_ERROR\_OUTPUT | equivalent to `--osp:erroroutput` |
| OSPRAY\_DEBUG | equivalent to `--osp:debug` |
| OSPRAY\_SET\_AFFINITY | equivalent to `--osp:setaffinity` |
| Variable | Description |
|:------------------------|:----------------------------------|
| OSPRAY\_THREADS | equivalent to `--osp:numthreads` |
| OSPRAY\_LOG\_LEVEL | equivalent to `--osp:loglevel` |
| OSPRAY\_LOG\_OUTPUT | equivalent to `--osp:logoutput` |
| OSPRAY\_ERROR\_OUTPUT | equivalent to `--osp:erroroutput` |
| OSPRAY\_DEBUG | equivalent to `--osp:debug` |
| OSPRAY\_SET\_AFFINITY | equivalent to `--osp:setaffinity` |
| OSPRAY\_LOAD\_MODULES | equivalent to `--osp:module:`, |
| | can be a comma separated list |
| | of modules which will be loaded |
| | in order |
| OSPRAY\_DEFAULT\_DEVICE | equivalent to `--osp:device:` |

: Environment variables interpreted by OSPRay.

Expand Down Expand Up @@ -2208,9 +2213,11 @@ below).
<img src="https://ospray.github.io/images/diffuse_rooms.png" alt="Comparison of diffuse rooms with 100% reflecting white paint (left) and realistic 80% reflecting white paint (right), which leads to higher overall contrast. Note that exposure has been adjusted to achieve similar brightness levels." width="80.0%" /><figcaption>Comparison of diffuse rooms with 100% reflecting white paint (left) and realistic 80% reflecting white paint (right), which leads to higher overall contrast. Note that exposure has been adjusted to achieve similar brightness levels.</figcaption>
</figure>

If present, the color component of [geometries](#geometries) is
also used for the diffuse color `Kd` and the alpha component is also
used for the opacity `d`.


If present, the color component of [geometries](#geometries) is also
used for the diffuse color `Kd` and the alpha component is also used for
the opacity `d`.

Note that currently only the path tracer implements colored transparency
with `Tf`.
Expand All @@ -2232,6 +2239,8 @@ invert its green channel.
<img src="https://ospray.github.io/images/normalmap_frustum.png" alt="Normal map representing an exalted square pyramidal frustum." width="60.0%" /><figcaption>Normal map representing an exalted square pyramidal frustum.</figcaption>
</figure>



All parameters (except `Tf`) can be textured by passing a
[texture](#texture) handle, prefixed with “`map_`”. The fetched texels
are multiplied by the respective parameter value. Texturing requires
Expand All @@ -2246,6 +2255,8 @@ textures support [texture transformations](#texture2d-transformations).
<img src="https://ospray.github.io/images/material_OBJ.jpg" alt="Rendering of a OBJ material with wood textures." width="60.0%" /><figcaption>Rendering of a OBJ material with wood textures.</figcaption>
</figure>



#### Principled

The Principled material is the most complex material offered by the
Expand Down Expand Up @@ -2456,6 +2467,8 @@ transformations](#texture2d-transformations) are supported as well.
<img src="https://ospray.github.io/images/material_Principled.jpg" alt="Rendering of a Principled coated brushed metal material with textured anisotropic rotation and a dust layer (sheen) on top." width="60.0%" /><figcaption>Rendering of a Principled coated brushed metal material with textured anisotropic rotation and a dust layer (sheen) on top.</figcaption>
</figure>



#### CarPaint

The CarPaint material is a specialized version of the Principled
Expand Down Expand Up @@ -2589,6 +2602,8 @@ transformations](#texture2d-transformations) are supported as well.
<img src="https://ospray.github.io/images/material_CarPaint.jpg" alt="Rendering of a pearlescent CarPaint material." width="60.0%" /><figcaption>Rendering of a pearlescent CarPaint material.</figcaption>
</figure>



#### Metal

The [path tracer](#path-tracer) offers a physical metal, supporting
Expand Down Expand Up @@ -2675,6 +2690,8 @@ create notable edging effects.
<img src="https://ospray.github.io/images/material_Metal.jpg" alt="Rendering of golden Metal material with textured roughness." width="60.0%" /><figcaption>Rendering of golden Metal material with textured roughness.</figcaption>
</figure>



#### Alloy

The [path tracer](#path-tracer) offers an alloy material, which behaves
Expand Down Expand Up @@ -2704,6 +2721,8 @@ transformations](#texture2d-transformations) are supported as well.
<img src="https://ospray.github.io/images/material_Alloy.jpg" alt="Rendering of a fictional Alloy material with textured color." width="60.0%" /><figcaption>Rendering of a fictional Alloy material with textured color.</figcaption>
</figure>



#### Glass

The [path tracer](#path-tracer) offers a realistic a glass material,
Expand All @@ -2728,6 +2747,8 @@ trough a glass of thickness `attenuationDistance`.
<img src="https://ospray.github.io/images/material_Glass.jpg" alt="Rendering of a Glass material with orange attenuation." width="60.0%" /><figcaption>Rendering of a Glass material with orange attenuation.</figcaption>
</figure>



#### ThinGlass

The [path tracer](#path-tracer) offers a thin glass material useful for
Expand Down Expand Up @@ -2763,10 +2784,14 @@ attenuation and thus the material appearance.
<img src="https://ospray.github.io/images/material_ThinGlass.jpg" alt="Rendering of a ThinGlass material with red attenuation." width="60.0%" /><figcaption>Rendering of a ThinGlass material with red attenuation.</figcaption>
</figure>



<figure>
<img src="https://ospray.github.io/images/ColoredWindow.jpg" alt="Example image of a colored window made with textured attenuation of the ThinGlass material." width="60.0%" /><figcaption>Example image of a colored window made with textured attenuation of the ThinGlass material.</figcaption>
</figure>



#### MetallicPaint

The [path tracer](#path-tracer) offers a metallic paint material,
Expand Down Expand Up @@ -2800,6 +2825,8 @@ average, thus individual flakes are not visible.
<img src="https://ospray.github.io/images/material_MetallicPaint.jpg" alt="Rendering of a MetallicPaint material." width="60.0%" /><figcaption>Rendering of a MetallicPaint material.</figcaption>
</figure>



#### Luminous

The [path tracer](#path-tracer) supports the Luminous material which
Expand All @@ -2813,6 +2840,8 @@ parameters of lights: [`color` and `intensity`](#lights).
<img src="https://ospray.github.io/images/material_Luminous.jpg" alt="Rendering of a yellow Luminous material." width="60.0%" /><figcaption>Rendering of a yellow Luminous material.</figcaption>
</figure>



### Texture

OSPRay currently implements two texture types (`texture2d` and `volume`)
Expand Down Expand Up @@ -3025,14 +3054,20 @@ images below.
<img src="https://ospray.github.io/images/camera_perspective.jpg" alt="Example image created with the perspective camera, featuring depth of field." width="60.0%" /><figcaption>Example image created with the perspective camera, featuring depth of field.</figcaption>
</figure>



<figure>
<img src="https://ospray.github.io/images/camera_architectural.jpg" alt="Enabling the architectural flag corrects the perspective projection distortion, resulting in parallel vertical edges." width="60.0%" /><figcaption>Enabling the <code>architectural</code> flag corrects the perspective projection distortion, resulting in parallel vertical edges.</figcaption>
</figure>



<figure>
<img src="https://ospray.github.io/images/camera_stereo.jpg" alt="Example 3D stereo image using stereoMode side-by-side." width="90.0%" /><figcaption>Example 3D stereo image using <code>stereoMode</code> side-by-side.</figcaption>
</figure>



#### Orthographic Camera

The orthographic camera implements a simple camera with orthographic
Expand All @@ -3059,6 +3094,8 @@ and `imageEnd`, and both methods can be combined. In any case, the
<img src="https://ospray.github.io/images/camera_orthographic.jpg" alt="Example image created with the orthographic camera." width="60.0%" /><figcaption>Example image created with the orthographic camera.</figcaption>
</figure>



#### Panoramic Camera

The panoramic camera implements a simple camera without support for
Expand All @@ -3072,6 +3109,8 @@ by using the [general parameters](#cameras) understood by all cameras.
<img src="https://ospray.github.io/images/camera_panoramic.jpg" alt="Latitude / longitude map created with the panoramic camera." width="90.0%" /><figcaption>Latitude / longitude map created with the panoramic camera.</figcaption>
</figure>



### Picking

To get the world-space position of the geometry (if any) seen at \[0–1\]
Expand Down
4 changes: 2 additions & 2 deletions apps/common/ospapp/OSPApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ general app-parameters:
camera up xyz
-vi [float] [float] [float]
camera direction xyz
-vf [float]
camera field of view
-fv [float]
camera field of view (of height, in degrees)
-ar [float]
camera aperture radius
--aces
Expand Down
15 changes: 11 additions & 4 deletions cmake/ospray_cmake_config/osprayConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,17 @@ set(OSPRAY_COMPILER_GCC @OSPRAY_COMPILER_GCC@)
set(OSPRAY_COMPILER_CLANG @OSPRAY_COMPILER_CLANG@)
set(OSPRAY_COMPILER_MSVC @OSPRAY_COMPILER_MSVC@)

set(OSPRAY_TASKING_SYSTEM @OSPRAY_TASKING_SYSTEM@)

set(OSPRAY_TASKING_TBB @OSPRAY_TASKING_TBB@)
set(OSPRAY_TASKING_CILK @OSPRAY_TASKING_CILK@)
set(OSPRAY_TASKING_OPENMP @OSPRAY_TASKING_OPENMP@)
set(OSPRAY_TASKING_INTERNAL @OSPRAY_TASKING_INTERNAL@)
set(OSPRAY_TASKING_LIBDISPATCH @OSPRAY_TASKING_LIBDISPATCH@)
set(OSPRAY_TASKING_DEBUG @OSPRAY_TASKING_DEBUG@)

set(OSPRAY_TASKING_DEFINITIONS @TASKING_SYSTEM_DEFINITIONS@)
set(OSPRAY_TASKING_DEFINITIONS @OSPRAY_TASKING_DEFINITIONS@)
set(OSPRAY_TASKING_OPTIONS @OSPRAY_TASKING_OPTIONS@)

set(OSPRAY_ISPC_TARGET_LIST @OSPRAY_ISPC_TARGET_LIST@)
set(OSPRAY_ISPC_ADDRESSING @OSPRAY_ISPC_ADDRESSING@)
Expand Down Expand Up @@ -172,6 +175,7 @@ if (OSPRAY_TASKING_TBB)
"Found required OSPRay dependency: TBB in ${TBB_INCLUDE_DIRS}")
endif()
endif()
set (OSPRAY_TASKING_LIBS ${TBB_LIBRARIES})
endif()

ospray_create_tasking_target()
Expand All @@ -180,13 +184,14 @@ ospray_create_tasking_target()
if (OSPRAY_INSTALL_DEPENDENCIES)
# Embree installed with OSPRay
file(GLOB_RECURSE EMBREE_LIBRARY ${LIBRARY_PATH_PREFIX}embree*)
ospray_create_embree_target()
else()
# Find existing Embree on the machine
ospray_find_embree(${EMBREE_VERSION_REQUIRED})
ospray_verify_embree_features()
endif()

ospray_create_embree_target()

list(APPEND OSPRAY_INCLUDE_DIRS ${EMBREE_INCLUDE_DIRS})

# Restore state
Expand All @@ -210,8 +215,10 @@ set(OSPRAY_TESTING_LIBRARY ${LIBRARY_PATH_PREFIX}ospray_testing${LIBRARY_SUFFIX}
include(${CMAKE_CURRENT_LIST_DIR}/ospray_Exports.cmake)

# Add missing targets to libraries
target_link_libraries(ospray::ospray_common INTERFACE ospray_tasking)
target_link_libraries(ospray::ospray_module_ispc INTERFACE embree)
set_target_properties(ospray::ospray_common PROPERTIES
INTERFACE_LINK_LIBRARIES ospray_tasking)
set_target_properties(ospray::ospray_module_ispc PROPERTIES
INTERFACE_LINK_LIBRARIES embree)

# Set expected OSPRAY_LIBRARIES variable for FindPackage().
set(OSPRAY_LIBRARIES ospray::ospray)
Expand Down
Loading

0 comments on commit c42a885

Please sign in to comment.