Three.js: Size capped at 256 for PointsMaterial

Created on 19 Dec 2019  路  6Comments  路  Source: mrdoob/three.js

Description of the problem

Any value above 256 for the "size" parameter of PointsMaterial is not respected. Instead, the actual size will be capped at 256.

The problem can be reproduced by running the example with billboard points and then changing the size parameter at line 57: https://github.com/mrdoob/three.js/blob/master/examples/webgl_points_billboards.html#L57.

Three.js version
  • dev
  • r108
Browser
  • [x] Chrome
OS
  • [x] Linux
Device Issue

All 6 comments

Can you please report what values are logged with the following fiddle:

https://jsfiddle.net/b89njg3d/

Float32Array(2)聽[1, 255]

In this case you hit a WebGL/hardware limitation. Please follow the advices in this issue: https://github.com/mrdoob/three.js/issues/293#issuecomment-1450344

Thank you for the information. I've been googling quite some time without finding anything on this. I think it could be valuable to include this in the documentation as a sidenote for the PointMaterial size.

Feel free to add a note if you like 馃憤

@Karolusrex here's the link if you would like to document it:

https://github.com/mrdoob/three.js/edit/dev/docs/api/en/materials/PointsMaterial.html

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlaquinte picture jlaquinte  路  3Comments

danieljack picture danieljack  路  3Comments

zsitro picture zsitro  路  3Comments

filharvey picture filharvey  路  3Comments

donmccurdy picture donmccurdy  路  3Comments