Custom annotations does not stay in correct position

annotations
3d

(Eriol726) #1

Hi, I’m trying to create an application for custom annotations where I used your ‘custom annotation’ example as base. The problem is that when I have rotated / translated the object in Sketchfab’s 3D editor, the annotation points moves to wrong positions, but if I just let the object be untransformed, it works well. Why is that? Do I need to multiply the annotation’s positions with the object’s local or world matrix to get them right? I have tested this but have not managed to get them in the correct position yet.

Thanks in advance.
//Erik


(Paul Sketch) #2

Hi,

I’m not sure I get it. could you please provide more details

  • what “custom annotation” example ? as we have several :slight_smile:
  • you “rotated / translated the object in Sketchfab’s 3D editor” using the orientation widget ? not with javascript code using the sketchfab viewer api ?
  • “tested this” you got result but not those expected ?

Thanks !


(Eriol726) #3

Hi,