Comments (4)
Many thanks! This is exactly what I was missing. From README.md it seemed that XYZWUUVV was exactly the format of the vertices field.
from earth-reverse-engineering.
it is still working:
node dump_obj.js 214272516372616353 20
one level up:
node dump_obj.js 21427251637261635 20
edit: Is that helpful or are you trying to do something else?
from earth-reverse-engineering.
I am trying to do the same in C#. Maybe proto files in the repository are not the same as those used in js?
from earth-reverse-engineering.
The proto in this repo is incomplete; here is one with more detail which only lacks NodeData field 8. The vertices byte array straight from the proto (field 1) is a multiple of 3; it only contains XYZ. A vertex buffer is created with a count divisible by 8 from XYZ, UV (field 7) and layer/octant-counts (field 8).
XYZ processing works ~ like this:
var count = input.length / 3;
var output = new Uint8Array(8 * count);
for (var i = 0, axis = 0; axis < 3; axis++) {
for (var j = 0, d = 0; j < count; j++) {
d = (d + input[i++]) & 0xFF;
output[8 * j + axis] = d;
}
}
Unfortunately I didn't have time yet to make this stuff transparent.
from earth-reverse-engineering.
Related Issues (20)
- [Request] Combine textures to a texture atlas HOT 1
- Trying to dump many octants
- Downloading multiple octants? HOT 8
- Rotated Models HOT 2
- Visible octant bounds when rendering as outline/freestyle in Blender HOT 3
- coordinate system of this program HOT 2
- Request for a utility that resizes the octants to real world size HOT 1
- Fix Model Popping. HOT 1
- An idea about finding height HOT 1
- Can't decode textures with rocktree.proto? HOT 2
- Excluding non building data (trees, etc..) HOT 1
- Couldnot see anything HOT 1
- I can't show the download model in blender. Someone with the same problem? HOT 2
- Run in streaming into game engines (Unity, Unreal) HOT 1
- Error: connect EACCES 142.250.184.110:443 HOT 2
- Http 403 after downloading large volume data HOT 2
- Getting higher LOD for geometry and better textures HOT 2
- Please push these codes if they are error free. It stops the Deprecation Warning in Node 9.
- Transform 3D data to lat lon.
- Hang after retry HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from earth-reverse-engineering.