xtk / X

The X Toolkit
http://www.goXTK.com
Other
793 stars 266 forks source link

Strange bug with shader program under Firefox 11.0 / Ubuntu ? #21

Closed Ricola3D closed 12 years ago

Ricola3D commented 12 years ago

Hello Haehn !

I'm currently running the lessons on Firefox 11.0 under Ubuntu (a Wibu distribution installed from Windows), and they don't work. Firefox's console tells me :

Could not create shader program! Xtk.js:265 error uniform 'volumeScalarMax' declared as type 'float' and type 'vec3'

And with testing in local in development mode, it also shows this error & one more before :

goog.structs.Map is not a constructor tracer.js:53 Could not create shader program! renderer.js:868 error uniform 'volumeScalarMax' declared as type 'float' and type 'vec3'

In addition, webGL web examples works well here, so I don't understand why XTK doesn't ?!

Ricola3D commented 12 years ago

Does it come from Shader::_vertexshaderSource attribute ?

haehn commented 12 years ago

Did you modify X.shaders class? It complains that a uniform was declared twice. Maybe this Wibu stuff doesn't have a good GL stack. Could you try on a real Ubuntu system with proper graphic drivers?

goog.structs.Map is not a constructor tracer.js:53 <-- this error is normal when running the uncompiled xtk version, it comes from Google Closure Lib.

Ricola3D commented 12 years ago

Hey ! I modified nothing, I just loaded the files from the wiki, but like it works after a reboot it seems there is no problem in your code. It may have been cause of an update which needed a reboot (even in it's surprising under Linux).

So now I'm trying little excercices to see if I'm able to do sotheming with Git and XTK sources, simple things that will be usefull for my work and train me a bit like personalizable interactor or parsing from a client-sided file with a loader and without uploading it (I've easy managed it with a parser and File & FileReader APIs of HTML5 with a drag area but there isn't any progressbar so it's ugly).

Anyway the sources are so clear and commented than it seems easy to "play" with !

haehn commented 12 years ago

The client side loading is exactly what I was recently working on to help out some MIT guys:

https://github.com/WingedTurtle/roygbiv/pull/2

haehn commented 12 years ago

Did you have a chance to check the shader bug on a different system? I would like to clarify the issue this week before the next release.

Ricola3D commented 12 years ago

Coming ! I had forgotten my personal computer at my work place last weekend, but I'm currently installing an ubuntu (not wubi) to try it. Maybe I'll try a Debian if I've some time !

Le 06/05/2012 14:11, Daniel Haehn a écrit :

Did you have a chance to check the shader bug on a different system? I would like to clarify the issue this week before the next release.


Reply to this email directly or view it on GitHub: https://github.com/xtk/X/issues/21#issuecomment-5535186

haehn commented 12 years ago

I think it should be fixed now.

haehn commented 12 years ago

@Ricola3D could you please check and confirm?