Load a model file from a memory buffer
| <viz>.addChildFromBuffer( | |
| filename | |
| buffer | |
| parent = viz.WORLD | |
| scene = viz.MainScene | |
| flags = 0 | |
| ) | 
Buffer flags  | |
viz.BUFFER_MMAP  | Load buffer through a memory mapped file. This can be used in cluster mode to have the master transfer the file contents to the clients at runtime.  | 
Load Flag  | Description  | 
viz.LOAD_ASYNC  | Load the model asynchronously. See remarks below.  | 
viz.LOAD_IGNORE_LIGHTS  | Ignore all lights in the model.  | 
viz.LOAD_IGNORE_SCENE_SETTINGS  | Ignore scene settings embedded in the model.  | 
Rotate Mode  | Description  | 
viz.ROTATE_DEFAULT  | Automatically detect the coordinate frame based on the file type.  | 
viz.ROTATE_NONE  | Do not rotate the model.  | 
viz.ROTATE_Y_UP  | Rotate the model from a Y-up coordinate frame.  | 
viz.ROTATE_Z_UP  | Rotate the model from a Z-up coordinate frame.  | 
osgb
osgt
ive
osg
3ds
dae
obj
flt
Note: When loading asynchronously, most node commands will not work properly until the asynchronous operation has completed successfully.