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:
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)”
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:
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: