Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad type: UNSIGNED_INT with home-made PNTS file #316

Closed
PissedCapslock opened this issue Jun 6, 2018 · 2 comments
Closed

Bad type: UNSIGNED_INT with home-made PNTS file #316

PissedCapslock opened this issue Jun 6, 2018 · 2 comments

Comments

@PissedCapslock
Copy link

When trying to load the attached PNTS data in the Cesium Sandcastle app (http://localhost:8080/Apps/Sandcastle/index.html), I get the following warnings on the console (both in Chrome and Firefox):

WebGL warning: vertexAttribPointer: Bad `type`: UNSIGNED_INT

I have generated this PNTS file myself, and there is obviously something wrong with it. Problem is that I have no clue what exactly.

I tried running the validator on that file, but I don't get any output with the validator (nor any error messages).

Seeing as the message complains about UNSIGNED_INT, I would assume something is wrong with the BATCH_ID as that is the only UNSIGNED_INT I am using. But according to the spec, an UNSIGNED_INT is allowed:

The BATCH_ID semantic may have a componentType of UNSIGNED_BYTE, UNSIGNED_SHORT, or UNSIGNED_INT

Do you have any pointers how I can figure out what is wrong with my PNTS file ? Is there perhaps another validator I can use that outputs clear error messages ?

Note: I kept the file deliberately very small to make it easier to debug it.

pnts.zip

@lilleyse
Copy link
Contributor

lilleyse commented Jun 7, 2018

Thanks @PissedCapslock, it was a Cesium bug. See CesiumGS/cesium#6666.

@PissedCapslock
Copy link
Author

A bug which you already fixed. Awesome !

@ggetz ggetz closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants