Opened 2 years ago

Closed 2 years ago

#9004 closed defect (fixed)

LookSee Quest app shows models misaligned

Reported by: Tom Goddard Owned by: Tom Goddard
Priority: moderate Milestone:
Component: VR Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

If I open two atomic models and align one to another (open 7rfw, open 7dvw, mm #2 to #1) and Send to Quest with LookSee v3 the two models are far away from each other (30x molecule diameters). The GLB file displays correctly aligned in BabylonJS sandbox web viewer. So it is probably not a mistake in the GLB file. It may be a problem with how LookSee is scaling and centering the model, or it may be a bug in the GLTFast reader.

Change History (3)

comment:1 by Tom Goddard, 2 years ago

Instead of matchmaker, just translating the second model by 1 Angstrom (move x 1 model #2) seems to move the two models 1 meter apart in the initial VR view.

comment:2 by Tom Goddard, 2 years ago

Appears to be a bug in my rescaling in LookSee. It is rescaling the mesh vertices and that is not taking account of an offset from the transform, so different meshes get scaled about different centers. I scaled the mesh instead of changing the transform because of an earlier bug where scaling by large factors (100000?) caused rendering problems reported by Mike Schmid. So probably I should just fix the scaling center and still scale the mesh.

comment:3 by Tom Goddard, 2 years ago

Resolution: fixed
Status: assignedclosed

Fixed. Released LookSee version 4.

The mesh scaling was fine. The trouble was that the position offset scaling only handled the first two levels of the game object tree. It needed to scale positions at all levels of the tree.

Note: See TracTickets for help on using tickets.