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

BoxInterleaved.gltf is not displayed in glTF reference viewer #107

Closed
cx20 opened this issue Dec 2, 2018 · 5 comments
Closed

BoxInterleaved.gltf is not displayed in glTF reference viewer #107

cx20 opened this issue Dec 2, 2018 · 5 comments

Comments

@cx20
Copy link

cx20 commented Dec 2, 2018

I tried to display BoxInterleaved.gltf with the latest glTF Reference Viewer.
However, the model does not appear to be displayed.

Perhaps it is because it does not support interleaved format.

@ghost ghost assigned ghost and unassigned ghost Dec 2, 2018
@ghost ghost added this to the RV: Bug Fixing I milestone Dec 2, 2018
@ghost
Copy link

ghost commented Dec 3, 2018

Both the glTF and the glb work on http://gltf.ux3d.io and locally (for me) so if it does not work for you locally, it might have to do with your browser, OS or device. What's your setup?

@cx20
Copy link
Author

cx20 commented Dec 4, 2018

@UX3D-schmithuesen I tested it in the following environment.

OS : Windows 10 / Browser : Chrome 70.0.3538.110 / GPU : Intel HD Graphics 520 (ThinkPad X260)

I checked again with Reference Viewer, but BoxInterleaved.gltf was not displayed.

Box.gltf BoxInterleaved.gltf
image image

The following warning is displayed on the console. I think that the vertex buffer is not set correctly.

GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 1

@ghost
Copy link

ghost commented Dec 4, 2018

I'm on Firefox and while I don't get any errors, and the front of the cube looks OK, the back of the cube is invisible. @UX3D-schmithuesen, if you rotate the cube around, do you still see the entire thing? AFAIK the output from this gltf should be more or less the same as in Box.gltf, i.e. it should just be a red cube, with all six sides of it displayed. So there is something funky going on. It's running on my integrated Intel HD 620, so it can also be some schenanigns with Intel hardware in particular, but it's probably just that we're indexing into the buffer wrong. Check out the documentation on Mozillas website on Arrays and their typed variants: e.g. FloatArray. IIRC we create a array view into the data buffer, so double check that we've picked the correct type, and that the offset into the data buffer is correct (since the fields are interleaved).

@cx20
Copy link
Author

cx20 commented Dec 5, 2018

@UX3D-jansson I confirmed it again, and cube could be displayed on Firefox and Edge. I thought it would be the same result as Chrome, so it was unexpected.

@UX3D-nopper
Copy link
Contributor

Fixed here 3549d88

emackey pushed a commit that referenced this issue Mar 3, 2021
enable anisotropic filtering if extension is present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants