Creates a new model instance from a modelFile and adds it to the scene.

You must first load the model before you can create a model instance within your 3D scene. You may call this function before the model has finished downloading.

The model will be added to the scene at location (0,0,0) with the model::active state set to false. You must set this state to true before the model will be visible at all.

Syntax:

model addModel(String modelfilename)
Return: if successfull, a new model instance object
Parameters:
modelname

The short name of the modelFile you want create a model instance of.

See also:

Class script | Class model | Class modelFile |

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.