AurL / osgexport

Blender exporter for OpenSceneGraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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`

About

Blender exporter for OpenSceneGraph

License:GNU General Public License v2.0


Languages

Language:Python 90.5%Language:CMake 9.4%Language:Shell 0.1%