API Migration
Major Changes#
- Added a new MeshAnimation class.
Breaking Changes#
BonesRetargeting Class#
UNIGINE 2.18.1 | UNIGINE 2.19 |
---|---|
loadMeshes( const char *, const char * ) | Removed. Use loadBones( const char *, const char * ), loadBonesFromMeshes( const Ptr<Mesh> &, const Ptr<Mesh> & ), or loadBloadBonesFromObjects( const Ptr<ObjectMeshSkinned> &, const Ptr<ObjectMeshSkinned> & ) instead. |
New Functions
BootConfig Class#
Material Class#
UNIGINE 2.18.1 | UNIGINE 2.19 |
---|---|
setDepthMask( int ) | Removed. |
getDepthMask( ) | Removed. |
OPTION_DEPTH_MASK | Removed. |
TEXTURE_SOURCE_INDIRECT_DIFFUSE | Renamed as TEXTURE_SOURCE_INDIRECT_DIFFUSE_FINAL. |
TEXTURE_SOURCE_INDIRECT_SPECULAR | Renamed as TEXTURE_SOURCE_INDIRECT_SPECULAR_FINAL. |
New Functions
Memory Class#
Mesh Class#
UNIGINE 2.18.1 | UNIGINE 2.19 |
---|---|
setAnimationBones( int, const Vector< short > & ) | Removed. Use MeshAnimation::setAnimationBones( const Vector< short > & ) instead. |
getAnimationBones( int, Vector< short > & ) | Removed. Use MeshAnimation::getAnimationBones( Vector< short > & ) instead. |
setAnimationFrame( int, int, const Vector< Math::vec3 > &, const Vector< Math::quat > &, const Vector< Math::vec3 > &, int, int, int ) | Removed. Use MeshAnimation::setFrame( int, const Vector< Math::vec3 > &, const Vector< Math::quat > &, const Vector< Math::vec3 > & ) instead. |
setAnimationFrame( int, int, int, const Vector< Math::mat4 > & ) | Removed. Use MeshAnimation::setFrame( int, const Vector< Math::mat4 > & ) instead. |
getAnimationFrame( int, int, Vector< Math::vec3 > &, Vector< Math::quat > &, Vector< Math::vec3 > &, int ) | Removed. Use MeshAnimation::getFrame( int, Vector< Math::vec3 > &, Vector< Math::quat > &, Vector< Math::vec3 > & ) instead. |
getAnimationFrame( int, int, int, int, int, int, Vector< Math::mat4 > & ) | Removed. Use MeshAnimation::getFrame( int, Vector< Math::mat4 > & ) instead. |
setAnimationName( int, const char * ) | Removed. |
getAnimationName( int ) | Removed |
setBoneTransforms( const Vector<Math::mat4> & ) | Set of arguments changed. |
getBoneTransforms( Vector<Math::mat4> & ) | Set of arguments changed. |
setNumAnimationFrames( int, int ) | Removed. Use MeshAnimation::setNumFrames( int ) instead. |
getNumAnimationFrames( int ) | Removed. Use MeshAnimation::getNumFrames( int ) instead. |
getNumAnimations( ) | Removed. |
addAnimation( const char * ) | Removed. |
findAnimation( const char * ) | Removed. |
sortAnimations( ) | Removed. |
ObjectMeshSkinned Class#
UNIGINE 2.18.1 | UNIGINE 2.19 |
---|---|
Enum FRAME_USES | Renamed as ANIM_FRAME_USES. |
ObjectMeshSkinned( const Ptr<Mesh> & ) | Removed. Use applyMeshProcedural( const Ptr<Mesh> & ) instead. |
ObjectMeshSkinned( const char *, bool ) | Removed. If unique=true, use applyMeshProcedural( const Ptr<Mesh> & ) instead. |
setAnimation( int, variable, int ) | Removed. Use getAnimationResourceID( const char * ) or setLayerAnimationResourceID( int, long long ) instead. |
setAnimation( int, const char * ) | Removed. Use setLayerAnimationPath( int, const char * ) instead. |
getAnimation( int ) | Removed. Use getLayerAnimationResourceID( int ) instead. |
getAnimationID( int ) | Removed. Use getAnimationResourceID( const char * ) instead. |
getAnimationPath( int ) | Removed. Use getLayerAnimationPath( int ) instead. |
setAnimName( const char * ) | Removed. |
setAnimNameForce( const char * ) | Removed. Use setAnimPath( const char * ) instead. |
getAnimName( ) | Removed. Use getAnimPath( const char * ) instead. |
getBoneBindTransform( int ) | Removed. Use getBoneBindLocalTransform( int ) instead. |
setCIndex( int, int, int ) | Removed. |
setColor( int, const Math::vec4 &, int ) | Removed. |
setFrame( int, float, int, int ) | Removed. Use setLayerFrame( int, float, int, int ) instead. |
getFrame( int ) | Removed. Use getLayerFrame( int ) instead. |
getFrameFrom( int ) | Removed. Use getLayerFrameFrom( int ) instead. |
getFrameTo( int ) | Removed. Use getLayerFrameTo( int ) instead. |
getBoneBindITransform( int ) | Removed. Use getBoneBindObjectITransform( int ) instead. |
getBoneITransform( int ) | Removed. |
setBoneLayerTransform( int, int, const Math::mat4 & ) | Removed. Use setLayerBoneTransform( int, int, const Math::mat4 & ) instead. |
getBoneLayerTransform( int, int ) | Removed. Use getLayerBoneTransform( int, int ) instead. |
isBoneLayerTransform( int, int ) | Removed. Use isLayerBoneTransform( int, int ) instead. |
setBoneLayerTransformEnabled( int, int, bool ) | Removed. Use setLayerBoneTransformEnabled( int, int, bool ) instead. |
setMesh( const Ptr<Mesh> & ) | Removed. Use applyMeshProcedural( const Ptr<Mesh> & ) instead. |
setMeshName( const char * ) | Removed. |
setMeshNameForce( const char * ) | Removed. Use setMeshPath( const char * ) instead. |
getMeshName( ) | Removed. Use getMeshPath( ) instead. |
getNumAnimationBones( int ) | Removed. Use MeshAnimation::getNumBones( ) instead. |
getNumAnimationFrames( int ) | Removed. Use MeshAnimation::getNumFrames( int ) instead. |
getNumAnimations( ) | Removed. |
getNumFrames( int ) | Removed. Use getLayerNumFrames( int ) instead. |
setNumTargets( int, int ) | Removed. |
getNumTargets( int ) | Removed. Use getNumSurfaceTargets( int ) instead. |
setNumTexCoords0( int, int ) | Removed. |
setNumTexCoords1( int, int ) | Removed. |
isFlushed( ) | Removed. |
setSurfaceTransform( const Math::mat4 &, int, int ) | Removed. |
setTangent( int, const Math::quat &, int, int ) | Removed. |
setTarget( int, bool, int, float, int ) | Removed. |
setTargetEnabled( int, bool, int ) | Removed. Use setSurfaceTargetEnabled( int, int, bool ) instead. |
isTargetEnabled( int, int ) | Removed. Use isSurfaceTargetEnabled( int, int ) instead. |
setTargetIndex( int, int, int ) | Removed. |
getTargetIndex( int, int ) | Removed. |
setTargetWeight( int, float, int ) | Removed. Use setSurfaceTargetWeight( int, int, float ) instead. |
getTargetWeight( int, int ) | Removed. Use getSurfaceTargetWeight( int, int ) instead. |
setTexCoord0( int, const Math::vec2 &, int ) | Removed. |
setTexCoord1( int, const Math::vec2 &, int ) | Removed. |
setTIndex( int, int, int ) | Removed. |
setVertex( int, const Math::vec3 &, int, int ) | Removed. |
addAnimation( const Ptr<Mesh> &, const char * ) | Removed. |
addAnimation( const char * ) | Removed. |
addRetargetedAnimation( const char *, const Ptr<BonesRetargeting> & ) | Removed. |
addRetargetedAnimation( const Ptr<Mesh> &, const Ptr<BonesRetargeting> &, const char * ) | Removed. |
addEmptySurface( const char *, int, int ) | Removed. |
addMeshSurface( variable, variable, const char *, const Ptr<ObjectMeshSkinned> &, int, int ) | Removed. |
addMeshSurface( int, const Ptr<ObjectMeshSkinned> &, int, int ) | Removed. |
addMeshSurface( const char *, const Ptr<Mesh> &, int, int ) | Removed. |
addSurfaceTarget( int, const char * ) | Removed. |
addSurfaceTarget( int, const Ptr<ObjectMeshSkinned> &, int, int ) | Removed. |
addTarget( int ) | Removed. |
createMesh( const char *, bool ) | Removed. |
findAnimation( const char * ) | Removed. |
findSurfaceTarget( int, const char * ) | Set of arguments changed. |
flushMesh( ) | Removed. |
loadMesh( const char * ) | Removed. Use setMeshPath( const char * ) instead. |
mergeMeshSurface( int, const Ptr<ObjectMeshSkinned> &, int ) | Removed. |
removeAnimation( int ) | Removed. |
removeTarget( int, int ) | Removed. |
saveMesh( const char * ) | Removed. |
updateSurfaceBounds( int ) | Removed. |
setBoneFrameUses( int, int, ObjectMeshSkinned::FRAME_USES ) | Removed. Use setLayerBoneFrameUses( int, int, ObjectMeshSkinned::ANIM_FRAME_USES ) instead. |
getBoneFrameUses( int, int ) | Removed. Use getLayerBoneFrameUses( int, int ) instead. |
getIKChain( int ) | Removed. Use getIKChainID( int ) instead. |
setIKChainUsePoleVector( bool, int ) | Removed. Use setIKChainConstraint( ObjectMeshSkinned::CHAIN_CONSTRAINT, int ) instead. |
isIKChainUsePoleVector( int ) | Removed. Use getIKChainConstraint( int ) instead. |
New Functions
- INTERPOLATION_ACCURACY_LOW
- INTERPOLATION_ACCURACY_MEDIUM
- INTERPOLATION_ACCURACY_HIGH
- CHAIN_CONSTRAINT_NONE
- CHAIN_CONSTRAINT_POLE_VECTOR
- CHAIN_CONSTRAINT_BONE_ROTATIONS
- getBoneConstraintRollMaxAngle( int )
- getBoneConstraintRollMinAngle( int )
- setBoneConstraintRollAngles( float, float, int )
- getBoneConstraintPitchMaxAngle( int )
- getBoneConstraintPitchMinAngle( int )
- setBoneConstraintPitchAngles( float, float, int )
- getBoneConstraintYawMaxAngle( int )
- getBoneConstraintYawMinAngle( int )
- setBoneConstraintYawAngles( float, float, int )
- getBoneConstraintRollAxis( int )
- setBoneConstraintRollAxis( const Math::vec3 &, int )
- getBoneConstraintPitchAxis( int )
- setBoneConstraintPitchAxis( const Math::vec3 &, int )
- getBoneConstraintYawAxis( int )
- setBoneConstraintYawAxis( const Math::vec3 &, int )
- getBoneConstraintBoneIndex( int )
- isBoneConstraintEnabled( int )
- setBoneConstraintEnabled( bool, int )
- findBoneConstraint( const char * )
- findBoneConstraint( int )
- getNumBoneConstraints( )
- removeBoneConstraint( int )
- addBoneConstraint( const char * )
- addBoneConstraint( int )
- addIKChainBone( const char *, int )
- getIKChainConstraint( int )
- setIKChainConstraint( ObjectMeshSkinned::CHAIN_CONSTRAINT, int )
- getIKChainID( int )
- getLookAtChainPoleWorldPosition( int )
- setLookAtChainPoleWorldPosition( const Math::Vec3 &, int )
- getLookAtChainPolePosition( int )
- setLookAtChainPolePosition( const Math::Vec3 &, int )
- getLookAtChainTargetWorldPosition( int )
- setLookAtChainTargetWorldPosition( const Math::Vec3 &, int )
- getLookAtChainTargetPosition( int )
- setLookAtChainTargetPosition( const Math::Vec3 &, int )
- getLookAtChainBoneAxis( int, int )
- setLookAtChainBoneAxis( const Math::Vec3 &, int, int )
- getLookAtChainBoneUp( int, int )
- setLookAtChainBoneUp( const Math::Vec3 &, int, int )
- getLookAtChainBoneWeight( int, int )
- setLookAtChainBoneWeight( float, int, int )
- getLookAtChainBone( int, int )
- removeLookAtChainBone( int, int )
- getLookAtChainNumBones( int )
- addLookAtChainBone( const char *, int )
- addLookAtChainBone( int, int )
- getLookAtChainWeight( int )
- setLookAtChainWeight( float, int )
- getLookAtChainConstraint( int )
- setLookAtChainConstraint( ObjectMeshSkinned::CHAIN_CONSTRAINT, int )
- isLookAtChainEnabled( int )
- setLookAtChainEnabled( bool, int )
- getLookAtChainID( int )
- getNumLookAtChains( )
- removeLookAtChain( int )
- addLookAtChain( )
- clearVisualizeConstraint( )
- removeVisualizeConstraint( int )
- addVisualizeConstraint( int )
- clearVisualizeLookAtChain( )
- removeVisualizeLookAtChain( int )
- addVisualizeLookAtChain( int )
- getBoneSkiningTransform( int )
- getBoneBindObjectITransform( int )
- getBoneBindObjectTransform( int )
- getBoneBindLocalITransform( int )
- getBoneBindLocalTransform( int )
- getLayerAnimationResourceID( int )
- setLayerAnimationResourceID( int, long long )
- getLayerAnimationPath( int )
- setLayerAnimationPath( int, const char * )
- getAnimationResourceID( const char * )
- isRetargeting( const char *, const char * )
- getRetargeting( const char *, const char * )
- removeRetargeting( const char *, const char * )
- setRetargeting( const Ptr<BonesRetargeting> &, const char *, const char * )
- getLayerFrameTo( int )
- getLayerFrameFrom( int )
- getLayerFrame( int )
- setLayerFrame( int, float, int, int )
- getLayerNumFrames( int )
- getLayerBoneFrameUses( int, int )
- setLayerBoneFrameUses( int, int, ObjectMeshSkinned::ANIM_FRAME_USES )
- isLayerFrameUsesEnabled( int )
- setLayerFrameUsesEnabled( int, bool )
- getLayerBoneScale( int, int )
- setLayerBoneScale( int, int, const Math::vec3 & )
- getLayerBoneRotation( int, int )
- setLayerBoneRotation( int, int, const Math::quat & )
- getLayerBonePosition( int, int )
- setLayerBonePosition( int, int, const Math::vec3 & )
- isLayerBoneTransform( int, int )
- getLayerBoneTransform( int, int )
- setLayerBoneTransform( int, int, const Math::mat4 & )
- setLayerBoneTransformEnabled( int, int, bool )
- getSurfaceTargetWeight( int, int )
- setSurfaceTargetWeight( int, int, float )
- isSurfaceTargetEnabled( int, int )
- setSurfaceTargetEnabled( int, int, bool )
- getInterpolationAccuracy( )
- setInterpolationAccuracy( ObjectMeshSkinned::INTERPOLATION_ACCURACY )
- getAnimPath( )
- setAnimPath( const char * )
- isMeshProceduralMode( )
- setMeshProceduralMode( bool )
- isLoaded( )
- getMeshPath( )
- setMeshPath( const char * )
Package Class#
PackageUng Class#
Render Class#
UNIGINE 2.18.1 | UNIGINE 2.19 |
---|---|
Enum STREAMING_MESHES | Removed. |
Enum STREAMING_TEXTURES | Removed. |
setStreamingMaxThreads( int ) | Removed. |
getStreamingMaxThreads() | Removed. |
setStreamingBudgetLoading( float ) | Removed. |
getStreamingBudgetLoading() | Removed. |
setStreamingBudgetDestroyTextures( float ) | Removed. |
getStreamingBudgetDestroyTextures() | Removed. |
setStreamingBudgetDestroyMeshes( float ) | Removed. |
getStreamingBudgetDestroyMeshes() | Removed. |
setStreamingTexturesMemoryLimit( int ) | Removed. |
getStreamingTexturesMemoryLimit() | Removed. |
setStreamingTexturesLifeTime( int ) | Removed. |
getStreamingTexturesLifeTime() | Removed. |
setStreamingMeshesLimitVRAM( int ) | Removed. |
getStreamingMeshesLimitVRAM() | Removed. |
setStreamingMeshesLifeTimeVRAM( int ) | Removed. |
getStreamingMeshesLifeTimeVRAM() | Removed. |
setStreamingMeshesLimitRAM( int ) | Removed. |
getStreamingMeshesLimitRAM() | Removed. |
setStreamingMeshesLifeTimeRAM( int ) | Removed. |
getStreamingMeshesLifeTimeRAM() | Removed. |
getGPUMemory() | Removed. |
getGPUName() | Removed. |
setMaxNumActiveTargets( int ) | Removed. |
getMaxNumActiveTargets() | Removed. |
destroyCacheTexture( const UGUID& ) | Removed. |
createCacheTexture( const UGUID& ) | Removed. |
destroyCacheTextures( ) | Removed. |
unloadCacheTextures( ) | Removed. |
loadCacheTextures( ) | Removed. |
getCacheTexture( const UGUID &, bool ) | Set of arguments changed. |
getGLContext( ) | Removed. |
reloadCacheTexture( const UGUID & ) | Removed. |
New Functions
- STREAMING_MODE_ASYNC
- STREAMING_MODE_FORCE
- STREAMING_VRAM_BUDGET_SYSTEM
- STREAMING_VRAM_BUDGET_DRIVER
- STREAMING_VRAM_BUDGET_FULL_GPU_MEMORY
- SHOW_TEXTURE_RESOLUTION_STREAMING_ACCOUNTING_MODE_ACTUAL
- SHOW_TEXTURE_RESOLUTION_STREAMING_ACCOUNTING_MODE_REQUESTED
- SHOW_TEXTURE_RESOLUTION_STREAMING_ACCOUNTING_MODE_SOURCE
- MATERIALS_QUALITY_LOW
- MATERIALS_QUALITY_MEDIUM
- MATERIALS_QUALITY_HIGH
- getEventEndFrameExecuteCommandLists()
- getShowTextureResolutionStreamingAccountingMode( )
- setShowTextureResolutionStreamingAccountingMode( Render::SHOW_TEXTURE_RESOLUTION_STREAMING_ACCOUNTING )
- getIndirectLightingInterleavedSamples( )
- setIndirectLightingInterleavedSamples( int )
- getIndirectLightingInterleavedColorClamping( )
- setIndirectLightingInterleavedColorClamping( int )
- isIndirectLightingInterleavedCatmullResampling( )
- setIndirectLightingInterleavedCatmullResampling( bool )
- getLocalTonemapperColorDifferenceThreshold( )
- setLocalTonemapperColorDifferenceThreshold( float )
- isLocalTonemapperColorDifferenceEnabled( )
- setLocalTonemapperColorDifferenceEnabled( bool )
- isLocalTonemapperDepthDifferenceEnabled( )
- setLocalTonemapperDepthDifferenceEnabled( bool )
- getLocalTonemapperBlurUpscaleKernelSize( )
- setLocalTonemapperBlurUpscaleKernelSize( int )
- isLocalTonemapperBlurUpscale( )
- setLocalTonemapperBlurUpscale( bool )
- getLocalTonemapperBlurResolution( )
- setLocalTonemapperBlurResolution( int )
- isLocalTonemapperDebug( )
- setLocalTonemapperDebug( bool )
- getDenoiseColorClampingBlurResolution( )
- setDenoiseColorClampingBlurResolution( int )
- getDenoiseWrongVelocityFixByDepthThreshold( )
- setDenoiseWrongVelocityFixByDepthThreshold( float )
- isDenoiseWrongVelocityFixByDepthEnabled( )
- setDenoiseWrongVelocityFixByDepthEnabled( bool )
- getTAAInformationLostFrameCount( )
- setTAAInformationLostFrameCount( float )
- getTAAInformationLostDepthThreshold( )
- setTAAInformationLostDepthThreshold( float )
- getStreamingTexturesMipmapsDensity( )
- setStreamingTexturesMipmapsDensity( float )
- isStreamingTexturesMipmaps( )
- setStreamingTexturesMipmaps( bool )
- getStreamingVRAMUsageLimit( )
- setStreamingVRAMUsageLimit( int )
- getStreamingVRAMBudget( )
- setStreamingVRAMBudget( Render::STREAMING_VRAM_BUDGET )
- isStreamingVRAMOvercommit( )
- setStreamingVRAMOvercommit( bool )
- getStreamingFreeSpaceRAM( )
- setStreamingFreeSpaceRAM( int )
- getStreamingFreeSpaceVRAM( )
- setStreamingFreeSpaceVRAM( int )
- getMaterialsQuality( )
- setMaterialsQuality( Render::MATERIALS_QUALITY )
- memoryClear( )
Last update:
2024-06-07
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)