Update README and Dockerfile to reflect interface changes.
This commit is contained in:
parent
ea74f4c7ab
commit
ea2435a159
2 changed files with 5 additions and 8 deletions
|
@ -1,3 +1,3 @@
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
RUN apt-get update
|
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
|
||||||
|
|
|
@ -9,10 +9,7 @@ docker pull jmsgrogan/python-generator
|
||||||
Launch:
|
Launch:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python generate_shape.py <json>
|
blender --background --python generate_shape.py -- '{"shape":"cone", "output":"test456"}'
|
||||||
python apply_texture.py <json>
|
blender --background --python apply_texture.py -- '{"shape":"cone", "output":"test456", "height":"1.0", "radius":"1.0"}'
|
||||||
python final_render.py <json>
|
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.
|
|
||||||
|
|
Loading…
Reference in a new issue