Giter Site home page Giter Site logo

snappytree's People

Contributors

supereggbert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snappytree's Issues

Export Error

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

Exporting textures

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?

Error on snappytree.com

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

Errors when running locally

Tried to get this running locally and ran into some errors.

Steps to reproduce:

  1. Clone / download project.
  2. npm i -g live-server && live-server .
  3. Open localhost:8080
  4. Errors in console.
Full output (text)
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

screen shot 2017-11-16 at 4 04 33 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.