Romain Guy
40aad197da
Fixes various issues ( #2292 )
...
* Fixes various issues
- Fix gltf_baker crash
- Fix Python3 discovery on macOS
- Fix TBB CMake warning
- Fix bent normals baking
* Find Python 3 on Windows
2020-03-26 22:53:44 -07:00
Philip Rideout
6825781718
gltf_viewer: fix string lifetime for #2190 .
2020-03-05 09:26:27 -08:00
Philip Rideout
9358c7313e
Remove STL from ResourceLoader API.
2020-02-12 10:03:06 -08:00
Philip Rideout
e8e847a662
gltfio: various cleanup in response to PR review
2020-02-04 12:47:32 -08:00
Mathias Agopian
3105a8330e
remove unneeded includes in public headers
...
Replace with forward declarations if needed and includes in .cpp that
now need them.
The idea here is to have our headers have the least amount of impact as
possible on our clients (e.g. compilation time).
2020-01-24 12:13:48 -08:00
Philip Rideout
898ed70aa0
Remove <iostream> from math headers.
...
This speeds up our build time by using <iosfwd> and un-inlining the
vector print functions.
2020-01-06 15:09:06 -08:00
Mathias Agopian
36cdadd238
fix gltf_viewer calculated light position/intensity
2019-12-10 14:44:23 -08:00
Ben Doherty
a735660af8
Separate resource packages for gltf_viewer and lucy demo ( #1908 )
2019-11-22 11:34:42 -08:00
Ben Doherty
e8641ce257
Additional fixes for MSVC ( #1765 )
2019-10-10 16:45:06 -07:00
Mathias Agopian
20c3d45b9c
Engine.flushAndWait() is not needed in most places
2019-10-03 16:04:22 -07:00
Philip Rideout
91ff1d87eb
Replace prebuilt KTX with a build step.
...
This removes the samples/envs folder and replaces these KTX files with a
build step that is driven by CMake / gradle / bash, depending on
platform.
This makes it easier to use IBL files that are generated by the latest
and greatest version of cmake.
2019-08-08 10:41:13 -07:00
Philip Rideout
0fe8035309
gltfio: allow names to be queried.
...
Fixes #1425 .
2019-08-06 12:54:29 -07:00
Romain Guy
62a458099a
Fix more warnings
2019-06-27 09:56:43 -07:00
Philip Rideout
8142ffdfb7
Add bloom demo and release notes for #119 .
2019-06-11 15:56:24 -07:00
Philip Rideout
f93046308c
gltf_baker: improve error handling throughout.
2019-06-05 15:25:47 -07:00
Philip Rideout
1d514e6bf6
gltf_baker: allow re-baking after tweaking options.
2019-06-05 15:25:47 -07:00
Philip Rideout
70d569029b
gltf_baker: allow adjustment to seed iterations.
2019-06-05 10:11:23 -07:00
Philip Rideout
0262a38c7e
gltf_baker: fix radio button numbering
2019-06-04 15:48:54 -07:00
Philip Rideout
d3f784d4f9
gltf_baker: add vertex normals visualization
2019-06-04 14:36:03 -07:00
Philip Rideout
be11944f99
gltf_baker: AssetPipeline now has an options struct.
2019-06-03 13:03:14 -07:00
Philip Rideout
f3a70d82cd
gltf_baker: make denoise optional.
2019-06-03 13:03:14 -07:00
Philip Rideout
29d2f51fca
gltf_baker: make chart dilation optional.
2019-06-03 13:03:14 -07:00
Philip Rideout
bfaa2bdd4e
gltf_baker: allow 3D visualization of mesh normals.
2019-06-03 13:03:14 -07:00
Philip Rideout
ce4a3edf7b
gltf_baker: visualizers now use fp32 textures.
...
This allows us to skip the CPU-side vector-to-color conversion that
occured at the end, and makes the real-time visualization consistent
with the final visualization.
2019-06-03 13:03:14 -07:00
Philip Rideout
6c153b046f
gltf_baker: allow visualization of mesh normals.
2019-06-03 13:03:14 -07:00
Philip Rideout
7a732eb9c4
gltf_baker: show the bounds of the asset
...
Parameterization can run into problems for very large, very small, or
off-center assets. Showingthe min/max helps users diagnose these issues.
2019-06-03 13:03:14 -07:00
Philip Rideout
fdfb8862eb
gltf_baker: allow tmin adjustment.
2019-06-03 13:03:14 -07:00
Philip Rideout
78ec315b69
Overhaul the gltf_baker UI.
...
As per the design doc, this makes the app somewhat usable by eliminating
hardcoded filenames, the hidden state machine, etc.
2019-06-03 08:32:48 -07:00
Philip Rideout
122eb8c82e
gltf_baker: add UV visualization option
2019-05-28 11:44:04 -07:00
Philip Rideout
cc89b6ad1e
PathTracer now applies OpenImageDenoise.
2019-05-28 11:43:50 -07:00
Philip Rideout
761b407159
AssetPipeline now has replaceOcclusion function.
...
This preserve original materials and substitutes the occlusion texture
with the generated AO.
2019-05-24 14:59:10 -07:00
Philip Rideout
5bdbf63ff6
gltf_baker now has an export modal.
2019-05-24 14:59:10 -07:00
Philip Rideout
8f1d4ffa4d
gltf_baker now parameterizes in a background thread.
2019-05-23 22:06:43 -07:00
Philip Rideout
3b2d75e129
gltf_baker now has adjustable resolution.
2019-05-23 22:06:43 -07:00
Philip Rideout
cfb6a1c917
gltf_baker: add diagnostics.
2019-05-18 20:43:31 -07:00
Philip Rideout
07be9d1721
PathTracer: add bent normals and diagnostic targets.
2019-05-17 10:01:26 -07:00
Philip Rideout
9a72831a33
AssetPipeline can now preview baked texture.
2019-05-16 15:53:20 -07:00
Philip Rideout
59f929c7d3
Fix "already freed" bug in gltf_baker.
2019-05-16 15:53:20 -07:00
Philip Rideout
c112b3ce40
Introduce AssetPipeline::SCALE_TO_UNIT to boost bake quality.
2019-05-15 16:44:33 -07:00
Philip Rideout
affc947ce0
gltf_baker: improve error reporting.
2019-05-15 16:44:33 -07:00
Philip Rideout
cbfb364c41
Introduce libs/rays and implement AO baking.
...
The AO baking procedure consists of the following steps:
1. Flatten the glTF hierarchy.
2. Generate a single 2D parameterization for the entire scene.
3. Embree Pass 1: Create G-Buffer using the above UVs as vert positions.
4. Embree Pass 2: Cast rays from the positions embedded in the G-Buffer.
The `gltf_baker` tool is not ready for general use but already
produces reasonable results for certain well-formed models.
2019-05-15 13:10:56 -07:00
Philip Rideout
c84c60112e
Implement the bake button, uses a "UV camera" to cast primary rays.
2019-05-15 13:10:56 -07:00
Philip Rideout
cd364b029c
gltf_baker: fix needless reload for rendering.
2019-05-13 18:55:56 -07:00
Philip Rideout
3291fb6a1b
Introduce gltf_baker tool.
2019-05-13 10:25:12 -07:00