| Description | uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables |
Converting 3D models to VRML. Converts models in various formats to one or more (static or animation) VRML nodes.
Note: for VRML 1.0, remember that you may want to embed returned TVRMLNode objects inside VRML Separator node before inserting it into some existing VRML scene.
function LoadGEOAsVRML(const filename: string): TVRMLNode; |
function LoadOBJAsVRML(const filename: string): TVRMLNode; |
function Load3dsAsVRML(const filename: string): TVRMLNode; |
function LoadMD3AsVRML(const FileName: string): TVRMLNode; |
function LoadMD3FrameAsVRML(Md3: TObject3dMD3; FrameNumber: Cardinal; const WWWBasePath: string): TVRMLNode; |
procedure LoadMD3AsVRMLSequence( const FileName: string; RootNodes: TVRMLNodesList; Times: TDynSingleArray; out ScenesPerTime: Cardinal; var Optimization: TGLRendererOptimization; out EqualityEpsilon: Single; out TimeLoop, TimeBackwards: boolean); |
function LoadAsVRML(const filename: string; AllowStdIn: boolean = false): TVRMLNode; |
procedure LoadAsVRMLSequence( const FileName: string; AllowStdIn: boolean; RootNodes: TVRMLNodesList; Times: TDynSingleArray; out ScenesPerTime: Cardinal; var Optimization: TGLRendererOptimization; out EqualityEpsilon: Single; out TimeLoop, TimeBackwards: boolean); |
function LoadGEOAsVRML(const filename: string): TVRMLNode; |
function LoadOBJAsVRML(const filename: string): TVRMLNode; |
function Load3dsAsVRML(const filename: string): TVRMLNode; |
function LoadMD3AsVRML(const FileName: string): TVRMLNode; |
function LoadMD3FrameAsVRML(Md3: TObject3dMD3; FrameNumber: Cardinal; const WWWBasePath: string): TVRMLNode; |
|
Load a specific animation frame from a given Md3 model. Parameters
|
procedure LoadMD3AsVRMLSequence( const FileName: string; RootNodes: TVRMLNodesList; Times: TDynSingleArray; out ScenesPerTime: Cardinal; var Optimization: TGLRendererOptimization; out EqualityEpsilon: Single; out TimeLoop, TimeBackwards: boolean); |
|
This is much like LoadAsVRMLSequence, but it only handles MD3 files. Usually you want to use LoadAsVRMLSequence, not this procedure. |
function LoadAsVRML(const filename: string; AllowStdIn: boolean = false): TVRMLNode; |
|
This guesses model format basing on ExtractFileExt(filename), then loads model converting it to VRML with appropriate LoadXxxAsVRML functions above in this unit or using ParseVRMLFile if this seems to be a VRML file. If AllowStdIn and FileName = '-' then it will load a VRML file from StdInStream (using GetCurrentDir as WWWBasePath). |
procedure LoadAsVRMLSequence( const FileName: string; AllowStdIn: boolean; RootNodes: TVRMLNodesList; Times: TDynSingleArray; out ScenesPerTime: Cardinal; var Optimization: TGLRendererOptimization; out EqualityEpsilon: Single; out TimeLoop, TimeBackwards: boolean); |
|
Load various model formats as animation expressed by VRML sequence. For model formats that cannot express animations (like GEO or Wavefront OBJ) or that express animations in a single VRML file (like VRML > 2.0) this just loads them like LoadAsVRML, adding exactly one item to RootNodes. This guarantees that this function handles at least the same model formats as LoadAsVRML — but actually it may handle more. And indeed, it currently handles kanim, that is completely unrecognized by LoadAsVRML. This handles animations in kanim and MD3 formats.
Parameters
|