public class CameraHelper extends AbstractBlenderHelper
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_CAM_HEIGHT |
protected static int |
DEFAULT_CAM_WIDTH |
blenderContext, blenderVersion, fixUpAxis, upAxisRotationQuaternion| Constructor and Description |
|---|
CameraHelper(java.lang.String blenderVersion,
BlenderContext blenderContext)
This constructor parses the given blender version and stores the result.
|
| Modifier and Type | Method and Description |
|---|---|
Camera |
toCamera(Structure structure,
BlenderContext blenderContext)
This method converts the given structure to jme camera.
|
applyProperties, loadLibrary, loadPropertiesprotected static final int DEFAULT_CAM_WIDTH
protected static final int DEFAULT_CAM_HEIGHT
public CameraHelper(java.lang.String blenderVersion,
BlenderContext blenderContext)
blenderVersion - the version read from the blend fileblenderContext - the blender contextpublic Camera toCamera(Structure structure, BlenderContext blenderContext) throws BlenderFileException
structure - camera structureBlenderFileException - an exception is thrown when there are problems with the
blender file