Commit Graph

5 Commits

Author SHA1 Message Date
tim doerries
bb1da72ead Implemented support for importing .vdb grids with half float formats.
#rb Patrick.Kelly
#rnx
#preflight 6436b7e900398d6f88504765

[CL 25025416 by tim doerries in ue5-main branch]
2023-04-13 10:50:12 -04:00
tim doerries
ba186ef2a0 Converted SparseVolumeTextures from AssetTypeActions to AssetDefinition.
#rnx
#preflight 63f5fdfc977ceed9152ec256
[FYI] Sebastien.Hillaire

[CL 24359383 by tim doerries in ue5-main branch]
2023-02-22 07:58:57 -05:00
tim doerries
1ca91d6ea2 SVT uassets now no longer store the original vdb file. Conversion now happens during import, giving the user a progress bar instead of just blocking the editor on PostLoad() when the derived data was generated. Also renamed "PackedData" to "Attributes".
#rnx
#preflight 63d7f61031334253e5ff28c4

[CL 23923279 by tim doerries in ue5-main branch]
2023-01-31 01:11:48 -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
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