|
AR_Engine_SDK
|

Functions | |
| function XHitMeshInfo | new () end |
| @type boolean More... | |
| function XOutputVertexTransform | new (otherPosition, otherTangentZ, otherTangentX) end |
| function IXModelInstance | Release () end |
| function IXModelInstance | RayTraceToAABB (vStart, vDelta, fFraction) end |
| function IXModelInstance | RayTraceToAABB (vStart, vDelta) end |
| function IXModelInstance | RayTraceToMesh (vStart, vDelta, pOutTraceRt, bForceTwoSided) 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 (aOutObb) end |
| function IXModelInstance | GetBoneOBB () end |
| function IXModelInstance | GetMeshVertexDef (nSkinIndex, nLODIndex, nMeshIndex, bUseInstancedRender) end |
| function IXModelInstance | GetSkinModelType () end |
| function IXModelInstance | GetBoneAABB (szBoneName, aabb) 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 |
Variables | |
| XHitMeshInfo = {} | |
| XHitMeshInfo | strHitBoneName = '' |
| @type string More... | |
| XHitMeshInfo | strHitSkinName = '' |
| @type string More... | |
| XHitMeshInfo | strHitMeshName = '' |
| @type string More... | |
| XHitMeshInfo | pMeshMtlIns = {} |
| @type IXMaterialInstance More... | |
| function IXModelInstance ChangeSkeleton | ( | ) |
更换模型实例的骨架
| function IXModelInstance GetBlendMatrix | ( | nSkinIndex | , |
| nLODIndex | , | ||
| nMeshIndex | |||
| ) |
获取模型实例指定Mesh的骨架矩阵信息
| nSkinIndex | number Skin索引 |
| nLODIndex | number LOD索引 |
| nMeshIndex | number Mesh索引 |
| function IXModelInstance GetBlendShapeInstance | ( | ) |
获取模型Morph实例对象
| function IXModelInstance GetBoneAABB | ( | szBoneName | , |
| aabb | |||
| ) |
| function IXModelInstance GetBoneAABB | ( | szBoneName | ) |
| function IXModelInstance GetBoneOBB | ( | aOutObb | ) |
| function IXModelInstance GetBoneOBB | ( | ) |
IXModelInstance_GetBoneOBB01
| function IXModelInstance GetMeshVertexDef | ( | nSkinIndex | , |
| nLODIndex | , | ||
| nMeshIndex | , | ||
| bUseInstancedRender | |||
| ) |
获取模型某个Mesh的顶点描述信息
| nSkinIndex | number skin索引 |
| nLODIndex | number LOD索引 |
| nMeshIndex | number Mesh索引 |
| bUseInstancedRender | boolean 无效参数 |
| function IXModelInstance GetRawMeshMtlIns | ( | szSkinName | , |
| szMeshName | , | ||
| nLODIndex | |||
| ) |
IXModelInstance_GetRawMeshMtlIns00
| szSkinName | string |
| szMeshName | string |
| nLODIndex | number |
| function IXModelInstance GetSkeleton | ( | ) |
获取模型骨架对象
| function IXModelInstance GetSkinModel | ( | ) |
获取模型模板
| function IXModelInstance GetSkinModelType | ( | ) |
获取模型对应的类型
| function IXModelInstance Hide | ( | bHide | ) |
设置是否隐藏模型
| bHide | boolean 是否隐藏模型 |
| function IXModelInstance IsHidden | ( | ) |
判断模型是否隐藏
| function IXModelInstance IsMeshHide | ( | szMeshName | ) |
某个特定名称的mesh是否显示,不区分Skin
| szMeshName | string |
| function XHitMeshInfo new | ( | ) |
@type boolean
XHitMeshInfo_new00
XRAYTRACERT_new00
XOutputVertexTransform_new00
@type boolean @type XRectI @type XRectI @type IXTexture2D XSubviewBackgroundFillParam_new00
@type string @type boolean @type number @type number @type boolean @type number @type boolean @type boolean @type XSubviewBackgroundFillParam @type IXPrimitiveBase[] @type IXLightBase[] @type XBaseCamera XSubviewParamDesc_new00
IXModelInstance_new00
| function XOutputVertexTransform new | ( | otherPosition | , |
| otherTangentZ | , | ||
| otherTangentX | |||
| ) |
XOutputVertexTransform_new01
| otherPosition | XVECTOR3 |
| otherTangentZ | XVECTOR3 |
| otherTangentX | XVECTOR3 |
| function IXModelInstance RayTraceToAABB | ( | vStart | , |
| vDelta | , | ||
| fFraction | |||
| ) |
IXModelInstance_RayTraceToAABB00
| vStart | XVECTOR3 |
| vDelta | XVECTOR3 |
| fFraction | number |
| function IXModelInstance RayTraceToAABB | ( | vStart | , |
| vDelta | |||
| ) |
IXModelInstance_RayTraceToAABB01
| vStart | XVECTOR3 |
| vDelta | XVECTOR3 |
| function IXModelInstance RayTraceToMesh | ( | vStart | , |
| vDelta | , | ||
| pOutTraceRt | , | ||
| bForceTwoSided | |||
| ) |
IXModelInstance_RayTraceToMesh00
| vStart | XVECTOR3 |
| vDelta | XVECTOR3 |
| pOutTraceRt | XRAYTRACERT |
| bForceTwoSided | boolean |
| function IXModelInstance RayTraceToMesh | ( | vStart | , |
| vDelta | , | ||
| bForceTwoSided | |||
| ) |
IXModelInstance_RayTraceToMesh01
| vStart | XVECTOR3 |
| vDelta | XVECTOR3 |
| bForceTwoSided | boolean |
| function IXModelInstance Release | ( | ) |
释放模型实例资源
| function IXModelInstance SetMeshAsCloth | ( | szMeshName | , |
| bIsCloth | |||
| ) |
设置指定Mesh为布料Mesh
| szMeshName | string 指定Mesh名称 |
| bIsCloth | boolean 是否为布料Mesh |
| function IXModelInstance SetMeshHide | ( | szMeshName | , |
| bHide | |||
| ) |
设置某个特定名称的mesh隐藏或显示,不区分Skin
| szMeshName | string |
| bHide | boolean 是否隐藏模型 |
| function IXModelInstance SetRawMeshMtlIns | ( | szSkinName | , |
| szMeshName | , | ||
| szMtlIns | , | ||
| nLODIndex | |||
| ) |
IXModelInstance_SetRawMeshMtlIns00
| szSkinName | string |
| szMeshName | string |
| szMtlIns | string |
| nLODIndex | number |
| function IXModelInstance SetSkinCurrentLOD | ( | szSkinName | , |
| nLODIndex | |||
| ) |
设置模型指定Skin使用的当前LOD
| szSkinName | string Skin名称 |
| nLODIndex | number LOD索引 |
| function IXModelInstance SetSubviewBackgroundFillParam | ( | param | ) |
IXModelInstance_SetSubviewBackgroundFillParam00
| param | XSubviewBackgroundFillParam |
| function IXModelInstance SetupSubview | ( | subViewParamDesc | ) |
| function IXModelInstance Tick | ( | nDeltaTime | , |
| bClearPreMatrix | |||
| ) |
更新当前模型实例
| nDeltaTime | number 更新间隔 |
| bClearPreMatrix | boolean 是否清除之前的矩阵信息 |
| function IXModelInstance TickAABB | ( | ) |
更新模型实例的AABB包围盒
| function IXModelInstance UpdateBlendMatrix | ( | bClearPreMatrix | ) |
更新模型实例的骨架矩阵信息
| bClearPreMatrix | boolean 是否清除上一帧的矩阵信息 |
| function IXModelInstance UpdateBlendMatrixAndAABB | ( | ) |
更新模型实例的融合矩阵和AABB包围盒
| function IXModelInstance UpdateSkinInfoAndMeshInfo | ( | ) |
更新模型实例的Skin信息和Mesh信息
| XHitMeshInfo pMeshMtlIns = {} |
@type IXMaterialInstance
| XHitMeshInfo strHitBoneName = '' |
@type string
| XHitMeshInfo strHitMeshName = '' |
@type string
| XHitMeshInfo strHitSkinName = '' |
@type string
| XHitMeshInfo = {} |
1.8.15