Pixelflinger
bb8cd6677d
optionally compress highlights before bloom
...
This avoid unrealistic looking bloom halos from very strong highlights.
This is enabled by default.
2020-09-01 09:46:23 -07:00
Ben Doherty
af2fc39bad
Add JNI bindings for CSM ( #2979 )
...
* Add JNI bindings for CSM
* Fix Windows build
* Fix jovadoc
2020-08-21 10:21:31 -07:00
Pixelflinger
4e3bb9c7c8
fix translucent views with custom render targets
...
Marking a view with a custom render target will now disable blending
for that view but require an alpha channel for intermediate buffers.
Blending is disabled because it is meaningless.
fixes #2802
2020-08-19 11:55:13 -07:00
Pixelflinger
7852a9b8cb
Add public APIs for texture 3D and texture 2D arrays
...
Also cleanup all setImage() error reporting. All error checks are
changed from silent to NON_FATAL_ASSERT, which means they'll throw
if exceptions are enabled or do a no-op and log a message otherwise.
Also added more precondition checks.
2020-08-12 17:32:46 -07:00
Ben Doherty
faa785f3f6
Switch to C++17 ( #2940 )
2020-08-12 15:21:39 -07:00
Richard Chang
4d51042170
Add back proguard file for Android ( #2933 )
...
* Add back proguard file for Android and update README.md
The proguard-rules.pro file provided by Jeff McGlynn (9fe60a636 )
works perfectly for Android projects with minifyEnabled.
Add the config file back to the repository and update README.md
to help other Android users setup release build.
* Refine android proguard file and remove proguard section in README.md
2020-08-12 10:08:53 -07:00
Pixelflinger
08e411aeac
API CHANGE: make ssao options work like all other options
...
setAmbientOcclusion (and associates) is now deprecated (but still works),
in favor of the new .enabled field in AmbientOcclusionOptions.
2020-08-10 17:23:03 -07:00
Pixelflinger
8155bf04a8
Implement variance clamping
...
variance clamping further shrinks the min/max AABB
2020-08-10 11:14:34 -07:00
Pixelflinger
05bfa632ff
Add TAA java bindings
2020-08-10 11:14:34 -07:00
Philip Rideout
732a6c08de
Add Texture getters to IndirectLight and Skybox.
...
Fixes #2851 .
2020-08-07 11:49:24 -07:00
Philip Rideout
dc74ee2ddc
Refactor CallbackUtils.
2020-08-05 17:27:12 -07:00
Philip Rideout
2727cddd7a
TextureHelper: add overload with a release callback.
...
Fixes #2909 .
2020-08-05 17:27:12 -07:00
Romain Guy
642fb5859b
Filament 1.8.1
2020-07-30 12:18:38 -07:00
Philip Rideout
b4623c9afc
Add lightroom IBL, enable ColorGrading by default in gltf_viewer.
...
The non-legacy ACES is now default, it looks much better.
I also tested this IBL with WebGL and Android.
2020-07-30 11:39:36 -07:00
Philip Rideout
2f4dd0bbd4
sample-page-curl: add comments to variables, etc.
2020-07-27 07:35:58 -07:00
Romain Guy
6ed1fb3b7b
Add quality option to ColorGrading ( #2858 )
...
* Add quality option to ColorGrading
Low: 16x16x16 LUT in 10 bit
Medium: 32x32x32 LUT in 10 bit
High: 32x32x32 LUT in 16 bit
Ultra: 64x64x64 LUT in 16 bit
* Move comment
2020-07-23 13:49:01 -07:00
Romain Guy
1613c1bb0e
Ensure we respect the desired size on layout change ( #2859 )
2020-07-23 12:45:02 -07:00
Richard Chang
1162ae4ddc
Fix typo in SurfaceOrientation jni wrapper ( #2853 )
2020-07-23 09:06:26 -07:00
Pixelflinger
ec9fd58fc0
use more inclusive language
2020-07-22 15:20:54 -07:00
Ben Doherty
b786b486b6
Add getCullingProjectionMatrix JNI method ( #2847 )
2020-07-22 15:12:03 -07:00
Philip Rideout
0da20cccdc
Introduce removeEntities API / fix leak in ModelViewer (!)
...
For testing purposes, sample-gltf-viewer reloads the model when the
user double-taps the screen. This operation was causing a buildup of
blank entities in the Scene, because we were merely destroying the
components, not removing them from the Scene.
2020-07-22 13:38:38 -07:00
Romain Guy
c6d9d4a9ae
Update AGP, NDK and androidx.core ( #2826 )
2020-07-17 09:24:33 -07:00
Romain Guy
4c81bb0158
Fix material parameters enum ( #2814 )
...
* Fix material parameters enum
Fixes bug #2812
* Add missing sampler type to filamat
2020-07-14 09:29:20 -07:00
Philip Rideout
ec533e6047
DriverEnums: add usage flag for SUBPASS_INPUT
2020-07-11 09:22:28 -07:00
Romain Guy
b224916f09
Prevent crash if the glTF doesn't have animations
2020-07-09 17:23:06 -07:00
Philip Rideout
5d2b12b9a6
Fix javadoc syntax error.
2020-07-09 12:12:41 -07:00
Romain Guy
77aec40a56
Prepare Filament v.1.8.0 ( #2787 )
2020-07-09 11:44:15 -07:00
Ben Doherty
a6872c840c
Silence more deprecation warnings ( #2750 )
2020-06-30 10:14:57 -07:00
Romain Guy
2aeb33b260
Fix Windows build
2020-06-26 23:20:23 -07:00
Romain Guy
132e94b3bb
Add vignette post-processing effect ( #2743 )
...
* Add a vignette post-processing effect
* Use numeric limits instead of hard coded values
2020-06-26 17:44:17 -07:00
Philip Rideout
8f7b25088d
CMake: build matdbg / civetweb only when enabled.
...
Also group FILAMENT_ENABLE_MATDBG with all our other CMake options.
2020-06-23 15:19:04 -07:00
Philip Rideout
8f4ffbc782
gltfio: various improvements to skinning normalization.
...
- Allow JavaScript and Java / Kotlin clients to configure this setting.
- Opt in by default (this was disabled in #2621 )
- Optimize large assets like Bistro by iterating through prims only when
the asset actually has skins.
Fixes #2714 .
2020-06-23 13:30:45 -07:00
Philip Rideout
a79effc78b
Page Curl: fix CPU animation.
2020-06-18 19:38:41 -07:00
Philip Rideout
66471ee990
Page Curl: add configurable curl style.
2020-06-18 19:35:42 -07:00
Ben Doherty
94776a01b3
Add JNI bindings for gltfio camera ( #2693 )
2020-06-16 15:24:24 -07:00
Ben Doherty
7a1c079050
Use an int, not byte, for variantFilter ( #2691 )
2020-06-15 11:38:43 -07:00
Philip Rideout
ebd195f8e4
matdbg: Add support for Android.
...
See the matdbg README for details.
2020-06-14 22:42:55 -07:00
Philip Rideout
899ac1224f
gltfio: Add Java bindings for desktop.
...
This is completely untested.
Fixes #2670 .
2020-06-12 13:47:54 -07:00
Philip Rideout
fa0f5e0501
Prep the build for multi-platform matdbg.
2020-06-10 20:00:24 -07:00
Rupert Rawnsley
b0acb3216a
eglInitialize requires a non-null IntArray reference and different offsets for major and minor. ( #2668 )
2020-06-10 08:52:20 -07:00
Philip Rideout
f125e1730d
Throw Java exception when using destroyed Animator.
...
Someone wise once said: "It is better to throw in Java than to crash in
Native."
Motivated by #2654 .
2020-06-09 10:36:35 -07:00
Rupert Rawnsley
18776fc432
SamplerType JNI definition was out of step with the native definition. ( #2658 )
...
When invoking MaterialBuilder.samplerParameter with Java enum SAMPLER_EXTERNAL it was wrongly recast as native enum SAMPLE_CUBEMAP in the JNI interface because the Java enum was missing SAMPLE_2D_ARRAY.
2020-06-09 08:35:33 -07:00
Romain Guy
4bf21876b4
Add new color grading feature, vibrance ( #2656 )
...
* Add new color grading feature, vibrance
* Address code review comment
2020-06-09 08:34:10 -07:00
Romain Guy
b4d2a1991a
Add new curves color grading tool ( #2651 )
...
* Add new curves color grading tool
* Add release notes
2020-06-08 12:17:53 -07:00
Philip Rideout
43f7bad8a3
Kotlin cleanup
2020-06-05 08:23:25 -07:00
Romain Guy
2fcca9677d
Add Ushimura tone mapping operator
...
Also fix potential negative values when applying white balance
during color grading.
2020-06-04 15:17:08 -07:00
Romain Guy
1935598a7d
Add Java bindings for ColorGrading ( #2638 )
2020-06-04 11:03:15 -07:00
Philip Rideout
b281022eb0
sample-page-curl: flip the backface image.
2020-06-03 12:07:43 -07:00
Philip Rideout
7418fc0222
gltfio: JNI bindings for get-by-name.
...
Tested in Android Studio by starting sample-gltf-viewer and typing the
following into the debugger:
modelViewer.asset!!.getFirstEntityByName("Drone_Body")
modelViewer.asset!!.getEntitiesByName("Drone_Body")
modelViewer.asset!!.getEntitiesByPrefix("Drone")
2020-06-02 18:38:36 -07:00
Philip Rideout
9437907eb4
ModelViewer now uses a coroutine.
2020-06-02 18:36:49 -07:00