Papervision3D Exporter for Blender
Software Package:
The Papervision3D exporter will export your Blender models into native ActionScript classes for Papervision3D.
Features
- Export numerous object types including:
- Cameras
- Empties
- Meshes
- Automatically convert quads to triangles on the fly. No need to convert to triangles before export.
- Automatically export vectors in the correct order to display as single-sided meshes in Papervision3D.
- Export single objects or entire scenes.
- Scale object vectors automatically.
- Export UV coordinates for mapping meshes.
- Export objects with convenience function for getting object width, height, and depth.
- Automatically converts from native Blender Z-Up to Papervision3D Y-Up.
- Examples included in the package.
Installation
To install, simply copy the src/pv3d_export.py script from the archive file into your blender scripts directory. If Blender is currently running, you must restart it.
- In Linux, you will find this under .blender/scripts in your home directory.
To Use
The Papervision3D Exporter is simple to use:
- Model your scene including any necessary UV maps.
- Select Papervison3D Export (.as)... from the File -> Export menu.
- Toggle "Selection Only" if you only wish to export the objects currently selected in the scene.
- Enter the package name for your objects in the first text box.
- Choose a path to export the objects to.
- Specify a Vector Scale, or simply use the default.
- Press the "Export" button.
Several ActionScript class files will be exported into the directory specified.
Tips
The following tips will help you to make effective use of this utility.
- Apply rotation and scaling to your objects in Blender (CTRL-A). Otherwise, your objects will be exported with the base values. The Suzanne model (monkey) is created with a rotation that is not applied.
- Subclass the objects rather than modifying the exported classes. This will make it a snap to export new versions of the model in the future. See the example included in the package.
- For realistic textures, bake and export your textures from Blender. There is an example of this in the package. Open the model file in Blender.
- In Blender, have your camera target an empty. You can then have your exported camera object target the same empty for a perfect 1-to-1 scene mapping.
- In Blender, the positive Z-axis is up. In Papervision3D, the positive Y-axis is up. The script will translate the vertices, but be aware if you attempt to rotate or translate the model.

Comments
Post new comment