Repository navigation
fix(3d): auto-unwrap overlapping or stretched untextured mesh UVs - #504
Open
Addressmehari wants to merge 3 commits into
Open
Addressmehari wants to merge 3 commits into
Addressmehari wants to merge 3 commits into
Conversation
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.
Summary
This PR fixes two Android 3D painting usability issues and adds a top-right 3D orbit gizmo:
Fix
□(Modify) + finger drag on Android (ce8c6ada)□inChrome.ktconsumedACTION_DOWNinside Compose, soAndroidView(CanvasSurfaceView)never received the second finger's touch events—preventing□+ finger drag (e.g., 3D model orbiting when 3D painting with a finger is enabled).modifyPointerIdinCanvasViewModeland forward non-□pointers fromAppRoot.kt's rootPointerEventPass.Initialtovm.canvasTouch.Add Blender-style 3D Orbit Gizmo on Android (
1e544b74)model_rotation()andsnap_model_view(yaw, pitch)onCanvasSession(scene3d.rs).OrbitGizmoin the top-right corner (OrbitGizmo.kt,AppRoot.kt) supporting free 3D orbit dragging, tap-to-snap on±X / ±Y / ±Zaxes,X/Yaxis-lock toggles, and15°snappy step mode.Auto-unwrap overlapping, stretched, or out-of-bounds UVs on untextured meshes (
8240a068)part_has_maps(),part_needs_atlas_uvs(), andensure_non_overlapping_uvs()incrates/engine/src/mesh.rs(called fromopen_modelandopen_saved_modelinscene3d.rs) to group connected faces into tangent-projected UV charts and shelf-pack them cleanly into[0, 1].Testing
procraft-desktop).installDebug) and 3D orbit/painting controls on device.