Skip to content

GLB Mesh Import: Cube Models for Visible Mesh and Issue when used for Physics #4157

@aiaustin

Description

@aiaustin

Environment

Second Life Project Gltf-mesh-import 7.1.14.15205102881

Description

I have noted some issues with even the simplest mesh shape such as a cube whether loading it as a mesh, part of a larger model or trying to use the cube as a very simple physics shape for other meshes. Looking at this in isolation it seems that the Blender default cube shape has each face as a square (not triangles). I created two cubes, one the default Blender one (white) and the other with each face split to two triangles (blue). The attached .zip file has .dae and .glb exports of each.

Cubes.zip

Cube with 2 triangles per side in Blender

  • Cube.dae - Works fine.
  • Cube.glb - Works fine.

Cube with 1 square face per side in Blender as created by default with Add -> Cube (on export to DAE or GLB extra faces might be added)

  • Cube-Default-Blender-Square-Faces.dae - Works fine.
  • Cube-Default-Blender-Square-Faces.glb - Message "There was a problem uploading the file". But allows upload and rezzes anyway.

.glb models, even a simple cube, used for physics shapes appear to have issues. Note that trying to use Cube.glb as a "file" physics model gives a log entry "No physics model specified for Cube" whereas using Cube.dae shows the expected "PHYS Model Cube loaded".

P.S. Firestorm provides an option to select a default built in cube.dae for physics and I note that also has each face split into two triangles.

Reproduction steps

  1. Unzip the provided Cube.zip and obtain the .dae and .glb of the Blender default Cube and a cube with each face split into two triangles.
  2. Try mesh uploads of each and observe the messages given in UI popups, in the Log tab of the uploader and in SecondLife.log
  3. Try to use the .dae and .glb variants as a simple physics model for any GLB mesh upload and observe that there is an error message for GLB variants.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageFlags issues that need to be triaged

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions