-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Description
Greetings
Description of the problem
I am using your library to render some PLY files generated from third party cameras. As such, I have little control upon the generated file.
The generated PLY is encoded in binary_little_endian format, and is a correctly generated PLY file (I can load it via MeshLab, or I can translate to a similar format such as Nexus without problems).
Yet, I cannot correctly load this file via the PLYloader.
More precisely: I am able to render the 'ascii'-ized version of the file (loaded into MeshLab, and saved in ascii format) with little problem, yet the binary file simply won't load.
This seems due to an error in the windowing of the underlying array buffer, for I get this error:
RangeError: offset is outside the bounds of the DataViewI tried to alter the loader so that the offset cannot exceed the DataView boundary, but as expected this causes other errors downstream
THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.I'd like to ask for some informations on this case: is it an error of the loader, of the file, of the parameters I set in the program (an example of which is created in a JSFiddle)?
The fiddle has a reference to the PLY files, and I'll be happy to add any missing information.
Thanks for your product, and for the time spent in reading this.
Three.js version
- Dev
- r96
- Possibly older ones, but I cannot find the version number
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Hardware Requirements (graphics card, VR Device, ...)
None