Package com.banuba.sdk.scene
Interface AssetManager
- All Known Implementing Classes:
AssetManager.CppProxy
public interface AssetManager
Factory for assets creating and their data uploading.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateAudioTrack
(String name) creates audio_trackcreateDynamicMesh
(String name, String path) creates dynamicaly updated meshcreateFace
(String name) creates facecreateHand
(String name) creates handcreateImage
(String name, ImageType type) create image of given typecreateMaterial
(String name, String path) creates materialcreateMaterialExt
(String name, String vsPath, String fsPath, int instanceCount, ArrayList<String> extraDefs) creates materialcreateMorph
(String name, MorphingType type) creates morphingcreateProceduralTexture
(String name, ProceduralAlgorithmType type) createRenderTarget
(String name) creates render targetcreateResource
(String filename) create resource and start async loading in the asset_manager threadpoolcreateSegmentationMask
(String name, SegmentationMaskType type) createStaticMesh
(String name) creates static meshfindAudioTrack
(String name) Find audio track by specified name.Find face by specified name.Find hand by specified name.Find image by specified name.findMaterial
(String name) Find material by specified name.Find mesh by specified name.Find morph by specified name.findRenderTarget
(String name) Find render target by specified name.void
uploadMeshData
(Mesh mesh, String fileName) upload mesh file
-
Method Details
-
createImage
create image of given type- Parameters:
name
- (string): image nametype
- (image_type): image type- Returns:
- created image (image).
-
createResource
create resource and start async loading in the asset_manager threadpool- Parameters:
name
- (resource): resource filename- Returns:
- created resource (resource).
-
createSegmentationMask
-
createProceduralTexture
@Nullable Image createProceduralTexture(@NonNull String name, @NonNull ProceduralAlgorithmType type) -
createRenderTarget
creates render target- Parameters:
name
- (string): render target name- Returns:
- created render target (render_target).
-
createAudioTrack
creates audio_track- Parameters:
name
- (string): audio track name- Returns:
- created audio track (audio_track).
-
createFace
creates face- Parameters:
name
- (string): face name- Returns:
- created face (face).
-
createMorph
creates morphing- Parameters:
name
- (string): morphing name- Returns:
- created morphing (morphing).
-
createStaticMesh
creates static mesh- Parameters:
name
- (string): mesh name- Returns:
- created mesh (mesh).
-
createDynamicMesh
creates dynamicaly updated mesh- Parameters:
name
- (string): mesh namepath
- (string): path to mesh- Returns:
- created mesh (mesh).
-
createHand
creates hand- Parameters:
name
- (string): hand name- Returns:
- created hand (hand).
-
uploadMeshData
upload mesh file- Parameters:
mesh
- (mesh): meshfileName
- (string): file to upload
-
createMaterial
creates material- Parameters:
name
- (string): material namepath
- (string): path to shaders- Returns:
- created material (material).
-
createMaterialExt
@Nullable Material createMaterialExt(@NonNull String name, @NonNull String vsPath, @NonNull String fsPath, int instanceCount, @NonNull ArrayList<String> extraDefs) creates material- Parameters:
name
- (string): material namevsPath
- (string): path to vertex shaderfsPath
- (string): path to fragment shaderinstanceCount
- (i32): instances countextraDefs
- (list): defines list for shader - Returns:
- created material (material).
-
findImage
Find image by specified name. Returns null if image not found.- Parameters:
name
- (string) image name.
-
findRenderTarget
Find render target by specified name. Returns null if render target not found.- Parameters:
name
- (string) render target name.
-
findAudioTrack
Find audio track by specified name. Returns null if audio track not found.- Parameters:
name
- (string) audio track name.
-
findFace
Find face by specified name. Returns null if face not found.- Parameters:
name
- (string) face name.
-
findHand
Find hand by specified name. Returns null if hand not found.- Parameters:
name
- (string) hand name.
-
findMorph
Find morph by specified name. Returns null if morph not found.- Parameters:
name
- (string) morph name.
-
findMesh
Find mesh by specified name. Returns null if mesh not found.- Parameters:
name
- (string) mesh name.
-
findMaterial
Find material by specified name. Returns null if material not found.- Parameters:
name
- (string) material name.
-