Skip to content

Commit

Permalink
Merge branch 'release-2.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
johguenther committed May 25, 2020
2 parents 7c01f46 + 1e04c28 commit 7cc36c7
Show file tree
Hide file tree
Showing 31 changed files with 464 additions and 346 deletions.
66 changes: 25 additions & 41 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ variables:
tags:
- build

.job_template: &build_artifacts
artifacts:
paths:
- build/install/ospray
expire_in: 3 day

.job_template: &release_job
stage: deploy
tags:
Expand All @@ -56,12 +62,12 @@ variables:
.job_template: &test_job_unix
<<: *test_job
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR"
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/run_tests.sh "$CI_PROJECT_DIR"

.job_template: &test_job_windows
<<: *test_job
script:
- $env:Path += ";$CI_PROJECT_DIR\build\install\bin"
- $env:Path += ";$CI_PROJECT_DIR\build\install\ospray\bin"
- scripts\tests\run_tests.ps1 "$CI_PROJECT_DIR"


Expand All @@ -82,44 +88,35 @@ build-arch-clang:
build-arch-gcc-extras:
<<: *build_job_docker
script:
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DINSTALL_IN_SEPARATE_DIRECTORIES=ON -DBUILD_OIDN=ON
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DBUILD_OIDN=ON

build-arch-clang-extras:
<<: *build_job_docker
script:
- export CC=clang
- export CXX=clang++
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DINSTALL_IN_SEPARATE_DIRECTORIES=ON -DBUILD_OIDN=ON
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF -DBUILD_OSPRAY_CI_EXTRAS=ON -DBUILD_OIDN=ON

build-ubuntu1604-gcc:
<<: *build_job_docker
image: ospray/docker-images:ubuntu16.04
script:
- scripts/build_gitlab/linux.sh -G Ninja
artifacts:
paths:
- build/install
expire_in: 3 day
<<: *build_artifacts

build-ubuntu1804-gcc:
<<: *build_job_docker
image: ospray/docker-images:ubuntu18.04
script:
- scripts/build_gitlab/linux.sh -G Ninja -DBUILD_GLFW=OFF
artifacts:
paths:
- build/install
expire_in: 3 day
<<: *build_artifacts

build-centos8:
<<: *build_job_docker
image: ospray/docker-images:centos8
script:
- scripts/build_gitlab/linux.sh -G Ninja
artifacts:
paths:
- build/install
expire_in: 3 day
<<: *build_artifacts

build-centos7-icc:
<<: *build_job_docker_modules
Expand All @@ -142,10 +139,7 @@ build-centos7-icc15:
build-centos7-gcc:
<<: *build_job_docker
image: ospray/docker-images:centos7
artifacts:
paths:
- build/install
expire_in: 3 day
<<: *build_artifacts

build-centos7-mpi:
<<: *build_job_docker_modules
Expand Down Expand Up @@ -175,10 +169,7 @@ build-windows-msvc14:
tags:
- msvc14
- win
artifacts:
paths:
- build/install
expire_in: 3 day
<<: *build_artifacts

build-windows-msvc15:
<<: *build_job_shell
Expand All @@ -187,10 +178,7 @@ build-windows-msvc15:
tags:
- msvc15
- win
artifacts:
paths:
- build/install
expire_in: 3 day
<<: *build_artifacts

#build-windows-icc:
# <<: *build_job_shell
Expand All @@ -199,24 +187,20 @@ build-windows-msvc15:
# tags:
# - icc17
# - win
# artifacts:
# paths:
# - build/install
# expire_in: 3 day
# <<: *build_artifacts

build-scan-kw:
stage: build
image: ospray-kw-centos7
image: ospray/docker-images:centos7
script:
- scripts/build_gitlab/build-scan-kw.sh
- test -s $CI_PROJECT_DIR/kw_build_number
tags:
- kw-scan-docker
- docker
artifacts:
paths:
- $CI_PROJECT_DIR/kw_build_number
expire_in: 3 day
allow_failure: true

source-protex-scan:
stage: build
Expand Down Expand Up @@ -291,20 +275,20 @@ test-windows-msvc14:

test-kw-critical:
stage: test-src
image: ospray-kw-centos7
image: ospray/docker-images:centos7
script:
- /tmp/test-kw-critical.sh
dependencies:
- scripts/build_gitlab/test-kw-critical.sh
needs:
- build-scan-kw
tags:
- kw-scan-docker
- docker
allow_failure: true

generate-ci-baseline:
<<: *test_job_unix
image: ospray/docker-images:ubuntu18.04
script:
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/bin:$PATH" scripts/tests/generate_baseline.sh
- LD_LIBRARY_PATH="$CI_PROJECT_DIR/build/install/ospray/lib:$LD_LIBRARY_PATH" PATH="$CI_PROJECT_DIR/build/install/ospray/bin:$PATH" scripts/tests/generate_baseline.sh
dependencies:
- build-ubuntu1804-gcc
artifacts:
Expand Down Expand Up @@ -357,7 +341,7 @@ release-linux:
- modules
artifacts:
paths:
- ./*.gz
- build_release/*.gz

release-osx-clang:
<<: *release_job
Expand Down
15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Version History
---------------

### Changes in v2.1.1:

- CarPaint obeys `coat` weight parameter
- Correct depth buffer values with SciVis renderer
- Adaptions to Embree v3.10.0
- The Linux binary release finds `ospcommon` again

### Changes in v2.1.0:

- New clipping geometries feature that allows clipping any scene
Expand All @@ -15,7 +22,7 @@ Version History
- New plane geometry defined via plane equation and optional bounding
box
- Sun-sky light based on physical model of Hošek-Wilkie
- Support for photometric lights (e.g. IES or EULUMDAT)
- Support for photometric lights (e.g., IES or EULUMDAT)
- Add new `ospGetTaskDuration` API call to query execution time of
asynchronous tasks
- Support for 16bit (unsigned short) textures
Expand Down Expand Up @@ -51,7 +58,7 @@ Version History
- Add the option to specify a single color for geometric models
- The `scivis` renderer now respects the opacity component of `color`
on geometric models
- Fix various inconsistent handling of frame buffer alpha between
- Fix various inconsistent handling of framebuffer alpha between
renderers
- `ospGetCurrentDevice` now increments the ref count of the returned
`OSPDevice` handle, so applications will need to release the handle
Expand Down Expand Up @@ -110,7 +117,7 @@ Version History
- Any unused parameters an object ignores now emit a warning message
- New support for volumes in the `pathtracer`
- Several parameters are available for performance/quality
trade-offs for both photo-realistic and scientific visualization
trade-offs for both photorealistic and scientific visualization
use cases
- Simplification of the SciVis renderer
- Fixed AO lighting and simple ray marched volume rendering for
Expand Down Expand Up @@ -788,7 +795,7 @@ changes.
- Incorporated early version of a new Qt-based viewer to eventually
unify (and replace) the existing simpler GLUT-based viewers
- Added new path tracing renderer (`ospray/render/pathtracer`),
- roughly based on the Embree sample path tracer
roughly based on the Embree sample path tracer
- Added new features to the volume renderer
- Gradient shading (lighting)
- Implicit isosurfacing
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OSPRay
======

This is release v2.1.0 of Intel® OSPRay. For changes and new features
This is release v2.1.1 of Intel® OSPRay. For changes and new features
see the [changelog](CHANGELOG.md). Visit http://www.ospray.org for more
information.

Expand Down Expand Up @@ -714,8 +714,8 @@ opaque arrays to allow the `OSPData` to own the lifetime of the array
memory. However, opaque arrays dictate the cost of copying data into it,
which should be kept in mind.

Thus the most efficient way to specify a data array from the application
is to created a shared data array, which is done with
Thus, the most efficient way to specify a data array from the
application is to created a shared data array, which is done with

``` {.cpp}
OSPData ospNewSharedData(const void *sharedData,
Expand Down Expand Up @@ -943,7 +943,7 @@ Note that cell widths are defined *per refinement level*, not per block.
| | | | `OSP_AMR_FINEST` |
| | | | `OSP_AMR_OCTANT` |
| float\[\] | cellWidth | NULL| array of each level’s cell width |
| box3f\[\] | block.bounds | NULL| [data](#data) array of bounds for each AMR block |
| box3i\[\] | block.bounds | NULL| [data](#data) array of grid sizes (in voxels) for each AMR block |
| int\[\] | block.level | NULL| array of each block’s refinement level |
| OSPData\[\] | block.data | NULL| [data](#data) array of OSPData containing the actual scalar voxel data |
| vec3f | gridOrigin | $(0, 0, 0)$| origin of the grid in world-space |
Expand Down Expand Up @@ -1411,11 +1411,11 @@ about 0.53°.
### Point Light / Sphere Light

The sphere light (or the special case point light) is a light emitting
uniformly in all directions from the surface towards the outside. It
does not emit any light towards the inside of the sphere. It is created
by passing the type string “`sphere`” to `ospNewLight`. In addition to
the [general parameters](#lights) understood by all lights the sphere
light supports the following special parameters:
uniformly in all directions from the surface toward the outside. It does
not emit any light toward the inside of the sphere. It is created by
passing the type string “`sphere`” to `ospNewLight`. In addition to the
[general parameters](#lights) understood by all lights the sphere light
supports the following special parameters:

| Type | Name | Description |
|:------|:---------|:-----------------------------------------------|
Expand Down Expand Up @@ -2595,7 +2595,7 @@ Rendering
### Asynchronous Rendering

Rendering is by default asynchronous (non-blocking), and is done by
combining a frame buffer, renderer, camera, and world.
combining a framebuffer, renderer, camera, and world.

What to render and how to render it depends on the renderer’s
parameters. If the framebuffer supports accumulation (i.e., it was
Expand Down Expand Up @@ -2634,7 +2634,7 @@ The following are values which can be synchronized with the application

| Name | Description |
|:----------------------|:------------------------------------------------------------------------------------------------------------------------------------------------|
| OSP\_NONE\_FINISHED | Don’t wait for anything to be finished (immediately return from `ospWait`) |
| OSP\_NONE\_FINISHED | Do not wait for anything to be finished (immediately return from `ospWait`) |
| OSP\_WORLD\_COMMITTED | Wait for the world to be committed (not yet implemented) |
| OSP\_WORLD\_RENDERED | Wait for the world to be rendered, but not post-processing operations (Pixel/Tile/Frame Op) |
| OSP\_FRAME\_FINISHED | Wait for all rendering operations to complete |
Expand Down
14 changes: 8 additions & 6 deletions apps/ospExamples/GLFWOSPRayWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@
#ifndef GL_CLAMP_TO_BORDER
#define GL_CLAMP_TO_BORDER 0x812D
#endif
#ifndef GL_SRGB_ALPHA
#define GL_SRGB_ALPHA 0x8C42
#endif
#ifndef GL_FRAMEBUFFER_SRGB
#define GL_FRAMEBUFFER_SRGB 0x8DB9
#endif
#ifndef GL_RGBA32F
#define GL_RGBA32F 0x8814
#endif
#ifndef GL_RGB32F
#define GL_RGB32F 0x8815
#endif

static bool g_quitNextFrame = false;

Expand Down Expand Up @@ -311,15 +314,14 @@ void GLFWOSPRayWindow::display()

auto *fb = framebuffer.map(showAlbedo ? OSP_FB_ALBEDO : OSP_FB_COLOR);

const GLint glFormat = showAlbedo ? GL_RGB : GL_RGBA;
glBindTexture(GL_TEXTURE_2D, framebufferTexture);
glTexImage2D(GL_TEXTURE_2D,
0,
glFormat,
showAlbedo ? GL_RGB32F : GL_RGBA32F,
windowSize.x,
windowSize.y,
0,
glFormat,
showAlbedo ? GL_RGB : GL_RGBA,
GL_FLOAT,
fb);

Expand Down
2 changes: 1 addition & 1 deletion apps/ospTestSuite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ PRIVATE

install(TARGETS ospTestSuite
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT test
COMPONENT apps
)
3 changes: 1 addition & 2 deletions cmake/ospray_cmake_config/osprayConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2009-2019 Intel Corporation
## Copyright 2009-2020 Intel Corporation
## SPDX-License-Identifier: Apache-2.0

# Called if we failed to find OSPRay or any of it's required dependencies,
Expand Down Expand Up @@ -131,7 +131,6 @@ else()
if (NOT TARGET embree)
ospray_find_embree(${EMBREE_VERSION_REQUIRED})
ospray_verify_embree_features()
ospray_create_embree_target()
endif()

if (NOT TARGET ospcommon::ospcommon)
Expand Down
Loading

0 comments on commit 7cc36c7

Please sign in to comment.