Getting a GLSL from Blender?

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
gd_anon
Posts: 98
Joined: Sun Nov 30, 2008 11:03 am
Location: Nowhere

Getting a GLSL from Blender?

Post by gd_anon »

I was kinda confused where to post this.
Ive heard people can turn a Blender shader settings into a GLSL shader for the BGE. Is that true? Because i have achieved a very nice toon shader settings in Blender.
xray
Posts: 231
Joined: Fri Feb 02, 2007 1:06 pm
Location: Germany, Munich
Contact:

Post by xray »

Sorry but I dont have the answer, but a hint to post your question in a blender forum, because its more a blender internal thing. And I dont think that alot of people here knows much about blenders game engine... so try it here: http://blenderartists.org/forum/
gd_anon
Posts: 98
Joined: Sun Nov 30, 2008 11:03 am
Location: Nowhere

Post by gd_anon »

This isnt really a BGE question. Im using Irrlicht. GLSL can be used in Irrlicht...
xray
Posts: 231
Joined: Fri Feb 02, 2007 1:06 pm
Location: Germany, Munich
Contact:

Post by xray »

Ok but my experience is that there are not many blender pros here on the irrlicht forum. GLSL is also no specific irrlicht thing, I think you know that. I just wanted to help out getting the answer to your question.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post by Nadro »

If You have GLSL shader in Blender, You can use this shader also in Irrlicht. Of course You have to send sime important info's via callback.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
gd_anon
Posts: 98
Joined: Sun Nov 30, 2008 11:03 am
Location: Nowhere

Post by gd_anon »

No , i mean can i get a GLSL shader file from Blender shader settings ( materials) ? That is, i set the shader to "Toon" and change a lot of settings. Now i have a pretty cool toon shader. I was wondering if i can generate a GLSL shader file from that.
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

still a blender question, not a irrlicht question. go ask the blender guys on their forum.
xray
Posts: 231
Joined: Fri Feb 02, 2007 1:06 pm
Location: Germany, Munich
Contact:

Post by xray »

If you want to look on this link:

http://www.blender.org/development/rele ... materials/

...you will find which settings from your material will be recognized from blenders glsl shader. Than you should also download the blender source code, inside you will find the glsl shader which is used inside blender.

cheers
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

The basis of what he is asking, no its not possible to take the render settings directly into a glsl material shader.

Although, the blender forums have hundreds of toon shaders, so does the irrlicht forums. The settings can be transferred TO a shader no doubt, but i know blender doesnt have a "save material as glsl" , unless you are working in the shader view/nodes window (where i havent seen the option) but i might be wrong.
gd_anon
Posts: 98
Joined: Sun Nov 30, 2008 11:03 am
Location: Nowhere

Post by gd_anon »

FuzzYspo0N wrote:
i know blender doesnt have a "save material as glsl" , unless you are working in the shader view/nodes window (where i havent seen the option) but i might be wrong.
So does that mean youre not sure?
Because i have heard the newer BGE supports Blender materials. And i think the BGE turns it to glsl.
xray
Posts: 231
Joined: Fri Feb 02, 2007 1:06 pm
Location: Germany, Munich
Contact:

Post by xray »

Because i have heard the newer BGE supports Blender materials. And i think the BGE turns it to glsl.
The BGE supports "only" some of the material options, but this does not mean that you are able to produce an glsl shader from a material setting, over an excisting button. Thats something you have to do it by your own, by writing the shader.
oldskoolPunk
Posts: 199
Joined: Wed Nov 29, 2006 4:07 am

Post by oldskoolPunk »

The answer is no.

But an "export shader" option would be a freaking awesome addition to Blender. Go bug the poop out of them at #blendercoders
Signature? I ain't signin nuthin!
Post Reply