{"action":"created","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/issues/175","repository_url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/issues/175/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/issues/175/events","html_url":"https://github.com/AnalyticalGraphicsInc/gltf-pipeline/pull/175","id":184514435,"number":175,"title":"Added support for b3dm files from the main command line","user":{"login":"lasalvavida","id":2489570,"avatar_url":"https://avatars.githubusercontent.com/u/2489570?v=3","gravatar_id":"","url":"https://api.github.com/users/lasalvavida","html_url":"https://github.com/lasalvavida","followers_url":"https://api.github.com/users/lasalvavida/followers","following_url":"https://api.github.com/users/lasalvavida/following{/other_user}","gists_url":"https://api.github.com/users/lasalvavida/gists{/gist_id}","starred_url":"https://api.github.com/users/lasalvavida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasalvavida/subscriptions","organizations_url":"https://api.github.com/users/lasalvavida/orgs","repos_url":"https://api.github.com/users/lasalvavida/repos","events_url":"https://api.github.com/users/lasalvavida/events{/privacy}","received_events_url":"https://api.github.com/users/lasalvavida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-21T15:29:18Z","updated_at":"2016-10-24T21:11:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/pulls/175","html_url":"https://github.com/AnalyticalGraphicsInc/gltf-pipeline/pull/175","diff_url":"https://github.com/AnalyticalGraphicsInc/gltf-pipeline/pull/175.diff","patch_url":"https://github.com/AnalyticalGraphicsInc/gltf-pipeline/pull/175.patch"},"body":"Single b3dm files can be processed via the glTF pipeline with these changes. This is based on the hard-normals branch, so that is what it is diffed against currently.\r\n\r\nI am open to suggestions, but I think this is the best way to integrate b3dm support with gltf-pipeline given the current state of the public API, since it requires access to some of the internal machinery of gltf-pipeline.\r\n\r\nThis makes it easy to write a script to process tilesets concurrently using gltf-pipeline.\r\n\r\n```bash\r\n#!/bin/bash\r\nfor f in $(find $1/ -name '*.b3dm'); do\r\n    echo $f\r\n    node ./gltf-pipeline.js -i $f -o $f -f -z &\r\n    NPROC=$(($NPROC+1))\r\n    if [ \"$NPROC\" -ge 4 ]; then\r\n        wait\r\n        NPROC=0\r\n    fi\r\ndone\r\n```"},"comment":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/issues/comments/255867541","html_url":"https://github.com/AnalyticalGraphicsInc/gltf-pipeline/pull/175#issuecomment-255867541","issue_url":"https://api.github.com/repos/AnalyticalGraphicsInc/gltf-pipeline/issues/175","id":255867541,"user":{"login":"lilleyse","id":915398,"avatar_url":"https://avatars.githubusercontent.com/u/915398?v=3","gravatar_id":"","url":"https://api.github.com/users/lilleyse","html_url":"https://github.com/lilleyse","followers_url":"https://api.github.com/users/lilleyse/followers","following_url":"https://api.github.com/users/lilleyse/following{/other_user}","gists_url":"https://api.github.com/users/lilleyse/gists{/gist_id}","starred_url":"https://api.github.com/users/lilleyse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilleyse/subscriptions","organizations_url":"https://api.github.com/users/lilleyse/orgs","repos_url":"https://api.github.com/users/lilleyse/repos","events_url":"https://api.github.com/users/lilleyse/events{/privacy}","received_events_url":"https://api.github.com/users/lilleyse/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T21:11:58Z","updated_at":"2016-10-24T21:11:58Z","body":"I made some small fixes.\r\n\r\nTalked with @tfili offline. We aren't sure if these b3dm steps belong in the gltf-pipeline. The main tangle point is when normals are generated a new shader is built, and the `BATCH_ID` needs to be re-inserted in the techniques and shaders. Technically this could be done as a post step in a b3dm specific pipeline."}}
{"actor":{"display_login":"lilleyse"}}