dolfinus / 3DAlloy

LightWeight 3D-viewer for MediaWiki
MIT License
3 stars 4 forks source link

Add support for PLY files #10

Open situx opened 2 months ago

situx commented 2 months ago

I would like to include .PLY files using this extension.

ThreeJS has a PLYLoader implementation: https://github.com/mrdoob/three.js/blob/master/examples/jsm/loaders/PLYLoader.js

And there seems to be a related one here: https://github.com/lanceschi/threejs-ply-loader

Example file: https://heidicon.ub.uni-heidelberg.de/eas/partitions/1/0/577000/577526/97a78512f61fae4dbdf80c43e7725822a3a23308/application/x-ply/HS_1174_HeiCuBeDa_GigaMesh.ply

So far I tried to modify the code in this fork: https://github.com/situx/3DAlloy but it also required me to rewrite some of the PLYLoader code since the version of threejs used in this project seems to have changed in the later time.

Are you interested in getting support for PLY files implemented and could help me adding the PLYLoader code correctly to this extension?

dolfinus commented 2 months ago

Hi. Please create a pull request. Thanks!