2022-06-18 09:09:09 +00:00
|
|
|
/*
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Doom 3 BFG Edition GPL Source Code
|
|
|
|
Copyright (C) 2022 Harrie van Ginneken
|
|
|
|
Copyright (C) 2022 Robert Beckebans
|
|
|
|
|
|
|
|
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
|
|
|
|
|
|
|
|
Doom 3 BFG Edition Source Code is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Doom 3 BFG Edition Source Code is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Doom 3 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
In addition, the Doom 3 BFG Edition Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 BFG Edition Source Code. If not, please request a copy in writing from id Software at the address below.
|
|
|
|
|
|
|
|
If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
*/
|
2022-06-05 22:39:04 +00:00
|
|
|
|
|
|
|
#include "precompiled.h"
|
|
|
|
#pragma hdrstop
|
|
|
|
|
|
|
|
|
|
|
|
#include "Model_gltf.h"
|
|
|
|
#include "Model_local.h"
|
2022-06-17 23:18:28 +00:00
|
|
|
#include "RenderCommon.h"
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
idCVar gltf_ForceBspMeshTexture( "gltf_ForceBspMeshTexture", "0", CVAR_SYSTEM | CVAR_BOOL, "all world geometry has the same forced texture" );
|
2022-06-19 23:12:45 +00:00
|
|
|
idCVar gltf_ModelSceneName( "gltf_ModelSceneName", "models", CVAR_SYSTEM , "Scene to use when loading specific models" );
|
2022-06-17 23:18:28 +00:00
|
|
|
|
2022-06-21 20:07:27 +00:00
|
|
|
|
|
|
|
static const byte GLMB_VERSION = 100;
|
|
|
|
static const unsigned int GLMB_MAGIC = ( 'M' << 24 ) | ( 'L' << 16 ) | ( 'G' << 8 ) | GLMB_VERSION;
|
|
|
|
|
2022-06-06 14:13:32 +00:00
|
|
|
bool idRenderModelStatic::ConvertGltfMeshToModelsurfaces( const gltfMesh* mesh )
|
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:36:48 +00:00
|
|
|
void idRenderModelGLTF::ProcessNode( gltfNode* modelNode, idMat4 trans, gltfData* data )
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
auto& meshList = data->MeshList();
|
2022-06-18 08:43:30 +00:00
|
|
|
auto& nodeList = data->NodeList();
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
gltfData::ResolveNodeMatrix( modelNode );
|
|
|
|
idMat4 curTrans = trans * modelNode->matrix;
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-20 20:25:52 +00:00
|
|
|
gltfMesh* targetMesh = meshList[modelNode->mesh];
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:36:48 +00:00
|
|
|
for( auto prim : targetMesh->primitives )
|
|
|
|
{
|
|
|
|
auto* newMesh = MapPolygonMesh::ConvertFromMeshGltf( prim, data, curTrans );
|
2022-06-17 23:18:28 +00:00
|
|
|
modelSurface_t surf;
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:36:48 +00:00
|
|
|
gltfMaterial* mat = NULL;
|
|
|
|
if( prim->material != -1 )
|
|
|
|
{
|
2022-06-18 08:43:30 +00:00
|
|
|
mat = data->MaterialList()[prim->material];
|
2022-06-17 23:18:28 +00:00
|
|
|
}
|
2022-06-18 08:43:30 +00:00
|
|
|
if( mat != NULL && !gltf_ForceBspMeshTexture.GetBool() )
|
2022-06-18 08:36:48 +00:00
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
surf.shader = declManager->FindMaterial( mat->name );
|
2022-06-18 08:36:48 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
surf.shader = declManager->FindMaterial( "textures/base_wall/snpanel2rust" );
|
|
|
|
}
|
2022-06-18 08:43:30 +00:00
|
|
|
surf.id = this->NumSurfaces();
|
2022-06-17 23:18:28 +00:00
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
srfTriangles_t* tri = R_AllocStaticTriSurf();
|
|
|
|
tri->numIndexes = newMesh->GetNumPolygons() * 3;
|
|
|
|
tri->numVerts = newMesh->GetNumVertices();
|
2022-06-17 23:18:28 +00:00
|
|
|
|
|
|
|
R_AllocStaticTriSurfIndexes( tri, tri->numIndexes );
|
|
|
|
R_AllocStaticTriSurfVerts( tri, tri->numVerts );
|
|
|
|
|
|
|
|
int indx = 0;
|
2022-06-18 08:43:30 +00:00
|
|
|
for( int i = 0; i < newMesh->GetNumPolygons(); i++ )
|
2022-06-18 08:36:48 +00:00
|
|
|
{
|
|
|
|
auto& face = newMesh->GetFace( i );
|
2022-06-18 08:43:30 +00:00
|
|
|
auto& faceIdxs = face.GetIndexes();
|
2022-06-17 23:18:28 +00:00
|
|
|
tri->indexes[indx] = faceIdxs[0];
|
|
|
|
tri->indexes[indx + 1] = faceIdxs[1];
|
|
|
|
tri->indexes[indx + 2] = faceIdxs[2];
|
|
|
|
indx += 3;
|
|
|
|
}
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:36:48 +00:00
|
|
|
for( int i = 0; i < tri->numVerts; ++i )
|
|
|
|
{
|
2022-06-18 08:43:30 +00:00
|
|
|
tri->verts[i] = newMesh->GetDrawVerts()[i];
|
2022-06-17 23:18:28 +00:00
|
|
|
tri->bounds.AddPoint( tri->verts[i].xyz );
|
|
|
|
}
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
bounds.AddBounds( tri->bounds );
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
surf.geometry = tri;
|
|
|
|
AddSurface( surf );
|
|
|
|
}
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:36:48 +00:00
|
|
|
for( auto& child : modelNode->children )
|
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
ProcessNode( nodeList[child], curTrans, data );
|
|
|
|
}
|
2022-06-05 22:39:04 +00:00
|
|
|
}
|
|
|
|
|
2022-06-21 20:07:27 +00:00
|
|
|
|
|
|
|
void idRenderModelGLTF::MakeMD5Mesh( )
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
//constructs a renderModel from a gltfScene node found in the "models" scene of the given gltfFile.
|
2022-06-20 20:25:52 +00:00
|
|
|
// override with gltf_ModelSceneName
|
2022-06-17 23:18:28 +00:00
|
|
|
// warning : nodeName cannot have dots!
|
|
|
|
//[fileName].[nodeName/nodeId].[gltf/glb]
|
2022-06-19 23:12:45 +00:00
|
|
|
//If no nodeName/nodeId is given, all primitives active in default scene will be added as surfaces.
|
2022-06-17 23:18:28 +00:00
|
|
|
void idRenderModelGLTF::InitFromFile( const char* fileName )
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-21 20:07:27 +00:00
|
|
|
fileExclusive = false;
|
|
|
|
root = nullptr;
|
2022-06-17 23:18:28 +00:00
|
|
|
int meshID = -1;
|
|
|
|
idStr meshName;
|
|
|
|
idStr gltfFileName = idStr( fileName );
|
2022-06-21 20:07:27 +00:00
|
|
|
|
2022-06-19 19:58:43 +00:00
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
gltfManager::ExtractMeshIdentifier( gltfFileName, meshID, meshName );
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
if( gltfParser->currentFile.Length() )
|
2022-06-17 23:18:28 +00:00
|
|
|
{
|
|
|
|
if( gltfParser->currentAsset && gltfParser->currentFile != gltfFileName )
|
|
|
|
{
|
|
|
|
common->FatalError( "multiple GLTF file loading not supported" );
|
|
|
|
}
|
|
|
|
}
|
2022-06-20 20:25:52 +00:00
|
|
|
else
|
2022-06-19 19:58:43 +00:00
|
|
|
{
|
|
|
|
gltfParser->Load( gltfFileName );
|
|
|
|
}
|
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
timeStamp = fileSystem->GetTimestamp( gltfFileName );
|
2022-06-21 20:07:27 +00:00
|
|
|
data = gltfParser->currentAsset;
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
bounds.Clear();
|
2022-06-20 20:25:52 +00:00
|
|
|
|
2022-06-19 20:19:27 +00:00
|
|
|
int sceneId = data->DefaultScene();
|
2022-06-17 23:18:28 +00:00
|
|
|
|
2022-06-19 20:19:27 +00:00
|
|
|
assert( sceneId >= 0 );
|
2022-06-19 19:58:43 +00:00
|
|
|
|
2022-06-20 20:25:52 +00:00
|
|
|
if( !meshName[0] )
|
2022-06-19 20:19:27 +00:00
|
|
|
{
|
2022-06-20 20:25:52 +00:00
|
|
|
auto& nodeList = data->NodeList();
|
2022-06-19 20:19:27 +00:00
|
|
|
for( auto& nodeID : data->SceneList()[sceneId]->nodes )
|
|
|
|
{
|
2022-06-20 20:25:52 +00:00
|
|
|
gltfNode* modelNode = nodeList[nodeID];
|
|
|
|
assert( modelNode );
|
2022-06-19 20:19:27 +00:00
|
|
|
ProcessNode( modelNode, mat4_identity, data );
|
2022-06-19 19:58:43 +00:00
|
|
|
}
|
2022-06-21 20:07:27 +00:00
|
|
|
fileExclusive = true;
|
2022-06-18 08:36:48 +00:00
|
|
|
}
|
2022-06-17 23:18:28 +00:00
|
|
|
else
|
2022-06-18 08:36:48 +00:00
|
|
|
{
|
2022-06-20 20:25:52 +00:00
|
|
|
gltfNode* modelNode = data->GetNode( gltf_ModelSceneName.GetString(), meshName );
|
|
|
|
if( modelNode )
|
2022-06-19 20:19:27 +00:00
|
|
|
{
|
2022-06-21 20:07:27 +00:00
|
|
|
root = modelNode;
|
2022-06-19 20:19:27 +00:00
|
|
|
ProcessNode( modelNode, mat4_identity, data );
|
|
|
|
}
|
2022-06-21 20:07:27 +00:00
|
|
|
|
2022-06-18 08:36:48 +00:00
|
|
|
}
|
2022-06-17 23:18:28 +00:00
|
|
|
|
2022-06-20 20:25:52 +00:00
|
|
|
if( surfaces.Num( ) <= 0 )
|
|
|
|
{
|
2022-06-19 20:19:27 +00:00
|
|
|
common->Warning( "Couldn't load model: '%s'", name.c_str( ) );
|
|
|
|
MakeDefaultModel( );
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-06-20 22:20:25 +00:00
|
|
|
// derive mikktspace tangents from normals
|
|
|
|
FinishSurfaces( true );
|
|
|
|
|
2022-06-19 20:19:27 +00:00
|
|
|
// it is now available for use
|
|
|
|
purged = false;
|
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
//skin
|
|
|
|
//gltfNode * modelNode = data->GetNode(data->SceneList()[data->GetSceneId("models")],targetMesh);
|
|
|
|
//__debugbreak();
|
2022-06-05 22:39:04 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
bool idRenderModelGLTF::LoadBinaryModel( idFile* file, const ID_TIME_T sourceTimeStamp )
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-21 20:07:27 +00:00
|
|
|
|
|
|
|
if ( !idRenderModelStatic::LoadBinaryModel( file, sourceTimeStamp ) ) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
2022-06-05 22:39:04 +00:00
|
|
|
}
|
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
void idRenderModelGLTF::WriteBinaryModel( idFile* file, ID_TIME_T* _timeStamp /*= NULL */ ) const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-21 20:07:27 +00:00
|
|
|
|
|
|
|
idRenderModelStatic::WriteBinaryModel( file );
|
|
|
|
|
|
|
|
if ( file == NULL || root == nullptr) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
//file->WriteBig( GLMB_MAGIC );
|
|
|
|
|
|
|
|
////check if this model has a skeleton
|
|
|
|
//if ( root->skin >= 0 )
|
|
|
|
//{
|
|
|
|
// gltfSkin * skin = data->SkinList()[root->skin];
|
|
|
|
// auto & nodeList = data->NodeList();
|
|
|
|
|
|
|
|
// file->WriteBig( skin->joints.Num( ) );
|
|
|
|
// for ( int i = 0; i < skin->joints.Num( ); i++ ) {
|
|
|
|
// gltfNode & target = *nodeList[skin->joints[i]];
|
|
|
|
// file->WriteString( target.name );
|
|
|
|
// int offset = -1;
|
|
|
|
// if ( target.parent != NULL ) {
|
|
|
|
// offset = target.parent - skin->joints.Ptr( );
|
|
|
|
// }
|
|
|
|
// file->WriteBig( offset );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// file->WriteBig( defaultPose.Num( ) );
|
|
|
|
// for ( int i = 0; i < defaultPose.Num( ); i++ ) {
|
|
|
|
// file->WriteBig( defaultPose[i].q.x );
|
|
|
|
// file->WriteBig( defaultPose[i].q.y );
|
|
|
|
// file->WriteBig( defaultPose[i].q.z );
|
|
|
|
// file->WriteBig( defaultPose[i].q.w );
|
|
|
|
// file->WriteVec3( defaultPose[i].t );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// file->WriteBig( invertedDefaultPose.Num( ) );
|
|
|
|
// for ( int i = 0; i < invertedDefaultPose.Num( ); i++ ) {
|
|
|
|
// file->WriteBigArray( invertedDefaultPose[i].ToFloatPtr( ), JOINTMAT_TYPESIZE );
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//file->WriteBig( meshes.Num( ) );
|
|
|
|
//for ( int i = 0; i < meshes.Num( ); i++ ) {
|
|
|
|
|
|
|
|
// if ( meshes[i].shader != NULL && meshes[i].shader->GetName( ) != NULL ) {
|
|
|
|
// file->WriteString( meshes[i].shader->GetName( ) );
|
|
|
|
// } else {
|
|
|
|
// file->WriteString( "" );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// file->WriteBig( meshes[i].numVerts );
|
|
|
|
// file->WriteBig( meshes[i].numTris );
|
|
|
|
|
|
|
|
// file->WriteBig( meshes[i].numMeshJoints );
|
|
|
|
// file->WriteBigArray( meshes[i].meshJoints, meshes[i].numMeshJoints );
|
|
|
|
// file->WriteBig( meshes[i].maxJointVertDist );
|
|
|
|
|
|
|
|
// deformInfo_t &deform = *meshes[i].deformInfo;
|
|
|
|
|
|
|
|
// file->WriteBig( deform.numSourceVerts );
|
|
|
|
// file->WriteBig( deform.numOutputVerts );
|
|
|
|
// file->WriteBig( deform.numIndexes );
|
|
|
|
// file->WriteBig( deform.numMirroredVerts );
|
|
|
|
// file->WriteBig( deform.numDupVerts );
|
|
|
|
// file->WriteBig( deform.numSilEdges );
|
|
|
|
|
|
|
|
// if ( deform.numOutputVerts > 0 ) {
|
|
|
|
// file->WriteBigArray( deform.verts, deform.numOutputVerts );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if ( deform.numIndexes > 0 ) {
|
|
|
|
// file->WriteBigArray( deform.indexes, deform.numIndexes );
|
|
|
|
// file->WriteBigArray( deform.silIndexes, deform.numIndexes );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if ( deform.numMirroredVerts > 0 ) {
|
|
|
|
// file->WriteBigArray( deform.mirroredVerts, deform.numMirroredVerts );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if ( deform.numDupVerts > 0 ) {
|
|
|
|
// file->WriteBigArray( deform.dupVerts, deform.numDupVerts * 2 );
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if ( deform.numSilEdges > 0 ) {
|
|
|
|
// for ( int j = 0; j < deform.numSilEdges; j++ ) {
|
|
|
|
// file->WriteBig( deform.silEdges[j].p1 );
|
|
|
|
// file->WriteBig( deform.silEdges[j].p2 );
|
|
|
|
// file->WriteBig( deform.silEdges[j].v1 );
|
|
|
|
// file->WriteBig( deform.silEdges[j].v2 );
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// file->WriteBig( meshes[i].surfaceNum );
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-05 22:39:04 +00:00
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
void idRenderModelGLTF::PurgeModel()
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
common->Warning( "idRenderModelGLTF::PurgeModel is not implemented." );
|
2022-06-05 22:39:04 +00:00
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
void idRenderModelGLTF::LoadModel()
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
void idRenderModelGLTF::TouchData()
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
}
|
|
|
|
|
2022-06-17 23:18:28 +00:00
|
|
|
/*
|
|
|
|
void idRenderModelGLTF::CreateBuffers()
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
}
|
2022-06-17 23:18:28 +00:00
|
|
|
*/
|
2022-06-05 22:39:04 +00:00
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
void idRenderModelGLTF::Print() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
void idRenderModelGLTF::List() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
int idRenderModelGLTF::Memory() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
dynamicModel_t idRenderModelGLTF::IsDynamicModel() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
return DM_STATIC;
|
2022-06-05 22:39:04 +00:00
|
|
|
}
|
|
|
|
|
2022-06-06 14:13:32 +00:00
|
|
|
idRenderModel* idRenderModelGLTF::InstantiateDynamicModel( const struct renderEntity_s* ent, const viewDef_t* view, idRenderModel* cachedModel )
|
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
int idRenderModelGLTF::NumJoints() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
const idMD5Joint* idRenderModelGLTF::GetJoints() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2022-06-06 14:13:32 +00:00
|
|
|
jointHandle_t idRenderModelGLTF::GetJointHandle( const char* name ) const
|
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return jointHandle_t();
|
|
|
|
}
|
|
|
|
|
2022-06-06 14:13:32 +00:00
|
|
|
const char* idRenderModelGLTF::GetJointName( jointHandle_t handle ) const
|
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2022-06-18 08:43:30 +00:00
|
|
|
const idJointQuat* idRenderModelGLTF::GetDefaultPose() const
|
2022-06-06 14:13:32 +00:00
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2022-06-06 14:13:32 +00:00
|
|
|
int idRenderModelGLTF::NearestJoint( int surfaceNum, int a, int b, int c ) const
|
|
|
|
{
|
2022-06-05 22:39:04 +00:00
|
|
|
common->Warning( "The method or operation is not implemented." );
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2022-06-06 14:13:32 +00:00
|
|
|
idBounds idRenderModelGLTF::Bounds( const struct renderEntity_s* ent ) const
|
|
|
|
{
|
2022-06-17 23:18:28 +00:00
|
|
|
return bounds;
|
|
|
|
}
|