Repository navigation
Detailed machine models built in Blender, better viewer lighting, moving cylinders, replay renderer - #6
Merged
Conversation
When a loaded carrier leaves its spot, the dozer no longer drops the push and drives to its park: it finishes the push and waits at the lane's end, blade up, where its outline keeps 1 m from the dumping carrier's, until the carrier has gone. In clay the carrier's wait at the dump falls from 108 to 63 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng cylinders, replay renderer Viewer (phase1/web): - site.js: physical sky as backdrop and image-based light (metal and glass no longer render black), ground-truth ambient occlusion that turns itself off below 50 fps (?quality=low|high), MSAA, shadows that follow the camera; test hooks __site.frame() and renderTiming() - linkage.js (new): poses the ZX200's cylinders and bucket four-bar from the pins in phase2/hydraulics.py, and URDF-jointed cylinders (dozer blade, carrier tip) from the parts they push - showcase.js: drives only the main joints, scripted dig cycle from site.json, pose()/step() hooks - soil.js: loads zx200_hd.glb in place of the OPERA excavator (falls back to it), and the detailed roller with its drum and wheels turning by distance travelled Models (assets/blender, Blender 4.0, rebuild with blender -b --python): - zx200_hd.glb: 20 t excavator to the OPERA ZX200 dimensions and pins, same nodes, frames and free parts, so it replaces the OPERA model without code changes; individual track shoes, cylinders with chrome rods, bucket with teeth, cab glazing, PWRI retrofit (GNSS, signal tower) - roller_hd.glb: 10.6 t single-drum roller to phase2/roller.py - blendkit.py: modelling helpers, box UVs, tileable procedural textures (paint, worn paint, steel, track, rubber), glTF export - render_replay.py + replay_io.py: render a recording (phase2/record_replay.py) with EEVEE to frames and MP4 in renders/ (git-ignored) Both models are registered as Apache-2.0 in assets/registry.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ERA models in the browser - assets/blender/ic120_hd.py -> ic120_hd.glb: rubber-tracked crawler carrier on the joint frames of PWRI's OPERA IC120 (same node names and extras); rubber belt with lugs wrapped round the raised sprocket, idler and rollers; ribbed vessel whose floor, sides, headboard and tail lip follow the server's vessel boxes, so the load sits on the floor the physics uses; tip cylinder on the source's joints; cab, engine bay, rails, PWRI antennas - assets/blender/d37_hd.py -> d37_hd.glb: crawler dozer with a power-angle-tilt blade on the joint frames of PWRI's OPERA D37PXi; steel track shoes, C-frame, lift cylinders whose rod eyes sit where soil.js's lift approximation puts them, angle cylinders, curved moldboard with cutting edge and end bits - blendkit.py: belt_path/belt_frames (a track wrapped round wheels of any size and height), add_ring_y, frame_matrix, cylinder_meshes - soil.js: one loadModel() for the excavator, carriers and dozer, preferring the detailed models - render_replay.py: uses the detailed carrier and dozer; spread camera aimed at the spoil area - site.json showcase, registry (Apache-2.0), README, screenshots Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The simulated machines were the PWRI OPERA robotics meshes (excavator, carrier, dozer, about 12–34k triangles, one flat texture each) and a box-built roller, lit by a single sky light and sun. This PR replaces all four with detailed models built procedurally in Blender, improves the browser lighting, makes the hydraulic cylinders follow the joints, and adds a Blender renderer for simulator replays.
Viewer (
phase1/web)site.js: physical sky as backdrop and image-based lighting, so metal and glass no longer render near black. Ground-truth ambient occlusion turns itself off below 50 fps (?quality=low|highoverrides). MSAA, and shadows that follow the camera.linkage.js(new): poses the ZX200 cylinders and bucket four-bar from the pins inphase2/hydraulics.py, and URDF-jointed cylinders (dozer lift and angle, carrier tip) from the parts they push.showcase.js: a scripted dig cycle in place of random joint wobble.soil.js: oneloadModel()that prefers the detailed models and falls back to the OPERA files. Adds the roller model, with its drum and wheels turning by distance travelled.Models (
assets/blender, rebuild withblender -b --python …)zx200_hd.glb,ic120_hd.glb,d37_hd.glbkeep the node names, link frames, joint extras and free parts of the OPERA files they replace, so the simulator and soil view take them with no server changes.roller_hd.glbreplaces the box-built roller.assets/registry.json.Replay renderer
render_replay.pyandreplay_io.pyrender aphase2/record_replay.pyrecording with EEVEE: terrain, soil surfaces, grains, and every machine posed assoil.jsposes it.renders/, which is git-ignored.Also on this branch:
007a19c("Dozer finishes its push and waits clear of the dump instead of parking"). It is a simulator change from another session, committed on localmainbut never pushed, so it is part of this PR's diff. It touchesphase2/only.How it was tested
phase1/test_site.py, local Chrome, GB10): 60 fps at 1600×900 before and after, no new console errors. The test reportsdrum_steel_a01below ground both before and after; that bug predates this PR.?replay), where the excavator, carriers (load in the vessel), dozer and roller are all posed correctly.python3 assets/fetch_assets.py --check: registry ok.render_replay.pyrendered the whole site recording, 2237 frames at 720p in about 37 minutes, into a 93-second video.Checklist
git commit -s, Developer Certificate of Origin): not signed offassets/registry.jsonwith an allowed licenseRESULTS.mdupdated with measured numbers: not updated (no physics changes in this PR's own commits)🤖 Generated with Claude Code