Update README and Dockerfile to reflect interface changes.

This commit is contained in:
jmsgrogan 2017-10-23 12:54:11 +01:00
parent ea74f4c7ab
commit ea2435a159
2 changed files with 5 additions and 8 deletions

View file

@ -1,3 +1,3 @@
FROM ubuntu:latest
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install --no-install-recommends --no-install-suggests -y freecad python-vtk6 python-numpy
RUN apt-get install --no-install-recommends --no-install-suggests -y blender

View file

@ -9,10 +9,7 @@ docker pull jmsgrogan/python-generator
Launch:
```bash
python generate_shape.py <json>
python apply_texture.py <json>
python final_render.py <json>
blender --background --python generate_shape.py -- '{"shape":"cone", "output":"test456"}'
blender --background --python apply_texture.py -- '{"shape":"cone", "output":"test456", "height":"1.0", "radius":"1.0"}'
blender --background --python final_render.py -- '{"shape":"cone", "output":"test456", "height":"1.0", "radius":"1.0", "color":"[244,123,123]"}'
```
The output for the first two scripts is a file `$prefix_lamp.png` in the launch directory.
The output for the last script is three files `$prefix_lamp_kitchen.png`, `$prefix_lamp_hall.png`, `$prefix_lamp_landing.png` in the launch directory.