Raycast problem with SpriteMaterial.sizeAttenuation set to false
See original GitHub issueHi Friends!
SpriteMaterial.sizeAttenuation = false
seems not working as expected with rayCaster
.
I doubt the sprite size(dimension) estimation may be a little bit off, ray is very hard to hit them after apply scale()
, especially scale down.
I can upload a simplified code that regenerate this problem a bit later.
- r96
Browser
- All of them
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
THREE.Points image sprites have transparency wrong and ...
When a scene is loaded and no camera move has been done, it works ok. But when I zoom in or out the...
Read more >WebXR raycast on sprite - Questions - three.js forum
Hi, Raycast is not intersecting/colliding with the sprite in AR. ... false,depthWrite: false,sizeAttenuation : false}); sprite = new THREE.
Read more >Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting
How to depth sort entities in a raycast 3d scratch game. In episode 4 we learn to raycast to a list, depth sort...
Read more >Team:Munich/Hardware/threeJS - iGEM 2018
// We compute the minimum and maximum dot product values. If those values // are on the same side (back or front) of...
Read more >@react-three/drei - npm
Texture /** Custom fog that is temporarily set as the scenes fog ... be disabled by setting this to false global={false} // Spin...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be solved via #16423
The following pattern can be used as a workaround to prevent size attenuation, and still support raycasting. Leave
sprite.sizeAttenuation = true
;Modify this pattern to accommodate your use case.