Blender exports materials to glsl! Useful for JME3?

Hi everyone!

I recently found a quite interesting addon for blender which allows you to export existing materials to glsl :o .



You can find it here: http://blenderartists.org/forum/showthread.php?233186-Export-Materials-to-GLSL-Code



Now I would like to know if it is possible to convert the .vertex and .fragment shaders so they’re compatible with JME3…

Would be awesome for people with more of an artistic background who have no skills in glsl (like me) :roll:

2 Likes

it does not export in my case. I tried blender 2.60, 2.62, 2.63.

That looks interesting.

Instead of using the addon-panel, try using the command “gpu.export_shader(Scene,mat)”

1 Like

i have an issue:

you have to import the gpu module first. Try “import gpu”.

it does not work too. Can you give me the code from this material:

http://dl.dropbox.com/u/26887202/blender/glsl.blend

Sure, will upload it when i’m back home

Vertex shader: http://www.pasteall.org/34298

Fragment shader: http://www.pasteall.org/34297

Thank you man! Blender shader is pretty complex.

I want to export ver and frag, I created my object3d and materials, finally when I exported materials, I have this error:
http://postimg.org/image/5vnebr7wb/