Skip to content

Commit

Permalink
Rename 3d-tiles-generator to 3d-tiles-samples-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jun 27, 2017
1 parent 4100c49 commit d0da516
Show file tree
Hide file tree
Showing 76 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Upcoming tools for [3D Tiles](https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/README.md) tilesets:
* Manipulating tilesets, e.g., extracting glTF, gzipping, etc. See [tools/README.md](https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/blob/master/tools/README.md).
* Validating that a tileset conforms to the specification. See [validator/README.md](https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/blob/master/validator/README.md).
* Generating tilesets for testing. See [generator/README.md](https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/blob/master/generator/README.md).
* Generate the sample tilesets in [3d-tiles-samples](https://github.com/AnalyticalGraphicsInc/3d-tiles-samples) and [Cesium](https://github.com/AnalyticalGraphicsInc/cesium). See [samples-generator/README.md](https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/blob/master/samples-generator/README.md).

See the [roadmap](https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/issues/1).

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion generator/LICENSE.md → samples-generator/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Copyright 2016-2017 Analytical Graphics, Inc. and Contributors
Third-Party Code
================

3d-tiles-generator includes the following third-party code:
3d-tiles-samples-generator includes the following third-party code:

### bluebird

Expand Down
14 changes: 3 additions & 11 deletions generator/README.md → samples-generator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 3D Tiles Generator
# 3D Tiles Samples Generator

Tools for generating sample 3D Tiles tilesets. The tilesets generated here are included in [3d-tiles-samples](https://github.com/AnalyticalGraphicsInc/3d-tiles-samples) and [Cesium](https://github.com/AnalyticalGraphicsInc/cesium).
The tilesets generated here are included in [3d-tiles-samples](https://github.com/AnalyticalGraphicsInc/3d-tiles-samples) and [Cesium](https://github.com/AnalyticalGraphicsInc/cesium).

## Instructions

Expand All @@ -9,19 +9,11 @@ Clone this repo and install [Node.js](http://nodejs.org/). From the root direct
```
npm install
node bin/3d-tiles-generator.js
node bin/3d-tiles-samples-generator.js
```

This commands generates a set of tilesets and saves them in a folder called `output`. The `Batched`, `Composite`, `Instanced`, `PointCloud`, and `Tilesets` folders may be copied directly to Cesium's `Specs/Data/Cesium3DTiles/` folder for testing with Cesium. The tilesets in the `Samples` folder may be copied to the `tilesets` folder in `3d-tiles-samples`.

For more fine-grained control, edit the following options directly in `3d-tiles-generator.js`. This includes:
* Output directory
* Optimize for Cesium (`default: true`)
* Use Cesium RTC extension for b3dm tiles (`default: true`)
* Pretty JSON (`default: true`)
* Gzip tiles (`default: false`)
* Longitude, Latitude, Tile Width

Run the tests:
```
npm run test
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function createGltf(options) {
var gltf = {
accessors : accessors,
asset : {
generator : '3d-tiles-generator',
generator : '3d-tiles-samples-generator',
version : '1.0',
profile : {
api : 'WebGL',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions generator/package.json → samples-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "3d-tiles-generator",
"name": "3d-tiles-samples-generator",
"version": "0.1.0",
"license": "Apache-2.0",
"description": "Tools for generating sample 3D Tiles tilesets.",
Expand Down Expand Up @@ -46,6 +46,6 @@
"test-watch": "gulp test-watch"
},
"bin": {
"3d-tiles-generator": "./bin/3d-tiles-generator"
"3d-tiles-samples-generator": "./bin/3d-tiles-samples-generator"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
var child_process = require('child_process');
var path = require('path');

var scriptPath = path.join(__dirname, '../../bin/3d-tiles-generator.js');
var scriptPath = path.join(__dirname, '../../bin/3d-tiles-samples-generator.js');

describe('3d-tiles-generator', function () {
describe('3d-tiles-samples-generator', function () {
it('runs', function (done) {
var command = 'node';
var args = [scriptPath];
Expand All @@ -14,7 +14,7 @@ describe('3d-tiles-generator', function () {
});
child.once('exit', function (code) {
if (code !== 0) {
fail('3d-tiles-generator.js exited with an error code of ' + code);
fail('3d-tiles-samples-generator.js exited with an error code of ' + code);
} else {
done();
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d0da516

Please sign in to comment.