create3000 / cobweb

Cobweb is now X_ITE
https://github.com/create3000/x_ite
Other
10 stars 5 forks source link

can't get basic example to work. #29

Open splace opened 7 years ago

splace commented 7 years ago

i tried your example with locally saved files; (in a browser that shows your web page fine, and has local file access through xmlhttlrequest.)

<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8"/>
      <link rel="stylesheet" type="text/css" href="cobweb.css"/>
      <script type="text/javascript" src="cobweb.min.js"></script>
   <style>
X3DCanvas {
   width: 768px;
   height: 432px;
}
   </style>
   </head>
   <body>
      <X3DCanvas src="index.html">
         <p>Your browser may not support all features required by Cobweb!</p>
      </X3DCanvas>
   </body>
</html>

get this Your browser may not support all features required by Cobweb!

and this error

Uncaught TypeError: Cannot read property 'setGlobalVariables' of undefined
    at u.draw (cobweb.min.js:74)
    at u.render (cobweb.min.js:74)
    at u.display (cobweb.min.js:75)
    at u.traverse (cobweb.min.js:75)
    at l.traverse (cobweb.min.js:75)
    at a.traverse (cobweb.min.js:75)
    at f.traverse (cobweb.min.js:75)
create3000 commented 7 years ago

This can happen if no shader could be loaded. Could you please look into the console for shader errors or paste the whole console output here.

splace commented 7 years ago

the whole console output is the above repeated three times, nothing about shaders.

is there a verbose mode?