aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-02-06 22:46:29 +1000
committerDavid Walter Seikel2016-02-06 22:46:29 +1000
commit7983d1564a66900073c073386c6b4079092f684f (patch)
tree8258ba442f203873b05adddb9d0a1023ab72e907
parentLights! Cameras! Action? (diff)
downloadSledjHamr-7983d1564a66900073c073386c6b4079092f684f.zip
SledjHamr-7983d1564a66900073c073386c6b4079092f684f.tar.gz
SledjHamr-7983d1564a66900073c073386c6b4079092f684f.tar.bz2
SledjHamr-7983d1564a66900073c073386c6b4079092f684f.tar.xz
Adjust in world positions a bit.
Diffstat (limited to '')
-rw-r--r--media/Test%20sim/index.omg14
-rw-r--r--src/extantz/camera.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/media/Test%20sim/index.omg b/media/Test%20sim/index.omg
index cf3f78a..36fd3a5 100644
--- a/media/Test%20sim/index.omg
+++ b/media/Test%20sim/index.omg
@@ -10,30 +10,30 @@ Stuffs =
10 ['onefang%27s%20test%20bed'] = 10 ['onefang%27s%20test%20bed'] =
11 { 11 {
12 fileName = 'onefang%27s%20test%20bed.omg', 12 fileName = 'onefang%27s%20test%20bed.omg',
13 pos = {0.0, 4.0, 10.0}, 13 pos = {5.0, 0.0, 0.0},
14 size = {1.0, 1.0, 1.0}, 14 size = {2.0, 2.0, 2.0},
15 rot = {1.0, 0.0, 0.0, 0.0}, 15 rot = {1.0, 0.0, 0.0, 0.0},
16 }, 16 },
17 ['sonic'] = 17 ['sonic'] =
18 { 18 {
19 fileName = 'sonic.omg', 19 fileName = 'sonic.omg',
20 pos = {0.0, 0.0, 0.0}, 20 pos = {0.0, 0.0, 0.0},
21 size = {1.0, 1.0, 1.0}, 21 size = {0.1, 0.1, 0.1},
22 rot = {-0.7071067811865475, 0.0, 0.0, 0.7071067811865475}, 22 rot = {-0.7071067811865475, 0.0, 0.0, 0.7071067811865475},
23 }, 23 },
24 ['earth'] = 24 ['earth'] =
25 { 25 {
26 fileName = 'earth.omg', 26 fileName = 'earth.omg',
27 pos = {0.0, 0.0, 0.0}, 27 pos = {-5.0, 0.0, 0.0},
28 size = {1.0, 1.0, 1.0}, 28 size = {2.0, 2.0, 2.0},
29 rot = {1.0, 0.0, 0.0, 0.0}, 29 rot = {1.0, 0.0, 0.0, 0.0},
30 }, 30 },
31 ['terrain'] = 31 ['terrain'] =
32 { 32 {
33 fileName = 'terrain.omg', 33 fileName = 'terrain.omg',
34 pos = {0.0, -5.0, 0.0}, 34 pos = {0.0, -5.0, 0.0},
35 size = {256.0, 256.0, 256.0}, 35 size = {256.0, 256.0, 25.0},
36 rot = {1.0, 0.0, 0.0, 0.0}, 36 rot = {-0.7071067811865475, 0.0, 0.0, 0.7071067811865475},
37 }, 37 },
38 }, 38 },
39 }, 39 },
diff --git a/src/extantz/camera.c b/src/extantz/camera.c
index 9a28b15..ba960d4 100644
--- a/src/extantz/camera.c
+++ b/src/extantz/camera.c
@@ -209,7 +209,7 @@ Eo *cameraAdd(Evas *evas, Scene_Data *scene, Evas_Object *image)
209 209
210 result = eo_add(EVAS_CANVAS3D_NODE_CLASS, evas, evas_canvas3d_node_constructor(EVAS_CANVAS3D_NODE_TYPE_CAMERA), 210 result = eo_add(EVAS_CANVAS3D_NODE_CLASS, evas, evas_canvas3d_node_constructor(EVAS_CANVAS3D_NODE_TYPE_CAMERA),
211 evas_canvas3d_node_camera_set(camera), 211 evas_canvas3d_node_camera_set(camera),
212 evas_canvas3d_node_position_set(0.0, 20.0, 30.0), 212 evas_canvas3d_node_position_set(0.0, 4.0, 8.0),
213// evas_canvas3d_node_look_at_set(EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 20.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0), 213// evas_canvas3d_node_look_at_set(EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 20.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0),
214 evas_canvas3d_node_orientation_set(0.0, 0.0, 0.0, 1.0) 214 evas_canvas3d_node_orientation_set(0.0, 0.0, 0.0, 1.0)
215 ); 215 );