IGNF / itowns-legacy

iTowns is a JS/WebGL framework for 3D geospatial data visualization
Other
53 stars 20 forks source link

Update Three.js to r74 #19

Closed mbredif closed 8 years ago

mbredif commented 8 years ago

Currently using R63 in src/lib/three.js We could update to a more recent version.

mbredif commented 8 years ago

BTW, beware that src/lib/three.js has been hacked to enable support for 'm3' and 'm3v' uniforms (dbde73ac174d9afe5521079fe57a1903d4a5ba48)

mbredif commented 8 years ago

WIP: 08b04309d6796d69134569ef23723eab45612caa

vpicavet commented 8 years ago

As this is needed for #8 it also looks like a blocker for 1.0. Any idea of when it will be ready, so that we can release ?

nosy-b commented 8 years ago

I'll check. Certainly some migrating from Three r63 to r73 like "Object3D's position, rotation, quaternion and scale properties are now immutable." https://github.com/mrdoob/three.js/wiki/Migration

tbroyer commented 8 years ago

IIUC, what #8 (and #20) really needs is an update to r67. While upgrading to r74 (released a couple days ago, unfortunately not yet available in NPM) or r73 would be ideal, maybe we could start with a "baby step" moving to r67 first?

vpicavet commented 8 years ago

@tbroyer indeed, first goal is to release v1.0 asap. We can upgrade to latest Three.js versions later on.

nosy-b commented 8 years ago

The modification for r74 will work on r73 or even 72.

nosy-b commented 8 years ago

Ok for the lidar now. But new ThreeJS seems to force computing bounding box on buffergeometry. As new points comes along it's computationaly heavy.

nosy-b commented 8 years ago

Computed once for every series seems cool. Picking ok too. @mbredif , you may check bati3D before the release :)

mbredif commented 8 years ago

it looks like r74 landed on npm : https://www.npmjs.com/package/three

vpicavet commented 8 years ago

@mbredif is Bati3D ok ? Do you want to upgrade to r74 ?

mbredif commented 8 years ago

@nosy-b and I are working on it, so that we can upgrade to r74 for the release.

mbredif commented 8 years ago

in 410994086664e9dfca0811d3a99c94a297008253 three.js r74 is now pulled from npm (and removed from the sources). I just had to copy the DDSLoader extra since it is not part of the three npm package.

@broyer, I have seen a three-js npm package which appear to include extensions as well (these extensions are still present in the src/lib directory now). Should we pull from it instead ? I have not succeeded in using it with webpack though.

concerning bati3D, you can see the status when using

tbroyer commented 8 years ago

You should be able to import DDSLoader as three/examples/js/loaders/DDSLoader. Have a look at the webpack branch in iTowns2

mbredif commented 8 years ago

20 merged the update of three.js r74