#include <XModelInstance.h>
#include <XModelInstance.h>

|
function XHitMeshInfo | new () end |
| @type boolean
|
|
function XOutputVertexTransform | new (otherPosition, otherTangentZ, otherTangentX) end |
|
function IXModelInstance | Release () end |
|
function IXModelInstance | RayTraceToAABB (vStart, vDelta) end |
|
function IXModelInstance | RayTraceToMesh (vStart, vDelta, bForceTwoSided) end |
|
function IXModelInstance | Hide (bHide) end |
|
function IXModelInstance | IsHidden () end |
|
function IXModelInstance | SetMeshHide (szMeshName, bHide) end |
|
function IXModelInstance | IsMeshHide (szMeshName) end |
|
function IXModelInstance | GetSkinModel () end |
|
function IXModelInstance | GetSkeleton () end |
|
function IXModelInstance | GetBoneOBB () end |
|
function IXModelInstance | GetMeshVertexDef (nSkinIndex, nLODIndex, nMeshIndex, bUseInstancedRender) end |
|
function IXModelInstance | GetSkinModelType () end |
|
function IXModelInstance | GetBoneAABB (szBoneName) end |
|
function IXModelInstance | UpdateSkinInfoAndMeshInfo () end |
|
function IXModelInstance | ChangeSkeleton () end |
|
function IXModelInstance | UpdateBlendMatrix (bClearPreMatrix) end |
|
function IXModelInstance | GetBlendMatrix (nSkinIndex, nLODIndex, nMeshIndex) end |
|
function IXModelInstance | UpdateBlendMatrixAndAABB () end |
|
function IXModelInstance | SetSkinCurrentLOD (szSkinName, nLODIndex) end |
|
function IXModelInstance | Tick (nDeltaTime, bClearPreMatrix) end |
|
function IXModelInstance | SetMeshAsCloth (szMeshName, bIsCloth) end |
|
function IXModelInstance | GetBlendShapeInstance () end |
|
function IXModelInstance | TickAABB () end |
|
function IXModelInstance | SetRawMeshMtlIns (szSkinName, szMeshName, szMtlIns, nLODIndex) end |
|
function IXModelInstance | GetRawMeshMtlIns (szSkinName, szMeshName, nLODIndex) end |
|
function IXModelInstance | SetupSubview (subViewParamDesc) end |
|
function IXModelInstance | SetSubviewBackgroundFillParam (param) end |
|
◆ ChangeSkeleton()
◆ GetBlendMatrix()
function IXModelInstance GetBlendMatrix |
( |
nSkinIndex |
, |
|
|
nLODIndex |
, |
|
|
nMeshIndex |
|
|
) |
| |
获取模型实例指定Mesh的骨架矩阵信息
- 参数
-
nSkinIndex | number Skin索引 |
nLODIndex | number LOD索引 |
nMeshIndex | number Mesh索引 |
- 返回
- XVECTOR4[] 骨架矩阵(类型XArray<XVECTOR4>)
◆ GetBlendShapeInstance()
获取模型Morph实例对象
- 返回
- XBlendShapeInstance 模型Morph实例对象
◆ GetBoneAABB()
IXModelInstance_GetBoneAABB00
- 参数
-
- 返回
- XCusAABB
-
boolean
◆ GetBoneOBB()
IXModelInstance_GetBoneOBB00
- 返回
- XCusOBB[]
-
void
◆ GetMeshVertexDef()
function IXModelInstance GetMeshVertexDef |
( |
nSkinIndex |
, |
|
|
nLODIndex |
, |
|
|
nMeshIndex |
, |
|
|
bUseInstancedRender |
|
|
) |
| |
获取模型某个Mesh的顶点描述信息
- 参数
-
nSkinIndex | number skin索引 |
nLODIndex | number LOD索引 |
nMeshIndex | number Mesh索引 |
bUseInstancedRender | boolean 无效参数 |
- 返回
- IXVertexDesc 定点数据信息对象
◆ GetRawMeshMtlIns()
function IXModelInstance GetRawMeshMtlIns |
( |
szSkinName |
, |
|
|
szMeshName |
, |
|
|
nLODIndex |
|
|
) |
| |
IXModelInstance_GetRawMeshMtlIns00
- 参数
-
szSkinName | string |
szMeshName | string |
nLODIndex | number |
- 返回
- IXMaterialInstance
◆ GetSkeleton()
◆ GetSkinModel()
◆ GetSkinModelType()
获取模型对应的类型
- 返回
- number 模型对应的类型
◆ Hide()
◆ IsHidden()
判断模型是否隐藏
- 返回
- boolean 模型是否隐藏,如果是隐藏状态,返回xtrue.
◆ IsMeshHide()
某个特定名称的mesh是否显示,不区分Skin
- 参数
-
- 返回
- boolean mesh是否隐藏
◆ new() [1/2]
◆ new() [2/2]
◆ RayTraceToAABB()
IXModelInstance_RayTraceToAABB00
- 参数
-
- 返回
- number
-
boolean
◆ RayTraceToMesh()
function IXModelInstance RayTraceToMesh |
( |
vStart |
, |
|
|
vDelta |
, |
|
|
bForceTwoSided |
|
|
) |
| |
IXModelInstance_RayTraceToMesh00
- 参数
-
- 返回
- XRAYTRACERT
-
boolean
◆ Release()
◆ SetMeshAsCloth()
设置指定Mesh为布料Mesh
- 参数
-
szMeshName | string 指定Mesh名称 |
bIsCloth | boolean 是否为布料Mesh |
- 返回
- void
◆ SetMeshHide()
设置某个特定名称的mesh隐藏或显示,不区分Skin
- 参数
-
szMeshName | string |
bHide | boolean 是否隐藏模型 |
- 返回
- void
◆ SetRawMeshMtlIns()
function IXModelInstance SetRawMeshMtlIns |
( |
szSkinName |
, |
|
|
szMeshName |
, |
|
|
szMtlIns |
, |
|
|
nLODIndex |
|
|
) |
| |
IXModelInstance_SetRawMeshMtlIns00
- 参数
-
szSkinName | string |
szMeshName | string |
szMtlIns | string |
nLODIndex | number |
- 返回
- void
◆ SetSkinCurrentLOD()
设置模型指定Skin使用的当前LOD
- 参数
-
szSkinName | string Skin名称 |
nLODIndex | number LOD索引 |
- 返回
- void
◆ SetSubviewBackgroundFillParam()
IXModelInstance_SetSubviewBackgroundFillParam00
- 参数
-
- 返回
- void
◆ SetupSubview()
IXModelInstance_SetupSubview00
- 参数
-
- 返回
- void
◆ Tick()
更新当前模型实例
- 参数
-
nDeltaTime | number 更新间隔 |
bClearPreMatrix | boolean 是否清除之前的矩阵信息 |
- 返回
- void
◆ TickAABB()
◆ UpdateBlendMatrix()
更新模型实例的骨架矩阵信息
- 参数
-
bClearPreMatrix | boolean 是否清除上一帧的矩阵信息 |
- 返回
- void
◆ UpdateBlendMatrixAndAABB()
更新模型实例的融合矩阵和AABB包围盒
- 返回
- void
◆ UpdateSkinInfoAndMeshInfo()
更新模型实例的Skin信息和Mesh信息
- 返回
- void
◆ pMeshMtlIns
◆ strHitBoneName
◆ strHitMeshName
◆ strHitSkinName
◆ XHitMeshInfo