hi,
I’m having an issue when creating 3d text. It appears to be very very deep. what I mean is when I turn it to the side it looks like a very long line and in addition I have to set the camera z position to around 500 in order to see it properly. Only if I set the size to 100 and the height to 300 does it look normal. I couldn’t find anyone else who has encountered such behavior. Attached is my code and an image for reference
main.js (1.4 KB)
You’re missing a “depth” parameter.
2 Likes
huh…I had a feeling I was missing something really basic and that I’m probably gonna look like a real doofus but none of the videos i found online showed use of this parameter. Thank you so much!!
1 Like
Bookmark that docs page. Videos are great for high level overviews, but a pretty terrible way to get current api info.
I also suggest learning to use the debugger. In this scenario, I would have just stepped into the constructor for the TextGeometry()…
Or go to the source code for it:
The threejs source code is pretty readable… here the depth parameter is right near the top:
thnx, I actually tried looking in the docs but either I missed it or I looked in the wrong place. from now on I’ll do that
1 Like