mirror of
https://github.com/OpenMW/osgexport.git
synced 2026-11-21 13:19:24 -10:00
release
Follow instruction from github to get the repository
https://github.com/cedricpinson/osgexport
## Installation (blender 2.5+)
To install last version of the exporter go in user preference, then 'install addons' with the zip from https://github.com/cedricpinson/osgexport/tree/master/blender-2.5/build
## Command line usage
`osgexport` needs to inject the path to exporter modules into PYTHONPATH. The injection is done by reading the value of the `BlenderExporter` environment variable (see [__init__.py](https://github.com/sketchfab/osgexport/blob/feature/cycles/blender-2.5/exporter/osg/__init__.py#L46-51)).
```shell
$ BlenderExporter="/path-to-osgexport/blender-2.5/exporter" blender \
-b "input.blend" \
-P "${BlenderExporter}/osg/__init__.py" \
-- --output="output.osgt" \
[--apply-modifiers] [--enable-animation] [--json-materials]
```
## How to report a bug
Open an [issue](https://github.com/cedricpinson/osgexport/issues/new) and send a minimal blender file that produce the problem.
## Tests
To run tests:
```shell
mkdir tests && cd tests
cmake ../blender-2.5 -DBLENDER:FILEPATH="/my/path/to/blender" -DTEST=ON
make # runs test building osgt files for models in blender-2.xx/data/
make test # runs python test located in blender-2.xx/test/
```
To troubleshoot python tests: `ctest --debug` or `ctest --output-on-failure`
Description
OpenMW-tailored changes to the Blender exporter for OpenSceneGraph
38 MiB
0 Stars
1 Watchers
0 Forks
Languages
Python
97%
CMake
2.9%