Commit Graph

7 Commits

Author SHA1 Message Date
tim doerries
4dd6dc0c2d Added second float4/PackedDataB to SparseVolumeTextures.
#rb Sebastien.Hillaire
#rnx
#preflight 63bddd32d862fdd3470c2a02

[CL 23658523 by tim doerries in ue5-main branch]
2023-01-11 20:56:20 -05:00
tim doerries
88b2dcae6b Implemented support for importing additional OpenVDB grid types (multi-component Float and Double). Also refactored some related functions and added a display of all the grids present in the source file to the import dialog.
#rb Sebastien.Hillaire
#rnx
#preflight 63b6cc53592c1a9d7cf1fe65

[CL 23632643 by tim doerries in ue5-main branch]
2023-01-10 15:51:23 -05:00
tim doerries
07c6b6526f Reworked OpenVDB import dialog to allow for combining source grids into different channels of the resulting page atlas. Also now supports three different formats (32bit float, 16bit float, 8bit unorm).
#rb Sebastien.Hillaire
#rnx
#preflight 6388fa994c3ce8ae5dc059d0

[CL 23367549 by tim doerries in ue5-main branch]
2022-12-01 19:25:56 -05:00
tim doerries
84d2de5fbc Implemented first version of OpenVDB import dialog.
#rb Sebastien.Hillaire
#rnx
#preflight 638668bdb21cdd3a266f335d

[CL 23338862 by tim doerries in ue5-main branch]
2022-11-30 15:06:09 -05:00
tim doerries
5fd9a992ec SparseVolumeTexture asset now stores the source file and cooks using that source file instead of data generated during the import.
#rb Sebastien.Hillaire
#rnx
#preflight 6380ba724004f73f62bf4ad7

[CL 23265965 by tim doerries in ue5-main branch]
2022-11-25 09:18:31 -05:00
sebastien hillaire
90505548ba Fixes for static analysis issues in ue5 main.
#rb none
[FYI] Marc.Audy

[CL 22577393 by sebastien hillaire in ue5-main branch]
2022-10-17 16:42:17 -04:00
sebastien hillaire
a831062e45 Sparse volumetexture initial commit.
Sparse Volume Texture asset from imported OpenVDB (only a single float channel for now). Static or animated sequence.
It will be possible to generate SVT at runtime from GPU later.
Using FEditorBulkData for handling raw source without loading everything when not caching or cooking.
BulkData used at runtime for loading. No streaming yet.
Importer with dependency on OpenVDB is in a SparseVolumeTexture module only loaded when in editor

Sparse volume texture can be sampled from any materials (sample, sample parameter) and overridden on material instance and material instance dynamic.

Added support for uint in compiler (fetch from page table, see SparseVolumeTextureGetVoxelCoord)
Volume texture with u8 VirtualTextureLayerIndex!=255 (INDEX_NONE) are sparse texture. The layer index then represent what texture/attribute to sample.

#preflight https://horde.devtools.epicgames.com/job/6346a466f93be0f6345af86c
#rb Patrick.Kelly, Charles.deRousiers

[CL 22551963 by sebastien hillaire in ue5-main branch]
2022-10-16 02:28:34 -04:00