supereggbert / snappytree Goto Github PK
View Code? Open in Web Editor NEWSnappyTree a procedural tree creation app for proctree.js
SnappyTree a procedural tree creation app for proctree.js
Wondering if you'd accept a PR exporting to glTF with textures embedded?
Hi, I have the following error when I load the snappytree.com webpage:
GLGE error: Couldn't link shader: Uniforms with the same name but different type/precision glge-compiled-min.js:28
GLGE error: Couldn't link shader: Uniforms with the same name but different type/precision glge-compiled-min.js:28
WebGL: INVALID_OPERATION: useProgram: program not valid www.snappytree.com/:1
WebGL: INVALID_OPERATION: getUniformLocation: program not linked www.snappytree.com/:1
5
WebGL: INVALID_OPERATION: getAttribLocation: program not linked www.snappytree.com/:1
Uncaught TypeError: Cannot read property 'itemSize' of undefined glge-compiled-min.js:28
And the page stays blank (or rather, greyish)
Config: Chrome 32.0.1700.6 beta / Mac OSX / MacBook Pro Retina
Tried to get this running locally and ran into some errors.
Steps to reproduce:
npm i -g live-server && live-server .
Document was loaded from Application Cache with manifest http://127.0.0.1:8080/snappytree.appcache
:8080/#seed=262&segments=6&levels=5&vMultiplier=2.36&twigScale=0.39&initalBranchLength=0.49&lengthFalloffFactor=0.85&lengthFalloffPower=0.99&clumpMax=0.454&clumpMin=0.404&branchFactor=2.45&dropAmount=-0.1&growAmount=0.235&sweepAmount=0.01&maxRadius=0.139&climbRate=0.371&trunkKink=0.093&treeSteps=5&taperRate=0.947&radiusFalloffRate=0.73&twistRate=3.02&trunkLength=2.4&trunkMaterial=TrunkType1&twigMaterial=BranchType6:1 Application Cache Checking event
:8080/#seed=262&segments=6&levels=5&vMultiplier=2.36&twigScale=0.39&initalBranchLength=0.49&lengthFalloffFactor=0.85&lengthFalloffPower=0.99&clumpMax=0.454&clumpMin=0.404&branchFactor=2.45&dropAmount=-0.1&growAmount=0.235&sweepAmount=0.01&maxRadius=0.139&climbRate=0.371&trunkKink=0.093&treeSteps=5&taperRate=0.947&radiusFalloffRate=0.73&twistRate=3.02&trunkLength=2.4&trunkMaterial=TrunkType1&twigMaterial=BranchType6:1 Application Cache NoUpdate event
(index):189 Live reload enabled.
(index):159 GET http://www.google-analytics.com/ga.js net::ERR_FAILED
(anonymous) @ (index):159
(anonymous) @ (index):160
glge-compiled-min.js:28 XHR finished loading: GET "http://127.0.0.1:8080/scene.xml".
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
glge-compiled-min.js:28 GLGE error: Couldn't link shader: Uniforms with the same name but different type/precision: worldInverseTranspose�
glge-compiled-min.js:28 GLGE error: Couldn't link shader: Uniforms with the same name but different type/precision: worldInverseTranspose�
glge-compiled-min.js:28 WebGL: INVALID_OPERATION: useProgram: program not valid
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
glge-compiled-min.js:28 WebGL: INVALID_OPERATION: getUniformLocation: program not linked
a.getUniformLocation @ glge-compiled-min.js:28
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
2glge-compiled-min.js:28 WebGL: INVALID_OPERATION: getAttribLocation: program not linked
a.getAttribLocation @ glge-compiled-min.js:28
a.Mesh.GLAttributes @ glge-compiled-min.js:28
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
glge-compiled-min.js:28 WebGL: INVALID_OPERATION: getAttribLocation: program not linked
a.getAttribLocation @ glge-compiled-min.js:28
a.Mesh.GLAttributes @ glge-compiled-min.js:28
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
glge-compiled-min.js:28 WebGL: INVALID_OPERATION: getAttribLocation: program not linked
a.getAttribLocation @ glge-compiled-min.js:28
a.Mesh.GLAttributes @ glge-compiled-min.js:28
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
glge-compiled-min.js:28 WebGL: INVALID_OPERATION: getAttribLocation: program not linked
a.getAttribLocation @ glge-compiled-min.js:28
a.Mesh.GLAttributes @ glge-compiled-min.js:28
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
glge-compiled-min.js:28 Uncaught TypeError: Cannot read property 'itemSize' of undefined
at a.Mesh.GLAttributes (glge-compiled-min.js:28)
at a.Object.GLRender (glge-compiled-min.js:28)
at a.Scene.render (glge-compiled-min.js:28)
at a.Renderer.render (glge-compiled-min.js:28)
at a.Document.XMLdoc.onLoad (main.js:345)
at a.Document.finishedLoading (glge-compiled-min.js:28)
at a.Document.loaded (glge-compiled-min.js:28)
at XMLHttpRequest.d.onreadystatechange (glge-compiled-min.js:28)
a.Mesh.GLAttributes @ glge-compiled-min.js:28
a.Object.GLRender @ glge-compiled-min.js:28
a.Scene.render @ glge-compiled-min.js:28
a.Renderer.render @ glge-compiled-min.js:28
XMLdoc.onLoad @ main.js:345
a.Document.finishedLoading @ glge-compiled-min.js:28
a.Document.loaded @ glge-compiled-min.js:28
d.onreadystatechange @ glge-compiled-min.js:28
XMLHttpRequest.send (async)
a.Document.loadDocument @ glge-compiled-min.js:28
a.Document.load @ glge-compiled-min.js:28
(anonymous) @ main.js:357
ready @ jquery-1.4.4.min.js:29
u @ jquery-1.4.4.min.js:37
:8080/favicon.ico:1 GET http://127.0.0.1:8080/favicon.ico net::ERR_FAILED
:8080/favicon.ico:1 GET http://127.0.0.1:8080/favicon.ico net::ERR_FAILED
The exported COLLADA file doesn't contain any image references for the textures, and the OBJ export doesn't export an MTL file. Is there any way to get the files out with textures?
Collada, WaveFront export does not work.
export.js throws following error
[Exception... "The method parameter is missing or invalid." code: "0" nsresult: "0x8053001a (TypeError)" location: "file:///Z:/A_Myfiles/web/SnappyTree-master/SnappyTree-master/js/export.js Line: 3"]
Changing export.js line
from
var fileBlob=new Blob(text);
to
var fileBlob=new Blob([text]);
seems to fix the error
Tested on Chrome 24.0.1312.52 m and FireFox 18.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.