diff --git a/RaycastRay/README.md b/RaycastRay/README.md new file mode 100644 index 0000000..a413593 --- /dev/null +++ b/RaycastRay/README.md @@ -0,0 +1,3 @@ +Ray casting from a logic tree. + +- Press Left or Right arrow keys to cast a ray; results print to the debug console. diff --git a/RaycastRay/RaycastRay.blend b/RaycastRay/RaycastRay.blend index b6132e3..203a914 100644 Binary files a/RaycastRay/RaycastRay.blend and b/RaycastRay/RaycastRay.blend differ diff --git a/ScreenToWorld_WorldToScreen/README.md b/ScreenToWorld_WorldToScreen/README.md new file mode 100644 index 0000000..bd98766 --- /dev/null +++ b/ScreenToWorld_WorldToScreen/README.md @@ -0,0 +1,3 @@ +Screen-to-world coordinate conversion. + +- Click the left mouse button to project the mouse position into world space; results show as canvas text. diff --git a/ScreenToWorld_WorldToScreen/ScreenToWorld_WorldToScreen.blend b/ScreenToWorld_WorldToScreen/ScreenToWorld_WorldToScreen.blend index 2a798d9..3210b5d 100644 Binary files a/ScreenToWorld_WorldToScreen/ScreenToWorld_WorldToScreen.blend and b/ScreenToWorld_WorldToScreen/ScreenToWorld_WorldToScreen.blend differ diff --git a/animation_actions/animation_actions.blend b/animation_actions/animation_actions.blend index e1c97cf..4d14168 100644 Binary files a/animation_actions/animation_actions.blend and b/animation_actions/animation_actions.blend differ diff --git a/animation_blend/animation_blend.blend b/animation_blend/animation_blend.blend index 4358afe..0431e0f 100644 Binary files a/animation_blend/animation_blend.blend and b/animation_blend/animation_blend.blend differ diff --git a/animation_bonechild/animation_bonechild.blend b/animation_bonechild/animation_bonechild.blend index d9f54b2..1a2d43b 100644 Binary files a/animation_bonechild/animation_bonechild.blend and b/animation_bonechild/animation_bonechild.blend differ diff --git a/animation_instanced/animation_instanced.blend b/animation_instanced/animation_instanced.blend index b2b14e6..a370f9e 100644 Binary files a/animation_instanced/animation_instanced.blend and b/animation_instanced/animation_instanced.blend differ diff --git a/animation_movebone/Sources/lnx/MoveBoneFK.hx b/animation_movebone/Sources/lnx/MoveBoneFK.hx index 298bc5a..1da52e8 100644 --- a/animation_movebone/Sources/lnx/MoveBoneFK.hx +++ b/animation_movebone/Sources/lnx/MoveBoneFK.hx @@ -15,7 +15,7 @@ class MoveBoneFK extends iron.Trait { // Fetch armature animation var anim = cast(object.children[0].animation, BoneAnimation); // Fetch bone - var bone = anim.getBone("mixamorig:RightLnx"); + var bone = anim.getBone("mixamorig:RightArm"); // Manipulating bone in local space //var m = anim.getBoneMat(bone); @@ -27,7 +27,7 @@ class MoveBoneFK extends iron.Trait { // Manipulating bone in world space anim.notifyOnUpdate(function() { // Get bone mat in world space - var m = anim.getAbsWorldMat(bone); + var m = anim.getAbsWorldMat(anim.skeletonMats, bone); // Decompose transform var loc = new Vec4(); var scl = new Vec4(); @@ -39,7 +39,7 @@ class MoveBoneFK extends iron.Trait { // Compose world matrix m.compose(loc, rot, scl); // Set bone matrix from world matrix - anim.setBoneMatFromWorldMat(m, bone); + anim.setBoneMatFromWorldMat(anim.skeletonMats, m, bone); }); }); } diff --git a/animation_movebone/Sources/lnx/MoveBoneIK.hx b/animation_movebone/Sources/lnx/MoveBoneIK.hx index a04ad0b..fe49509 100644 --- a/animation_movebone/Sources/lnx/MoveBoneIK.hx +++ b/animation_movebone/Sources/lnx/MoveBoneIK.hx @@ -21,7 +21,7 @@ class MoveBoneIK extends iron.Trait { anim.notifyOnUpdate(function() { goal.set(tr.worldx(), tr.worldy(), tr.worldz()); // Align skeleton to touch the goal - anim.solveIK(bone, goal); + anim.solveIK(anim.skeletonMats, bone, goal); }); }); } diff --git a/animation_movebone/animation_movebone.blend b/animation_movebone/animation_movebone.blend index 5014a9d..0756b28 100644 Binary files a/animation_movebone/animation_movebone.blend and b/animation_movebone/animation_movebone.blend differ diff --git a/animation_timeline/README.md b/animation_timeline/README.md new file mode 100644 index 0000000..31a5d84 --- /dev/null +++ b/animation_timeline/README.md @@ -0,0 +1,4 @@ +Skeletal animation driven by the scene timeline. + +- The mixamo armature animation starts automatically on load. +- Watch the character play its animation. diff --git a/animation_timeline/animation_timeline.blend b/animation_timeline/animation_timeline.blend index 34e6bd8..5f481af 100644 Binary files a/animation_timeline/animation_timeline.blend and b/animation_timeline/animation_timeline.blend differ diff --git a/animation_uv/README.md b/animation_uv/README.md new file mode 100644 index 0000000..724380f --- /dev/null +++ b/animation_uv/README.md @@ -0,0 +1,3 @@ +UV animation of material texture coordinates on the cube, sphere and plane. + +- Runs automatically; watch the textures scroll. diff --git a/animation_uv/animation_uv.blend b/animation_uv/animation_uv.blend index 89c353f..c64f0c2 100644 Binary files a/animation_uv/animation_uv.blend and b/animation_uv/animation_uv.blend differ diff --git a/call_hx/Bundled/my_plugin.js b/call_hx/Bundled/my_plugin.js index f2bb859..8c82b36 100644 --- a/call_hx/Bundled/my_plugin.js +++ b/call_hx/Bundled/my_plugin.js @@ -1,7 +1,7 @@ // Call Plugin class exposed from Haxe -var plugin = new arm.Plugin(); +var plugin = new lnx.Plugin(); plugin.hello(); var scene = plugin.scene(); diff --git a/call_hx/call_hx.blend b/call_hx/call_hx.blend index 22cf4c8..1dc2b15 100644 Binary files a/call_hx/call_hx.blend and b/call_hx/call_hx.blend differ diff --git a/call_js/call_js.blend b/call_js/call_js.blend index d87cd5c..b875969 100644 Binary files a/call_js/call_js.blend and b/call_js/call_js.blend differ diff --git a/debug_draw/debug_draw.blend b/debug_draw/debug_draw.blend index e56d6e4..2250ca6 100644 Binary files a/debug_draw/debug_draw.blend and b/debug_draw/debug_draw.blend differ diff --git a/dev_logicnode/README.md b/dev_logicnode/README.md new file mode 100644 index 0000000..87f3535 --- /dev/null +++ b/dev_logicnode/README.md @@ -0,0 +1,3 @@ +Development test scene for logic nodes on a single cube. + +- Runs automatically; check the debug console for node output. diff --git a/dev_logicnode/dev_logicnode.blend b/dev_logicnode/dev_logicnode.blend index 8678aa1..fb89f95 100644 Binary files a/dev_logicnode/dev_logicnode.blend and b/dev_logicnode/dev_logicnode.blend differ diff --git a/ease/ease.blend b/ease/ease.blend index 522ed0b..b1171f3 100644 Binary files a/ease/ease.blend and b/ease/ease.blend differ diff --git a/file_read/file_read.blend b/file_read/file_read.blend index ec82a06..a6db9e3 100644 Binary files a/file_read/file_read.blend and b/file_read/file_read.blend differ diff --git a/file_storage/file_storage.blend b/file_storage/file_storage.blend index e93a161..6026ff8 100644 Binary files a/file_storage/file_storage.blend and b/file_storage/file_storage.blend differ diff --git a/file_write/file_write.blend b/file_write/file_write.blend index 0b610bd..68c0bf3 100644 Binary files a/file_write/file_write.blend and b/file_write/file_write.blend differ diff --git a/game_bowling/game_bowling.blend b/game_bowling/game_bowling.blend index aea0b44..b7e06d0 100644 Binary files a/game_bowling/game_bowling.blend and b/game_bowling/game_bowling.blend differ diff --git a/game_bowling/pin.blend b/game_bowling/pin.blend index de6e0ef..f2343bd 100644 Binary files a/game_bowling/pin.blend and b/game_bowling/pin.blend differ diff --git a/game_endlessrun/Bundled/canvas/_themes.json b/game_endlessrun/Bundled/canvas/_themes.json new file mode 100644 index 0000000..e69de29 diff --git a/game_endlessrun/README.md b/game_endlessrun/README.md new file mode 100644 index 0000000..abdfb46 --- /dev/null +++ b/game_endlessrun/README.md @@ -0,0 +1,5 @@ +Endless runner. + +- The character runs forward automatically, tiles spawn endlessly. +- Use the Left/Right arrow keys (or A and D) to move between lanes. +- Collect the gems. diff --git a/game_endlessrun/game_endless.blend b/game_endlessrun/game_endless.blend index 07ff3ae..aa39f31 100644 Binary files a/game_endlessrun/game_endless.blend and b/game_endlessrun/game_endless.blend differ diff --git a/graphics_settings/Bundled/config.lnx b/graphics_settings/Bundled/config.lnx index 2808312..b1cf4f6 100644 --- a/graphics_settings/Bundled/config.lnx +++ b/graphics_settings/Bundled/config.lnx @@ -1,11 +1,16 @@ { "rp_bloom": true, + "rp_chromatic_aberration": true, "rp_dynres": false, + "rp_fsr1": false, + "rp_fsr1_sharpness": 0.25, "rp_gi": false, "rp_motionblur": true, "rp_shadowmap_cascade": 1024, "rp_shadowmap_cube": 512, - "rp_ssgi": true, + "rp_ss_refraction": true, + "rp_ssao": true, + "rp_ssgi": false, "rp_ssr": true, "rp_supersample": 1.0, "window_h": 540, diff --git a/graphics_settings/graphics_settings.blend b/graphics_settings/graphics_settings.blend index b19ed8b..5773ca5 100644 Binary files a/graphics_settings/graphics_settings.blend and b/graphics_settings/graphics_settings.blend differ diff --git a/input_mouselock/input_mouselock.blend b/input_mouselock/input_mouselock.blend index 0b9a731..6c6d2c0 100644 Binary files a/input_mouselock/input_mouselock.blend and b/input_mouselock/input_mouselock.blend differ diff --git a/input_multitouch/README.md b/input_multitouch/README.md new file mode 100644 index 0000000..fc86659 --- /dev/null +++ b/input_multitouch/README.md @@ -0,0 +1,4 @@ +Multi-touch input test using a Haxe trait. + +- Touch or click and drag on the canvas to move the cube. +- On a touch device, additional touch points are tracked separately. diff --git a/input_multitouch/input_multitouch.blend b/input_multitouch/input_multitouch.blend index ffcae54..c107bf8 100644 Binary files a/input_multitouch/input_multitouch.blend and b/input_multitouch/input_multitouch.blend differ diff --git a/input_sensor/README.md b/input_sensor/README.md new file mode 100644 index 0000000..71d1621 --- /dev/null +++ b/input_sensor/README.md @@ -0,0 +1,4 @@ +Device sensor input test using a Haxe trait. + +- View on a device with sensors (accelerometer). +- Sensor readings drive the cube; check the console for values. diff --git a/input_sensor/input_sensor.blend b/input_sensor/input_sensor.blend index 563f877..0ac212b 100644 Binary files a/input_sensor/input_sensor.blend and b/input_sensor/input_sensor.blend differ diff --git a/instancing/instancing.blend b/instancing/instancing.blend index 072ae3e..0e75384 100644 Binary files a/instancing/instancing.blend and b/instancing/instancing.blend differ diff --git a/light_area/README.md b/light_area/README.md new file mode 100644 index 0000000..3728c6f --- /dev/null +++ b/light_area/README.md @@ -0,0 +1,4 @@ +Area light lighting a grid of cubes. + +- The light animates over the surface. +- WASD keys and mouse to navigate. diff --git a/light_area/light_area.blend b/light_area/light_area.blend index a67ff78..12d5212 100644 Binary files a/light_area/light_area.blend and b/light_area/light_area.blend differ diff --git a/light_ies/README.md b/light_ies/README.md new file mode 100644 index 0000000..fc94733 --- /dev/null +++ b/light_ies/README.md @@ -0,0 +1,3 @@ +IES light profiles projected on spheres and a wall. + +- WASD keys and mouse to navigate. diff --git a/light_ies/light_ies.blend b/light_ies/light_ies.blend index ec40a1c..2180a06 100644 Binary files a/light_ies/light_ies.blend and b/light_ies/light_ies.blend differ diff --git a/light_probes/README.md b/light_probes/README.md new file mode 100644 index 0000000..c8fb831 --- /dev/null +++ b/light_probes/README.md @@ -0,0 +1,3 @@ +Reflection probe rendering - reflective spheres sample a cubemap probe. + +- WASD keys and mouse to navigate. diff --git a/light_probes/light_probes.blend b/light_probes/light_probes.blend index cea3d26..336ffcb 100644 Binary files a/light_probes/light_probes.blend and b/light_probes/light_probes.blend differ diff --git a/light_probes_cubemap/README.md b/light_probes_cubemap/README.md new file mode 100644 index 0000000..b2b85b5 --- /dev/null +++ b/light_probes_cubemap/README.md @@ -0,0 +1,3 @@ +Reflection cubemap probe sampling on spheres. + +- WASD keys and mouse to navigate. diff --git a/light_probes_cubemap/_orb.blend b/light_probes_cubemap/_orb.blend new file mode 100644 index 0000000..1d7fa84 Binary files /dev/null and b/light_probes_cubemap/_orb.blend differ diff --git a/light_probes_cubemap/light_probes_cubemap.blend b/light_probes_cubemap/light_probes_cubemap.blend index f1ae392..83d2cb0 100644 Binary files a/light_probes_cubemap/light_probes_cubemap.blend and b/light_probes_cubemap/light_probes_cubemap.blend differ diff --git a/light_probes_plane/README.md b/light_probes_plane/README.md new file mode 100644 index 0000000..b307930 --- /dev/null +++ b/light_probes_plane/README.md @@ -0,0 +1,3 @@ +Reflection plane probes under animated characters. + +- WASD keys and mouse to navigate. diff --git a/light_probes_plane/light_probes_plane.blend b/light_probes_plane/light_probes_plane.blend index 9c44555..901c27f 100644 Binary files a/light_probes_plane/light_probes_plane.blend and b/light_probes_plane/light_probes_plane.blend differ diff --git a/light_volumetric/light_volumetric.blend b/light_volumetric/light_volumetric.blend index dc765fa..1caa614 100644 Binary files a/light_volumetric/light_volumetric.blend and b/light_volumetric/light_volumetric.blend differ diff --git a/load_screen/README.md b/load_screen/README.md new file mode 100644 index 0000000..e1b1b34 --- /dev/null +++ b/load_screen/README.md @@ -0,0 +1,3 @@ +Custom loading screen displayed while the scene loads. + +- Watch the load screen, then the cube appears. diff --git a/load_screen/load_screen.blend b/load_screen/load_screen.blend index 4411b49..93cbb4e 100644 Binary files a/load_screen/load_screen.blend and b/load_screen/load_screen.blend differ diff --git a/lod/lod.blend b/lod/lod.blend index bde54b7..d4c17d2 100644 Binary files a/lod/lod.blend and b/lod/lod.blend differ diff --git a/logic_Hello_World/README.md b/logic_Hello_World/README.md new file mode 100644 index 0000000..716d605 --- /dev/null +++ b/logic_Hello_World/README.md @@ -0,0 +1,3 @@ +Minimal logic tree that prints Hello World. + +- Check the console output on start. diff --git a/logic_Hello_World/logic_Hello_World.blend b/logic_Hello_World/logic_Hello_World.blend index 3cf8dba..dbcee83 100644 Binary files a/logic_Hello_World/logic_Hello_World.blend and b/logic_Hello_World/logic_Hello_World.blend differ diff --git a/logic_break/README.md b/logic_break/README.md new file mode 100644 index 0000000..31d063d --- /dev/null +++ b/logic_break/README.md @@ -0,0 +1,3 @@ +Breakable physics joints on cylinders stacked between boxes. + +- Watch the structure break and collapse on its own. diff --git a/logic_break/logic_break.blend b/logic_break/logic_break.blend index fb3bed5..df5cc3c 100644 Binary files a/logic_break/logic_break.blend and b/logic_break/logic_break.blend differ diff --git a/logic_callgroup/Bundled/canvas/_themes.json b/logic_callgroup/Bundled/canvas/_themes.json new file mode 100644 index 0000000..e69de29 diff --git a/logic_callgroup/logic_callgroup.blend b/logic_callgroup/logic_callgroup.blend index 6b4420c..e21f0a0 100644 Binary files a/logic_callgroup/logic_callgroup.blend and b/logic_callgroup/logic_callgroup.blend differ diff --git a/logic_camera_pan/README.md b/logic_camera_pan/README.md new file mode 100644 index 0000000..c552e86 --- /dev/null +++ b/logic_camera_pan/README.md @@ -0,0 +1,3 @@ +Camera panning with the mouse. + +- Hold the left mouse button and drag to pan the camera. diff --git a/logic_camera_pan/logic_camera_pan.blend b/logic_camera_pan/logic_camera_pan.blend index 10f1cde..0b8baa9 100644 Binary files a/logic_camera_pan/logic_camera_pan.blend and b/logic_camera_pan/logic_camera_pan.blend differ diff --git a/logic_camera_zoom/README.md b/logic_camera_zoom/README.md new file mode 100644 index 0000000..5bb51b7 --- /dev/null +++ b/logic_camera_zoom/README.md @@ -0,0 +1,3 @@ +Camera zoom. + +- Scroll the mouse wheel to zoom the camera in and out. diff --git a/logic_camera_zoom/logic_camera_zoom.blend b/logic_camera_zoom/logic_camera_zoom.blend index a9b636b..86268e5 100644 Binary files a/logic_camera_zoom/logic_camera_zoom.blend and b/logic_camera_zoom/logic_camera_zoom.blend differ diff --git a/logic_canvas/README.md b/logic_canvas/README.md new file mode 100644 index 0000000..1ca2496 --- /dev/null +++ b/logic_canvas/README.md @@ -0,0 +1,3 @@ +Canvas UI driven by a logic tree. + +- Press Space to cycle through the UI element actions. diff --git a/logic_canvas/logic_canvas.blend b/logic_canvas/logic_canvas.blend deleted file mode 100644 index fd6dee1..0000000 Binary files a/logic_canvas/logic_canvas.blend and /dev/null differ diff --git a/logic_event_fromhaxe/README.md b/logic_event_fromhaxe/README.md index e69de29..2477aa2 100644 --- a/logic_event_fromhaxe/README.md +++ b/logic_event_fromhaxe/README.md @@ -0,0 +1,3 @@ +A Haxe trait sends an event; a logic tree receives it and moves the cube. + +- Runs automatically on start. diff --git a/logic_event_fromhaxe/logic_event_fromhaxe.blend b/logic_event_fromhaxe/logic_event_fromhaxe.blend index 4a301ac..0c406a9 100644 Binary files a/logic_event_fromhaxe/logic_event_fromhaxe.blend and b/logic_event_fromhaxe/logic_event_fromhaxe.blend differ diff --git a/logic_event_global/README.md b/logic_event_global/README.md new file mode 100644 index 0000000..c3b642f --- /dev/null +++ b/logic_event_global/README.md @@ -0,0 +1,3 @@ +Global event sent from one object's logic tree to another. + +- Press the Left arrow key to send the event; the second cube responds. diff --git a/logic_event_global/logic_event_global.blend b/logic_event_global/logic_event_global.blend index 5a92a3c..9ce7909 100644 Binary files a/logic_event_global/logic_event_global.blend and b/logic_event_global/logic_event_global.blend differ diff --git a/logic_event_object/logic_event_object.blend b/logic_event_object/logic_event_object.blend index 5a6dd5d..3d755dd 100644 Binary files a/logic_event_object/logic_event_object.blend and b/logic_event_object/logic_event_object.blend differ diff --git a/logic_gamepad/README.md b/logic_gamepad/README.md new file mode 100644 index 0000000..5ecac9d --- /dev/null +++ b/logic_gamepad/README.md @@ -0,0 +1,4 @@ +Gamepad input demo. + +- Connect a gamepad and move a stick to rotate Suzanne. +- A virtual gamepad overlay is shown when no gamepad is connected. diff --git a/logic_gamepad/logic_gamepad.blend b/logic_gamepad/logic_gamepad.blend index 5f30fad..a9c5095 100644 Binary files a/logic_gamepad/logic_gamepad.blend and b/logic_gamepad/logic_gamepad.blend differ diff --git a/logic_gate/README.md b/logic_gate/README.md new file mode 100644 index 0000000..1a608a1 --- /dev/null +++ b/logic_gate/README.md @@ -0,0 +1,4 @@ +Trigger-volume gate using a first-person controller. + +- WASD keys to walk, mouse to look. +- Walk into the trigger zone to open and close the animated gate. diff --git a/logic_gate/logic_gate.blend b/logic_gate/logic_gate.blend index b9cd12a..ccf6fd8 100644 Binary files a/logic_gate/logic_gate.blend and b/logic_gate/logic_gate.blend differ diff --git a/logic_get_contacts/README.md b/logic_get_contacts/README.md new file mode 100644 index 0000000..94f1b2d --- /dev/null +++ b/logic_get_contacts/README.md @@ -0,0 +1,3 @@ +Rigid-body contact detection between the red and blue cubes. + +- Watch the cube fall; contact info is printed to the debug console. diff --git a/logic_get_contacts/logic_get_contacts.blend b/logic_get_contacts/logic_get_contacts.blend index fb5b152..6829d05 100644 Binary files a/logic_get_contacts/logic_get_contacts.blend and b/logic_get_contacts/logic_get_contacts.blend differ diff --git a/logic_keyboard/README.md b/logic_keyboard/README.md new file mode 100644 index 0000000..1b3f37c --- /dev/null +++ b/logic_keyboard/README.md @@ -0,0 +1,3 @@ +Keyboard node test. + +- Press Space repeatedly; each press triggers the connected node actions on the cube and prints to the debug console. diff --git a/logic_keyboard/logic_keyboard.blend b/logic_keyboard/logic_keyboard.blend index bf0db92..13f02b3 100644 Binary files a/logic_keyboard/logic_keyboard.blend and b/logic_keyboard/logic_keyboard.blend differ diff --git a/logic_linked_variable/README.md b/logic_linked_variable/README.md new file mode 100644 index 0000000..890778c --- /dev/null +++ b/logic_linked_variable/README.md @@ -0,0 +1,3 @@ +A variable linked between node trees. + +- Runs automatically; check the debug console. diff --git a/logic_linked_variable/logic_linked_variable.blend b/logic_linked_variable/logic_linked_variable.blend index b8195eb..f417565 100644 Binary files a/logic_linked_variable/logic_linked_variable.blend and b/logic_linked_variable/logic_linked_variable.blend differ diff --git a/logic_loadurl/README.md b/logic_loadurl/README.md new file mode 100644 index 0000000..9908932 --- /dev/null +++ b/logic_loadurl/README.md @@ -0,0 +1,3 @@ +Loads a URL from a logic tree. + +- Press A, B or C to load a different page in the browser. diff --git a/logic_loadurl/logic_loadurl.blend b/logic_loadurl/logic_loadurl.blend index 2060f2c..4b50859 100644 Binary files a/logic_loadurl/logic_loadurl.blend and b/logic_loadurl/logic_loadurl.blend differ diff --git a/logic_mouselock/README.md b/logic_mouselock/README.md new file mode 100644 index 0000000..86bc608 --- /dev/null +++ b/logic_mouselock/README.md @@ -0,0 +1,3 @@ +Mouse lock and hide. + +- Press CapsLock to lock and hide the cursor; Escape releases it. diff --git a/logic_mouselock/logic_mouselock.blend b/logic_mouselock/logic_mouselock.blend index 8611af4..abf4efd 100644 Binary files a/logic_mouselock/logic_mouselock.blend and b/logic_mouselock/logic_mouselock.blend differ diff --git a/logic_object_rotate/logic_object_rotate.blend b/logic_object_rotate/logic_object_rotate.blend index 4ccc45d..d66b074 100644 Binary files a/logic_object_rotate/logic_object_rotate.blend and b/logic_object_rotate/logic_object_rotate.blend differ diff --git a/logic_object_scale/logic_object_scale.blend b/logic_object_scale/logic_object_scale.blend index edef32e..0322612 100644 Binary files a/logic_object_scale/logic_object_scale.blend and b/logic_object_scale/logic_object_scale.blend differ diff --git a/logic_object_translate/logic_object_translate.blend b/logic_object_translate/logic_object_translate.blend index 3a2755e..be66af9 100644 Binary files a/logic_object_translate/logic_object_translate.blend and b/logic_object_translate/logic_object_translate.blend differ diff --git a/logic_pause_trait/logic_pause_trait.blend b/logic_pause_trait/logic_pause_trait.blend index 676c907..6e8239e 100644 Binary files a/logic_pause_trait/logic_pause_trait.blend and b/logic_pause_trait/logic_pause_trait.blend differ diff --git a/logic_pong/README.md b/logic_pong/README.md new file mode 100644 index 0000000..de5129d --- /dev/null +++ b/logic_pong/README.md @@ -0,0 +1,4 @@ +A pong game built entirely from logic trees and physics. + +- Use the Left and Back keys to move your bat. +- Out-score the AI bat; the score text updates on screen. diff --git a/logic_pong/logic_pong.blend b/logic_pong/logic_pong.blend index 122768b..776d24c 100644 Binary files a/logic_pong/logic_pong.blend and b/logic_pong/logic_pong.blend differ diff --git a/logic_scenes/logic_scenes.blend b/logic_scenes/logic_scenes.blend index a252674..636ffeb 100644 Binary files a/logic_scenes/logic_scenes.blend and b/logic_scenes/logic_scenes.blend differ diff --git a/logic_scenetree/README.md b/logic_scenetree/README.md index 0ebe169..926702b 100644 --- a/logic_scenetree/README.md +++ b/logic_scenetree/README.md @@ -1 +1,3 @@ -Check console \ No newline at end of file +Searches the scene tree for objects by name. + +- Check the debug console for the found objects. diff --git a/logic_scenetree/logic_scenetree.blend b/logic_scenetree/logic_scenetree.blend index df5be94..cfb64c0 100644 Binary files a/logic_scenetree/logic_scenetree.blend and b/logic_scenetree/logic_scenetree.blend differ diff --git a/logic_script/README.md b/logic_script/README.md new file mode 100644 index 0000000..4cbbe86 --- /dev/null +++ b/logic_script/README.md @@ -0,0 +1,3 @@ +Inline HScript node computing sin() of its inputs each frame. + +- Check the debug console for the traced values. diff --git a/logic_script/logic_script.blend b/logic_script/logic_script.blend index 5e0adcf..a5581fb 100644 Binary files a/logic_script/logic_script.blend and b/logic_script/logic_script.blend differ diff --git a/logic_set_property/logic_set_property.blend b/logic_set_property/logic_set_property.blend index 1716ba8..4bb42f6 100644 Binary files a/logic_set_property/logic_set_property.blend and b/logic_set_property/logic_set_property.blend differ diff --git a/logic_toy_car/logic_toy_car.blend b/logic_toy_car/logic_toy_car.blend index 89a1399..48874b8 100644 Binary files a/logic_toy_car/logic_toy_car.blend and b/logic_toy_car/logic_toy_car.blend differ diff --git a/logic_transform/README.md b/logic_transform/README.md new file mode 100644 index 0000000..2ced159 --- /dev/null +++ b/logic_transform/README.md @@ -0,0 +1,3 @@ +Applies a transform to the cube every frame from a logic tree. + +- Watch the cube move; check the debug console. diff --git a/logic_transform/logic_transform.blend b/logic_transform/logic_transform.blend index 2b8d4e0..d147996 100644 Binary files a/logic_transform/logic_transform.blend and b/logic_transform/logic_transform.blend differ diff --git a/macro_lnxpack/Sources/lnx/Macros.hx b/macro_lnxpack/Sources/lnx/Macros.hx index c222a80..495aa37 100644 --- a/macro_lnxpack/Sources/lnx/Macros.hx +++ b/macro_lnxpack/Sources/lnx/Macros.hx @@ -21,6 +21,7 @@ class Macros { else if( Context.defined('kha_html5') ) 'html5'; else Context.fatalError('Only krom and html5 are supported targets for this project', pos ); var dir = Sys.getCwd() + target; + if( !FileSystem.exists('$dir/Scene.lnx') ) dir = '$dir/data'; var files = FileSystem.readDirectory(dir); var sceneData : TSceneFormat = null; var meshes = new Array(); diff --git a/macro_lnxpack/macro_lnxpack.blend b/macro_lnxpack/macro_lnxpack.blend index 70a0d62..2688af1 100644 Binary files a/macro_lnxpack/macro_lnxpack.blend and b/macro_lnxpack/macro_lnxpack.blend differ diff --git a/material_alpha/material_alpha.blend b/material_alpha/material_alpha.blend index 0d5af84..5b4be6f 100644 Binary files a/material_alpha/material_alpha.blend and b/material_alpha/material_alpha.blend differ diff --git a/material_bake/README.md b/material_bake/README.md new file mode 100644 index 0000000..56cabc0 --- /dev/null +++ b/material_bake/README.md @@ -0,0 +1,3 @@ +Pre-baked lightmap textures on a box, cube and sphere. + +- Left-click drag to orbit the camera, scroll to zoom. diff --git a/material_bake/material_bake.blend b/material_bake/material_bake.blend index 57f32fe..d2e9b5f 100644 Binary files a/material_bake/material_bake.blend and b/material_bake/material_bake.blend differ diff --git a/material_batch/README.md b/material_batch/README.md new file mode 100644 index 0000000..03f4205 --- /dev/null +++ b/material_batch/README.md @@ -0,0 +1,3 @@ +Material batching stress test - hundreds of Suzanne instances sharing one material. + +- Watch the renderer handle the batch. diff --git a/material_batch/material_batch.blend b/material_batch/material_batch.blend index 5d022ac..88a82f9 100644 Binary files a/material_batch/material_batch.blend and b/material_batch/material_batch.blend differ diff --git a/material_billboard/README.md b/material_billboard/README.md new file mode 100644 index 0000000..1b0be14 --- /dev/null +++ b/material_billboard/README.md @@ -0,0 +1,3 @@ +Billboarded bunny sprites that always face the camera. + +- WASD keys and mouse to navigate. diff --git a/material_billboard/material_billboard.blend b/material_billboard/material_billboard.blend index 9490c20..5b1add2 100644 Binary files a/material_billboard/material_billboard.blend and b/material_billboard/material_billboard.blend differ diff --git a/material_bump/README.md b/material_bump/README.md new file mode 100644 index 0000000..4fadc3c --- /dev/null +++ b/material_bump/README.md @@ -0,0 +1,3 @@ +Bump-mapped materials on a cube and planes. + +- WASD keys and mouse to navigate. diff --git a/material_bump/material_bump.blend b/material_bump/material_bump.blend index 7f09c5e..d7970bc 100644 Binary files a/material_bump/material_bump.blend and b/material_bump/material_bump.blend differ diff --git a/material_decal/README.md b/material_decal/README.md new file mode 100644 index 0000000..cf6d59a --- /dev/null +++ b/material_decal/README.md @@ -0,0 +1,3 @@ +Decal material projected onto the checkered surface. + +- WASD keys and mouse to navigate. diff --git a/material_decal/material_decal.blend b/material_decal/material_decal.blend index c13c543..43db725 100644 Binary files a/material_decal/material_decal.blend and b/material_decal/material_decal.blend differ diff --git a/material_decal_colors/material_decal_colors.blend b/material_decal_colors/material_decal_colors.blend index fe14c8f..baf9086 100644 Binary files a/material_decal_colors/material_decal_colors.blend and b/material_decal_colors/material_decal_colors.blend differ diff --git a/material_depth_texture/material_depth_texture.blend b/material_depth_texture/material_depth_texture.blend index 1fefbc3..44e43a0 100644 Binary files a/material_depth_texture/material_depth_texture.blend and b/material_depth_texture/material_depth_texture.blend differ diff --git a/material_displace/material_displace.blend b/material_displace/material_displace.blend index b4f7dc8..6be8b64 100644 Binary files a/material_displace/material_displace.blend and b/material_displace/material_displace.blend differ diff --git a/material_glossy_metallic/README.md b/material_glossy_metallic/README.md new file mode 100644 index 0000000..e9f1335 --- /dev/null +++ b/material_glossy_metallic/README.md @@ -0,0 +1,3 @@ +Grid of spheres ranging from glossy to metallic. + +- WASD keys and mouse to navigate. diff --git a/material_glossy_metallic/material_glossy_metallic.blend b/material_glossy_metallic/material_glossy_metallic.blend index a24e896..47e5e97 100644 Binary files a/material_glossy_metallic/material_glossy_metallic.blend and b/material_glossy_metallic/material_glossy_metallic.blend differ diff --git a/material_multiuvs/README.md b/material_multiuvs/README.md new file mode 100644 index 0000000..4c6bca9 --- /dev/null +++ b/material_multiuvs/README.md @@ -0,0 +1,3 @@ +Single material driven by two UV sets. + +- WASD keys and mouse to navigate. diff --git a/material_multiuvs/checker.png b/material_multiuvs/checker.png new file mode 100644 index 0000000..0f4e23a Binary files /dev/null and b/material_multiuvs/checker.png differ diff --git a/material_multiuvs/checker_rough.png b/material_multiuvs/checker_rough.png new file mode 100644 index 0000000..5fad6a5 Binary files /dev/null and b/material_multiuvs/checker_rough.png differ diff --git a/material_multiuvs/multiuvs.blend b/material_multiuvs/multiuvs.blend index fa96ceb..eede674 100644 Binary files a/material_multiuvs/multiuvs.blend and b/material_multiuvs/multiuvs.blend differ diff --git a/material_normalmap/README.md b/material_normalmap/README.md new file mode 100644 index 0000000..a027436 --- /dev/null +++ b/material_normalmap/README.md @@ -0,0 +1,3 @@ +Normal-mapped Suzanne. + +- WASD keys and mouse to navigate. diff --git a/material_normalmap/material_normalmap.blend b/material_normalmap/material_normalmap.blend index 9746d03..04312ea 100644 Binary files a/material_normalmap/material_normalmap.blend and b/material_normalmap/material_normalmap.blend differ diff --git a/material_params/material_params.blend b/material_params/material_params.blend index 39f84c0..bb43379 100644 Binary files a/material_params/material_params.blend and b/material_params/material_params.blend differ diff --git a/material_shadeless/README.md b/material_shadeless/README.md new file mode 100644 index 0000000..bea76ae --- /dev/null +++ b/material_shadeless/README.md @@ -0,0 +1,3 @@ +Shadeless (unlit) material on a cube. + +- Runs automatically; the cube ignores scene lighting. diff --git a/material_shadeless/material_shadeless.blend b/material_shadeless/material_shadeless.blend index 486f315..8586ee8 100644 Binary files a/material_shadeless/material_shadeless.blend and b/material_shadeless/material_shadeless.blend differ diff --git a/material_shaders/README.md b/material_shaders/README.md new file mode 100644 index 0000000..d86b0a3 --- /dev/null +++ b/material_shaders/README.md @@ -0,0 +1,3 @@ +Custom shader parameters animated over time. + +- Move the mouse vertically to change the shader value. diff --git a/material_shaders/material_shaders.blend b/material_shaders/material_shaders.blend index eaa859b..8defed4 100644 Binary files a/material_shaders/material_shaders.blend and b/material_shaders/material_shaders.blend differ diff --git a/material_sss/README.md b/material_sss/README.md new file mode 100644 index 0000000..4dd8b93 --- /dev/null +++ b/material_sss/README.md @@ -0,0 +1,3 @@ +Subsurface-scattering materials on spheres. + +- WASD keys and mouse to navigate. diff --git a/material_sss/material_sss.blend b/material_sss/material_sss.blend index 9950090..b36e19a 100644 Binary files a/material_sss/material_sss.blend and b/material_sss/material_sss.blend differ diff --git a/material_translucent/README.md b/material_translucent/README.md new file mode 100644 index 0000000..cd36041 --- /dev/null +++ b/material_translucent/README.md @@ -0,0 +1,3 @@ +Translucent materials on spheres. + +- WASD keys and mouse to navigate. diff --git a/material_translucent/material_translucent.blend b/material_translucent/material_translucent.blend index 2529ab1..732f41a 100644 Binary files a/material_translucent/material_translucent.blend and b/material_translucent/material_translucent.blend differ diff --git a/material_video/material_video.blend b/material_video/material_video.blend index 67587ed..d1d018f 100644 Binary files a/material_video/material_video.blend and b/material_video/material_video.blend differ diff --git a/mesh_generate/Sources/lnx/BoxGenerator.hx b/mesh_generate/Sources/lnx/BoxGenerator.hx index c078a1a..9695091 100644 --- a/mesh_generate/Sources/lnx/BoxGenerator.hx +++ b/mesh_generate/Sources/lnx/BoxGenerator.hx @@ -62,6 +62,7 @@ class BoxGenerator extends iron.Trait { var rawmeshData:TMeshData = { name: "BoxMesh", + sorting_index: 0, vertex_arrays: [pos, nor], index_arrays: [ind], // Usable to scale positions over the (-1, 1) range diff --git a/mesh_generate/mesh_generate.blend b/mesh_generate/mesh_generate.blend index 8fd8980..b835398 100644 Binary files a/mesh_generate/mesh_generate.blend and b/mesh_generate/mesh_generate.blend differ diff --git a/mesh_geometry/README.md b/mesh_geometry/README.md new file mode 100644 index 0000000..86ead09 --- /dev/null +++ b/mesh_geometry/README.md @@ -0,0 +1,3 @@ +Procedural mesh generated by a logic tree, with canvas text. + +- Runs automatically; watch the generated geometry and on-screen text. diff --git a/mesh_geometry/mesh_geometry.blend b/mesh_geometry/mesh_geometry.blend index b432a9a..b68782f 100644 Binary files a/mesh_geometry/mesh_geometry.blend and b/mesh_geometry/mesh_geometry.blend differ diff --git a/mesh_import/README.md b/mesh_import/README.md new file mode 100644 index 0000000..673e213 --- /dev/null +++ b/mesh_import/README.md @@ -0,0 +1,3 @@ +Imports a .obj mesh at runtime with physics. + +- Click the canvas to spawn the imported mesh; it drops under physics. diff --git a/mesh_import/Sources/lnx/ImportMesh.hx b/mesh_import/Sources/lnx/ImportMesh.hx index b3911bb..36622e9 100644 --- a/mesh_import/Sources/lnx/ImportMesh.hx +++ b/mesh_import/Sources/lnx/ImportMesh.hx @@ -28,6 +28,7 @@ class ImportMesh extends iron.Trait { var rawmeshData:TMeshData = { name: "BoxMesh", + sorting_index: 0, vertex_arrays: [pos, nor], index_arrays: [ind], // Usable to scale positions over the (-1, 1) range diff --git a/mesh_import/mesh_import.blend b/mesh_import/mesh_import.blend index b589c4b..0ea049c 100644 Binary files a/mesh_import/mesh_import.blend and b/mesh_import/mesh_import.blend differ diff --git a/mesh_terrain/mesh_terrain.blend b/mesh_terrain/mesh_terrain.blend index a4bb6d3..4d947a4 100644 Binary files a/mesh_terrain/mesh_terrain.blend and b/mesh_terrain/mesh_terrain.blend differ diff --git a/navmesh/navmesh.blend b/navmesh/navmesh.blend index 0e1c1ed..6b1d9c1 100644 Binary files a/navmesh/navmesh.blend and b/navmesh/navmesh.blend differ diff --git a/navmesh_follow/navmesh_follow.blend b/navmesh_follow/navmesh_follow.blend index f044e0a..8f7ca4b 100644 Binary files a/navmesh_follow/navmesh_follow.blend and b/navmesh_follow/navmesh_follow.blend differ diff --git a/network_p2p_zui_chat/network_p2p_zui_chat.blend b/network_p2p_zui_chat/network_p2p_zui_chat.blend index a729deb..2711793 100644 Binary files a/network_p2p_zui_chat/network_p2p_zui_chat.blend and b/network_p2p_zui_chat/network_p2p_zui_chat.blend differ diff --git a/network_zui_chat/network_zui_chat.blend b/network_zui_chat/network_zui_chat.blend index 2fc458b..209f047 100644 Binary files a/network_zui_chat/network_zui_chat.blend and b/network_zui_chat/network_zui_chat.blend differ diff --git a/particle_bunny/README.md b/particle_bunny/README.md new file mode 100644 index 0000000..45f520e --- /dev/null +++ b/particle_bunny/README.md @@ -0,0 +1,3 @@ +Particles emitted from a bunny mesh. + +- WASD keys and mouse to navigate. diff --git a/particle_bunny/particle_bunny.blend b/particle_bunny/particle_bunny.blend index 17332c3..eaaa753 100644 Binary files a/particle_bunny/particle_bunny.blend and b/particle_bunny/particle_bunny.blend differ diff --git a/particle_hair/README.md b/particle_hair/README.md new file mode 100644 index 0000000..91b4f23 --- /dev/null +++ b/particle_hair/README.md @@ -0,0 +1,3 @@ +Hair particles on a mesh. + +- WASD keys and mouse to navigate. diff --git a/particle_hair/particle_hair.blend b/particle_hair/particle_hair.blend index 46865a4..8fc8674 100644 Binary files a/particle_hair/particle_hair.blend and b/particle_hair/particle_hair.blend differ diff --git a/particle_hair_animated/particle_hair_animated.blend b/particle_hair_animated/particle_hair_animated.blend index 1d2c4a4..c0f8dec 100644 Binary files a/particle_hair_animated/particle_hair_animated.blend and b/particle_hair_animated/particle_hair_animated.blend differ diff --git a/particle_info/README.md b/particle_info/README.md new file mode 100644 index 0000000..0d26263 --- /dev/null +++ b/particle_info/README.md @@ -0,0 +1,3 @@ +Particle system attributes and info display. + +- WASD keys and mouse to navigate. diff --git a/particle_info/particle_info.blend b/particle_info/particle_info.blend index 618b402..b7e2692 100644 Binary files a/particle_info/particle_info.blend and b/particle_info/particle_info.blend differ diff --git a/particle_mesh/particle_mesh.blend b/particle_mesh/particle_mesh.blend index d2362fa..8ae7d1e 100644 Binary files a/particle_mesh/particle_mesh.blend and b/particle_mesh/particle_mesh.blend differ diff --git a/particle_smoke/README.md b/particle_smoke/README.md new file mode 100644 index 0000000..f77bed4 --- /dev/null +++ b/particle_smoke/README.md @@ -0,0 +1,3 @@ +Smoke particle simulation in a physics world. + +- WASD keys and mouse to navigate. diff --git a/particle_smoke/particle_smoke.blend b/particle_smoke/particle_smoke.blend index 42479a5..ec9fec6 100644 Binary files a/particle_smoke/particle_smoke.blend and b/particle_smoke/particle_smoke.blend differ diff --git a/physics_break/README.md b/physics_break/README.md new file mode 100644 index 0000000..ac590f5 --- /dev/null +++ b/physics_break/README.md @@ -0,0 +1,3 @@ +Breakable physics joints - rigid bodies fracture under stress. + +- Watch the structure break apart. diff --git a/physics_break/physics_break.blend b/physics_break/physics_break.blend index 2f6a146..b31682d 100644 Binary files a/physics_break/physics_break.blend and b/physics_break/physics_break.blend differ diff --git a/physics_collision_groups/README.md b/physics_collision_groups/README.md new file mode 100644 index 0000000..9eba8c8 --- /dev/null +++ b/physics_collision_groups/README.md @@ -0,0 +1,3 @@ +Physics collision groups - objects only collide with matching groups. + +- Watch which objects fall through and which collide. diff --git a/physics_collision_groups/physics_collision_groups.blend b/physics_collision_groups/physics_collision_groups.blend index f287d94..d17cbfd 100644 Binary files a/physics_collision_groups/physics_collision_groups.blend and b/physics_collision_groups/physics_collision_groups.blend differ diff --git a/physics_constraints/physics_constraints.blend b/physics_constraints/physics_constraints.blend index 958eb9c..8e29315 100644 Binary files a/physics_constraints/physics_constraints.blend and b/physics_constraints/physics_constraints.blend differ diff --git a/physics_drag/physics_drag.blend b/physics_drag/physics_drag.blend index e44ecb8..a2205e7 100644 Binary files a/physics_drag/physics_drag.blend and b/physics_drag/physics_drag.blend differ diff --git a/physics_pick/physics_pick.blend b/physics_pick/physics_pick.blend index 6836ce9..6951bb5 100644 Binary files a/physics_pick/physics_pick.blend and b/physics_pick/physics_pick.blend differ diff --git a/physics_ragdoll/physics_ragdoll.blend b/physics_ragdoll/physics_ragdoll.blend index 2ca4617..4b1506f 100644 Binary files a/physics_ragdoll/physics_ragdoll.blend and b/physics_ragdoll/physics_ragdoll.blend differ diff --git a/physics_raycast/physics_raycast.blend b/physics_raycast/physics_raycast.blend index 7d01b21..e819236 100644 Binary files a/physics_raycast/physics_raycast.blend and b/physics_raycast/physics_raycast.blend differ diff --git a/physics_softbody/physics_softbody.blend b/physics_softbody/physics_softbody.blend index 7b3cd8a..c413b8c 100644 Binary files a/physics_softbody/physics_softbody.blend and b/physics_softbody/physics_softbody.blend differ diff --git a/raycast_objects/README.md b/raycast_objects/README.md new file mode 100644 index 0000000..14ef947 --- /dev/null +++ b/raycast_objects/README.md @@ -0,0 +1,3 @@ +Ray casting at scene objects. + +- Click the left mouse button to cast a ray; hits print to the debug console. diff --git a/raycast_objects/Raycast_Objects.blend b/raycast_objects/Raycast_Objects.blend index cbf2ace..95d842e 100644 Binary files a/raycast_objects/Raycast_Objects.blend and b/raycast_objects/Raycast_Objects.blend differ diff --git a/render_bloom/render_bloom.blend b/render_bloom/render_bloom.blend index 0770ddb..b3d24e8 100644 Binary files a/render_bloom/render_bloom.blend and b/render_bloom/render_bloom.blend differ diff --git a/render_colorgrading/render_colorgrading.blend b/render_colorgrading/render_colorgrading.blend index 6a01938..f5d7b68 100644 Binary files a/render_colorgrading/render_colorgrading.blend and b/render_colorgrading/render_colorgrading.blend differ diff --git a/render_splitscreen/README.md b/render_splitscreen/README.md new file mode 100644 index 0000000..c7819bc --- /dev/null +++ b/render_splitscreen/README.md @@ -0,0 +1,3 @@ +Split-screen rendering - one scene drawn across multiple viewports. + +- Watch the rotating Suzanne across the viewports. diff --git a/render_splitscreen/render_splitscreen.blend b/render_splitscreen/render_splitscreen.blend index 4a20f17..27a2320 100644 Binary files a/render_splitscreen/render_splitscreen.blend and b/render_splitscreen/render_splitscreen.blend differ diff --git a/render_to_texture/render_to_texture.blend b/render_to_texture/render_to_texture.blend index 17f9b28..499e376 100644 Binary files a/render_to_texture/render_to_texture.blend and b/render_to_texture/render_to_texture.blend differ diff --git a/render_voxelao_teapots/README.md b/render_voxelao_teapots/README.md new file mode 100644 index 0000000..04fb62d --- /dev/null +++ b/render_voxelao_teapots/README.md @@ -0,0 +1,3 @@ +Voxel ambient occlusion on teapots. + +- WASD keys and mouse to navigate. diff --git a/render_voxelao_teapots/render_voxelao_teapots.blend b/render_voxelao_teapots/render_voxelao_teapots.blend index a3e5be4..7bfeade 100644 Binary files a/render_voxelao_teapots/render_voxelao_teapots.blend and b/render_voxelao_teapots/render_voxelao_teapots.blend differ diff --git a/render_voxelao_teapots/shadows.blend b/render_voxelao_teapots/shadows.blend index 1b018b3..194586e 100644 Binary files a/render_voxelao_teapots/shadows.blend and b/render_voxelao_teapots/shadows.blend differ diff --git a/scene_stream/scene_stream.blend b/scene_stream/scene_stream.blend index 61e6a5c..cd767c8 100644 Binary files a/scene_stream/scene_stream.blend and b/scene_stream/scene_stream.blend differ diff --git a/screentex/README.md b/screentex/README.md new file mode 100644 index 0000000..930ca5b --- /dev/null +++ b/screentex/README.md @@ -0,0 +1,3 @@ +Captures the rendered frame into a texture drawn as a 2D overlay. + +- Runs automatically; the screen texture updates each frame. diff --git a/screentex/screentex.blend b/screentex/screentex.blend index 2e116aa..00ef615 100644 Binary files a/screentex/screentex.blend and b/screentex/screentex.blend differ diff --git a/script_camera_lerp/script_camera_lerp.blend b/script_camera_lerp/script_camera_lerp.blend index 978ee81..4120430 100644 Binary files a/script_camera_lerp/script_camera_lerp.blend and b/script_camera_lerp/script_camera_lerp.blend differ diff --git a/script_linkedgroup/README.md b/script_linkedgroup/README.md index 59f01a9..bc11102 100644 --- a/script_linkedgroup/README.md +++ b/script_linkedgroup/README.md @@ -1 +1,3 @@ -Click to spawn pin \ No newline at end of file +Spawning a linked object group from a Haxe trait. + +- Click to spawn a PinGroup; the spawned pins announce themselves in the console. diff --git a/script_linkedgroup/pin.blend b/script_linkedgroup/pin.blend index f5f804a..4c81ee5 100644 Binary files a/script_linkedgroup/pin.blend and b/script_linkedgroup/pin.blend differ diff --git a/script_linkedgroup/script_linkedgroup.blend b/script_linkedgroup/script_linkedgroup.blend index bd19ed3..d829629 100644 Binary files a/script_linkedgroup/script_linkedgroup.blend and b/script_linkedgroup/script_linkedgroup.blend differ diff --git a/script_logic_talk/README.md b/script_logic_talk/README.md new file mode 100644 index 0000000..670b4a5 --- /dev/null +++ b/script_logic_talk/README.md @@ -0,0 +1,4 @@ +Haxe and logic nodes exchanging data through a shared property. + +- The project lives in the property/ subfolder (property.blend). +- Runs automatically; check the console. diff --git a/script_logic_talk/property/README.md b/script_logic_talk/property/README.md new file mode 100644 index 0000000..6ce3255 --- /dev/null +++ b/script_logic_talk/property/README.md @@ -0,0 +1,3 @@ +Haxe and logic nodes exchanging data through a shared property. + +- Runs automatically; check the console. diff --git a/script_logic_talk/property/property.blend b/script_logic_talk/property/property.blend index 1a4ceed..eef79cf 100644 Binary files a/script_logic_talk/property/property.blend and b/script_logic_talk/property/property.blend differ diff --git a/script_properties/README.md b/script_properties/README.md new file mode 100644 index 0000000..ecd77a7 --- /dev/null +++ b/script_properties/README.md @@ -0,0 +1,3 @@ +Reads custom object properties from a Haxe trait. + +- Check the console for the printed property values. diff --git a/script_properties/script_properties.blend b/script_properties/script_properties.blend index 985ab34..45bae0e 100644 Binary files a/script_properties/script_properties.blend and b/script_properties/script_properties.blend differ diff --git a/script_properties_global/README.md b/script_properties_global/README.md new file mode 100644 index 0000000..1ae3d0c --- /dev/null +++ b/script_properties_global/README.md @@ -0,0 +1,3 @@ +Reads global config values from Haxe traits. + +- Check the console for the printed config values. diff --git a/script_properties_global/script_properties_global.blend b/script_properties_global/script_properties_global.blend index 57f1282..f35195a 100644 Binary files a/script_properties_global/script_properties_global.blend and b/script_properties_global/script_properties_global.blend differ diff --git a/script_rigidbody_trigger/script_rigidbody_trigger.blend b/script_rigidbody_trigger/script_rigidbody_trigger.blend index 60f5801..2db36b6 100644 Binary files a/script_rigidbody_trigger/script_rigidbody_trigger.blend and b/script_rigidbody_trigger/script_rigidbody_trigger.blend differ diff --git a/script_spawnobject/README.md b/script_spawnobject/README.md new file mode 100644 index 0000000..4a46518 --- /dev/null +++ b/script_spawnobject/README.md @@ -0,0 +1,3 @@ +Spawning objects from the scene hierarchy in a Haxe trait. + +- Objects spawn automatically on start, with and without children. diff --git a/script_spawnobject/script_spawnobject.blend b/script_spawnobject/script_spawnobject.blend index 96be83c..ff451e9 100644 Binary files a/script_spawnobject/script_spawnobject.blend and b/script_spawnobject/script_spawnobject.blend differ diff --git a/script_transform/README.md b/script_transform/README.md index 0ebe169..2c66023 100644 --- a/script_transform/README.md +++ b/script_transform/README.md @@ -1 +1,3 @@ -Check console \ No newline at end of file +Prints world-space transform locations from a Haxe trait. + +- Check the console on start. diff --git a/script_transform/script_transform.blend b/script_transform/script_transform.blend index 9435577..b89ab08 100644 Binary files a/script_transform/script_transform.blend and b/script_transform/script_transform.blend differ diff --git a/server_stream/Sources/lnx/LoadTrait.hx b/server_stream/Sources/lnx/LoadTrait.hx index 4fa31c8..20a0f15 100644 --- a/server_stream/Sources/lnx/LoadTrait.hx +++ b/server_stream/Sources/lnx/LoadTrait.hx @@ -42,6 +42,7 @@ class LoadTrait extends iron.Trait { var noraAr: TVertexArray = { attrib: "nor", values: mesh.nora, data: "short2norm"}; var raw:TMeshData = { name: "Mesh", + sorting_index: 0, vertex_arrays: [posaAr, noraAr], index_arrays: [ { values: mesh.inda, material: 0 } diff --git a/server_stream/server_stream.blend b/server_stream/server_stream.blend index 83f60dd..ec1c6a6 100644 Binary files a/server_stream/server_stream.blend and b/server_stream/server_stream.blend differ diff --git a/sound/sound.blend b/sound/sound.blend index d10fee1..e27a9b3 100644 Binary files a/sound/sound.blend and b/sound/sound.blend differ diff --git a/spawn_from_scene/spawn_from_scene.blend b/spawn_from_scene/spawn_from_scene.blend index 6f33c8d..58deb08 100644 Binary files a/spawn_from_scene/spawn_from_scene.blend and b/spawn_from_scene/spawn_from_scene.blend differ diff --git a/text_area_string/README.md b/text_area_string/README.md new file mode 100644 index 0000000..c397303 --- /dev/null +++ b/text_area_string/README.md @@ -0,0 +1,3 @@ +Canvas text layout - aligned and wrapped strings. + +- Watch the on-screen text positions (left, center, right). diff --git a/text_area_string/text_area_string.blend b/text_area_string/text_area_string.blend index 32a45a6..9854023 100644 Binary files a/text_area_string/text_area_string.blend and b/text_area_string/text_area_string.blend differ diff --git a/tilesheet/Sources/lnx/AnimControl.hx b/tilesheet/Sources/lnx/AnimControl.hx index 081af62..66a47f5 100644 --- a/tilesheet/Sources/lnx/AnimControl.hx +++ b/tilesheet/Sources/lnx/AnimControl.hx @@ -8,7 +8,7 @@ class AnimControl extends iron.Trait { super(); notifyOnInit(function() { - tilesheet = cast(object, iron.object.MeshObject).tilesheet; + tilesheet = cast(object, iron.object.MeshObject).activeTilesheet; iron.system.Tween.timer(Std.random(8), playAnim); }); } diff --git a/tilesheet/tilesheet.blend b/tilesheet/tilesheet.blend index 075a866..4133de1 100644 Binary files a/tilesheet/tilesheet.blend and b/tilesheet/tilesheet.blend differ diff --git a/tilesheet_2d/Sources/lnx/AnimControl.hx b/tilesheet_2d/Sources/lnx/AnimControl.hx index 081af62..66a47f5 100644 --- a/tilesheet_2d/Sources/lnx/AnimControl.hx +++ b/tilesheet_2d/Sources/lnx/AnimControl.hx @@ -8,7 +8,7 @@ class AnimControl extends iron.Trait { super(); notifyOnInit(function() { - tilesheet = cast(object, iron.object.MeshObject).tilesheet; + tilesheet = cast(object, iron.object.MeshObject).activeTilesheet; iron.system.Tween.timer(Std.random(8), playAnim); }); } diff --git a/tilesheet_2d/tilesheet_2d.blend b/tilesheet_2d/tilesheet_2d.blend index 1345090..04162f2 100644 Binary files a/tilesheet_2d/tilesheet_2d.blend and b/tilesheet_2d/tilesheet_2d.blend differ diff --git a/tilesheet_walkcycle/tilesheet_walkcycle.blend b/tilesheet_walkcycle/tilesheet_walkcycle.blend index ce3f5f9..0aa184d 100644 Binary files a/tilesheet_walkcycle/tilesheet_walkcycle.blend and b/tilesheet_walkcycle/tilesheet_walkcycle.blend differ diff --git a/tween/README.md b/tween/README.md new file mode 100644 index 0000000..e81f505 --- /dev/null +++ b/tween/README.md @@ -0,0 +1,3 @@ +Tween easing demo using Expo curves. + +- Watch the cube animate back and forth automatically. diff --git a/tween/tween.blend b/tween/tween.blend index 18e0ed6..089501b 100644 Binary files a/tween/tween.blend and b/tween/tween.blend differ diff --git a/ui_canvas/Bundled/canvas/_themes.json b/ui_canvas/Bundled/canvas/_themes.json new file mode 100644 index 0000000..e69de29 diff --git a/ui_canvas/ui_canvas.blend b/ui_canvas/ui_canvas.blend index e72935d..b6be0b4 100644 Binary files a/ui_canvas/ui_canvas.blend and b/ui_canvas/ui_canvas.blend differ diff --git a/ui_events/Bundled/canvas/_themes.json b/ui_events/Bundled/canvas/_themes.json new file mode 100644 index 0000000..e69de29 diff --git a/ui_events/ui_events.blend b/ui_events/ui_events.blend index 4513e5f..c6b8ad7 100644 Binary files a/ui_events/ui_events.blend and b/ui_events/ui_events.blend differ diff --git a/ui_script2d/ui_script2d.blend b/ui_script2d/ui_script2d.blend index 36eb647..bc0830c 100644 Binary files a/ui_script2d/ui_script2d.blend and b/ui_script2d/ui_script2d.blend differ diff --git a/ui_script3d/ui_script3d.blend b/ui_script3d/ui_script3d.blend index 99f702c..442d511 100644 Binary files a/ui_script3d/ui_script3d.blend and b/ui_script3d/ui_script3d.blend differ diff --git a/wasm_call/wasm_call.blend b/wasm_call/wasm_call.blend index c7964cd..87bd3a1 100644 Binary files a/wasm_call/wasm_call.blend and b/wasm_call/wasm_call.blend differ diff --git a/wasm_trait_c/wasm_trait_c.blend b/wasm_trait_c/wasm_trait_c.blend index 1a02ea4..a2aebb8 100644 Binary files a/wasm_trait_c/wasm_trait_c.blend and b/wasm_trait_c/wasm_trait_c.blend differ diff --git a/wasm_trait_rust/wasm_trait_rust.blend b/wasm_trait_rust/wasm_trait_rust.blend index b4a06fd..11440c8 100644 Binary files a/wasm_trait_rust/wasm_trait_rust.blend and b/wasm_trait_rust/wasm_trait_rust.blend differ diff --git a/world_sun_direction/Sources/lnx/MyTrait.hx b/world_sun_direction/Sources/lnx/MyTrait.hx index d1a5347..511f98d 100644 --- a/world_sun_direction/Sources/lnx/MyTrait.hx +++ b/world_sun_direction/Sources/lnx/MyTrait.hx @@ -1,7 +1,7 @@ package lnx; import leenkx.renderpath.HosekWilkie; -import leenkx.renderpath.Nishita; +import leenkx.renderpath.Sky; import iron.Scene; import iron.math.Vec4; import iron.system.Input; @@ -31,7 +31,7 @@ class MyTrait extends iron.Trait { switch model { case 'hosekwilkie': HosekWilkie.recompute(world); - case 'nishita': Nishita.recompute(world); + case 'nishita': Sky.recomputeSingleScatter(world); } // Set world strength diff --git a/world_sun_direction/world_sun_direction.blend b/world_sun_direction/world_sun_direction.blend index 1e9e01b..31a4f7a 100644 Binary files a/world_sun_direction/world_sun_direction.blend and b/world_sun_direction/world_sun_direction.blend differ