ladybug-tools / spider

:spider_web: 3D interactive analysis in your browser mostly written around the Three.js JavaScript library
http://www.ladybug.tools/spider
44 stars 14 forks source link

Requesting some help with TextSprite #62

Closed antonszilasi closed 6 years ago

antonszilasi commented 6 years ago

@theo-armour

I would appreciate your help with something which I am struggling with. I am trying to add text to my x,y,z axis and the North,South,East and West facades based on the example seen here:

https://stemkoski.github.io/Three.js/Sprite-Text-Labels.html

Unfortunately I cannot get my text to stay put when I rotate the scene (the x in the red triangle) see the link here.

Rotate it and you'll see what I mean.

The code which I am using to add the text is here: https://github.com/antonszilasi/spiderAnton/blob/master/speed/speed-page.html#L443-L448

while the function to make the text is here: https://github.com/antonszilasi/spiderAnton/blob/master/speed/speed-page.html#L342-L392

If you could help me to make it "stay put" I'd really appreciate it!