About 60,900 results
Open links in new tab
  1. javascript - How to scale a three.js sprite? - Stack Overflow

    Aug 8, 2020 · I am trying to display a sprite in three on javascript and make it bigger. I tried the following: THREE.ImageUtils.crossOrigin = ''; var spriteMap = THREE.ImageUtils.loadTexture( "https://cdn.

  2. Three.js Using 2D texture\sprite for animation (planeGeometry)

    I'm quite new in html5 and three.js. I've been experimenting a bit with it, and basically what I want done is to have a Mesh (I'm using planeGeometry, as the tutorial I followed used it). The Mesh ...

  3. three.js - How to put a Sprite in ThreeJS? - Stack Overflow

    Oct 15, 2019 · How to put a Sprite in ThreeJS? Asked 6 years, 2 months ago Modified 6 years, 2 months ago Viewed 379 times

  4. How to render a sprite in Three.JS? - Stack Overflow

    Mar 18, 2023 · 0 I am starting out with Three.JS and simply trying to render a sprite. However, I haven't been able to get a basic sprite to render. In my example below, I have a simple 200x200 canvas …

  5. how to rotate a sprite object in three.js? - Stack Overflow

    May 7, 2014 · I need to rotate a sprite object but it seems this is not feasible, if not, is there a way to achieve the rotation effect, maybe through the UV coordinates of the spriteMaterial, or a custom …

  6. three.js - THREE.Sprite size in px with sizeAttenuation false - Stack ...

    Jan 27, 2020 · To use pixel-based units, I recommend switching from THREE.Sprite to THREE.Points. It's material THREE.PointsMaterial has a size property that's measured in pixels if sizeAttenuation is …

  7. javascript - three.js 2D Text sprite labels - Stack Overflow

    May 7, 2014 · three.js 2D Text sprite labels Asked 11 years, 7 months ago Modified 1 year, 10 months ago Viewed 30k times

  8. Dynamically create 2D text in three.js - Stack Overflow

    The blurry text seems to happen (mainly) because three.js renders the sprite as square even though the canvas is probably wider than it is high. If you scale the sprite to have the same proportions as the …

  9. Three.js: How to position text sprites in three.js (r.64+)?

    Apr 23, 2018 · Three.js: How to position text sprites in three.js (r.64+)? Asked 7 years, 6 months ago Modified 7 years, 6 months ago Viewed 6k times

  10. How to flip the texture of a sprite along the x axis three js?

    May 21, 2020 · Unlike with meshes, it's not possible to use Sprite.scale to render it mirrored. The recommended way of doing this is by transforming texture coordinates by setting Texture.repeat to ( …