-
Hello, When I place an example hotspot on an object using the Model viewer editor on the internet, I can easily find the data position stored in the generated HTML file in blender (Its simply the Vertext coordinates in meters). However, I have no idea where to find the data normal coordinates. EDIT: Via the "Spreadsheet" I can display the normal data of a face under "Face". This however does not work with single vertex point. Would this even be possible? Can a Single Point have a normal data? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm not sure either, but Blender certainly has a concept of normals. Our editor uses face normals specifically (the cross product of the three vertex coordinates of the triangle). |
Beta Was this translation helpful? Give feedback.
I have actually had similar ideas. First I worked with a system that emulated the normal data via the direction vector between a camera and the empty. But this worked only sometimes and I could not find the error. I am now working with a method where the nearest surface normal of the nearest object is copied as normal data.
So I have a blender scene with one or more objects and position my emptys around the object. the emptys should be named hotspot-xx. If you add a "|" in the name and another text behind it, the text will be used as label for the later hotspot. So for example: "hotspot-07 | Astronaut Helmet"
Attached the code, if someone needs a similar solution