bimvie.ws-viewer icon indicating copy to clipboard operation
bimvie.ws-viewer copied to clipboard

Colors/Reuse/Selection

Open rubendel opened this issue 8 years ago • 3 comments

So there are quite a few combinations of colors/reuse/selection, all of them should work, efficiently.

Colors:

  • Indices/Vertices/Normals + Type (like IfcDoor) -> Color is based on the type, a SceneJS material can be used
  • Indices/Vertices/Normals/Colors -> Color is based on per-vertex colors, no SceneJS material

Reuse:

  • Reused (for example a window with the same dimensions being reused all over the building)
  • Not reused (for example just one instance, or simply no reuse defined in original IFC file)

Selection:

  • An object can be not-selected
  • An object can be the primary selected object (just one object allowed to be in this state)
  • An object can be part of the secondary selection (multiple objects allowed)

"Complications":

  • An object that is being reused, that is also being selected, should obviously not change the color of the other reused objects
  • Figure out an intuitive way of visualising the difference between the primary/secondary selection

rubendel avatar Oct 13 '15 08:10 rubendel

For "selection", would this involve some sort of constraint that prevents certain objects from being selected?

xeolabs avatar Oct 13 '15 08:10 xeolabs

Oh no with "non-selected" I mean the default state, in which an object is simply not selected. I think every object should be selectable, at least for now.

rubendel avatar Oct 13 '15 10:10 rubendel

Yet another combination:

  • Geometry that has less then 65000 or something vertices, which is fine
  • Geometry that has more than that, we split it into multiple objects now to make sure WebGL is going to be able to handle it

rubendel avatar Dec 04 '15 10:12 rubendel