You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function function makeTextSprite(message, opts) {[...]} gives me an error with the newest THREE.js(r80).
Something like "there is no extension for that in the material".
The following should be taken out, to still work properly with newer THREE.js-Versions:
//in the line where this is located:
var spriteMaterial = new THREE.SpriteMaterial({
map: texture//, useScreenCoordinates: false
//just commenting that out did the trick
});
Just in case someone else gets the same error.
Also 1 minor question (I don't know if this should get a separate issue):
Why can't I display "lots" of text with the makeTextSprite-function?
For example a timestamp that looks like this: "day 1, 08:00:00"
Only if I define the context like this: context.fillText(message, 0, fontsize, 256);
Also I needed to use another scaling for the sprite too:
sprite.scale.set(200, 70, 2.0);
It shows me the whole text. Otherwise it is cut off after a few digits.
Any suggestions there?
The text was updated successfully, but these errors were encountered:
The function function makeTextSprite(message, opts) {[...]} gives me an error with the newest THREE.js(r80).
Something like "there is no extension for that in the material".
The following should be taken out, to still work properly with newer THREE.js-Versions:
//in the line where this is located:
var spriteMaterial = new THREE.SpriteMaterial({
map: texture//, useScreenCoordinates: false
//just commenting that out did the trick
});
Just in case someone else gets the same error.
Also 1 minor question (I don't know if this should get a separate issue):
Why can't I display "lots" of text with the makeTextSprite-function?
For example a timestamp that looks like this: "day 1, 08:00:00"
Only if I define the context like this: context.fillText(message, 0, fontsize, 256);
Also I needed to use another scaling for the sprite too:
sprite.scale.set(200, 70, 2.0);
It shows me the whole text. Otherwise it is cut off after a few digits.
Any suggestions there?
The text was updated successfully, but these errors were encountered: