Skip to content

fix(editor): correct model scaling and add reliable water rendering#1049

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/enhance-map-editor-ui-Lqc0E
Jan 26, 2026
Merged

fix(editor): correct model scaling and add reliable water rendering#1049
braedonsaunders merged 1 commit into
mainfrom
claude/enhance-map-editor-ui-Lqc0E

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

Model positioning:

  • Fix real 3D models rendering too high (floating above terrain)
  • Real models are grounded at y=0, so position at terrainHeight directly
  • Placeholder geometries are centered, so add height/2 for them
  • Update position calculations in addObject, updateObject, updateObjectScale

Water rendering:

  • Create EditorWater class with simple, reliable water visualization
  • Use basic MeshLambertMaterial instead of complex ThreeWaterMesh addon
  • Properly detect water regions via flood-fill algorithm
  • Position water planes at correct height with proper transparency
  • Replace WaterMesh import with EditorWater in EditorTerrain

Model positioning:
- Fix real 3D models rendering too high (floating above terrain)
- Real models are grounded at y=0, so position at terrainHeight directly
- Placeholder geometries are centered, so add height/2 for them
- Update position calculations in addObject, updateObject, updateObjectScale

Water rendering:
- Create EditorWater class with simple, reliable water visualization
- Use basic MeshLambertMaterial instead of complex ThreeWaterMesh addon
- Properly detect water regions via flood-fill algorithm
- Position water planes at correct height with proper transparency
- Replace WaterMesh import with EditorWater in EditorTerrain
@braedonsaunders braedonsaunders merged commit f9ac15a into main Jan 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants