create3000 / cobweb

Cobweb is now X_ITE
https://github.com/create3000/x_ite
Other
10 stars 5 forks source link

GeoTransform #9

Closed andreasplesch closed 8 years ago

andreasplesch commented 8 years ago

I did not test GeoTransform but it does not look quite right. Here is a description: https://sites.google.com/site/x3dgeo/x3d-geospatial-nodes/geotransform I see if I can come up with a simple test scene.

andreasplesch commented 8 years ago

Here is the x3dom implementation

https://github.com/x3dom/x3dom/blob/master/src/nodes/Geospatial/GeoTransform.js#L124

It boils down to a lot of transform matrix multiplications.

create3000 commented 8 years ago

Is there a practical example use case of GeoTransform with all values set available?

andreasplesch commented 8 years ago

There are a couple of examples here which exercise all fields:

http://andreasplesch.github.io/x3dom/

They should be pretty close standard x3d.

andreasplesch commented 8 years ago

These use GeoViewpoint. You can press 'v' to get a regular viewpoint printed out on the x3dom console.

andreasplesch commented 8 years ago

x3dom also has a non-standard globalGeoOrigin field:

http://doc.x3dom.org/author/Geospatial/GeoTransform.html

It provides a way to avoid having to repeatedly provide the same GeoOrigin field for all GeoNodes.

create3000 commented 8 years ago

»x3dom also has a non-standard globalGeoOrigin field:«

this some kind of magic

create3000 commented 8 years ago

Cobweb only implements standard Nodes and fields as there is enough to do with it. GeoTransform: Fix commited.

andreasplesch commented 8 years ago

Understood.