Skip to content

Commit 5fb96ec

Browse files
committed
updare docs
1 parent 7171f86 commit 5fb96ec

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

examples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ With a light or an object / primitive selected:
3535
- scale up/down: hold ctrl + shift + left mouse button and drag up/down
3636
- select camera: double-click left mouse button in empty area or double-right-click anywhere
3737

38+
Keyboard:
39+
40+
- save image: F12
3841

3942
You'll find here super-basic examples of displaying data, like scatter plots or line plots below:
4043

plotoptix/tkoptix.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,34 @@ class TkOptiX(NpOptiX):
2525
2626
Summary of mouse and keys actions:
2727
28-
- rotate camera eye around the target: hold and drag left mouse button
29-
- rotate camera target around the eye: hold and drag right mouse button
30-
- zoom out/in (change camera field of view): hold shift + left mouse button and drag up/down
31-
- move camera eye backward/forward: hold shift + right mouse button and drag up/down
28+
29+
- camera is selected by default, double-click an object/light to select it, double click again to select a primitive within the object, double-click in empty area or double-right-click to select camera
30+
- select parent mesh to apply transformations to all children as well
31+
32+
With camera selected:
33+
34+
- rotate eye around the target: hold and drag left mouse button
35+
- rotate target around the eye (pan/tilt): hold and drag right mouse button
36+
- zoom out/in (change field of view): hold shift + left mouse button and drag up/down
37+
- move eye backward/forward (dolly): hold shift + right mouse button and drag up/down
3238
- change focus distance in "depth of field" cameras: hold ctrl + left mouse button and drag up/down
3339
- change aperture radius in "depth of field" cameras: hold ctrl + right mouse button and drag up/down
3440
- focus at an object: hold ctrl + double-click left mouse button
35-
- select an object: double-click left mouse button (info on terminal output)
41+
- select an object: double-click left mouse button
42+
43+
With a light or an object / primitive selected:
44+
45+
- rotate around camera XY (right, up) coordinates: hold and drag left mouse button
46+
- rotate around camera XZ (right, forward) coordinates: hold ctrl and drag left mouse button
47+
- move in camera XY (right, up) coordinates: hold shift and drag left mouse button
48+
- move in camera XZ (right, forward) coordinates: hold and drag right mouse button
49+
- move in the normal direction (parallelogram light only): shift + right mouse button and drag up/down
50+
- scale up/down: hold ctrl + shift + left mouse button and drag up/down
51+
- select camera: double-click left mouse button in empty area or double-right-click anywhere
3652
3753
Keyboard:
3854
39-
- save image (no file dialog yet, saves to ``render_output.jpg`` now): F12
55+
- save image: F12
4056
4157
Note: functions with the names ``_gui_*`` can be used from the
4258
GUI thread (Tk event loop) only.

0 commit comments

Comments
 (0)