Blog! Team! Forum! About Apricot! Press! Gallery! Development! Yo Frankie! Apricot Open Game Project mee!
Jun 10

GLSL! Splatting!

icon1 blengine | icon2 Development | icon4 06 10th, 2008

GLSL shading is now in blender, thanks to the work of our rockstar coder Brecht. Just enable it in your preferences under System & OpenGL, and change to the shaded draw type. Among other amazing things, this means normal maps in 3d view!

Along with this also comes the ability to paint multiple textures directly onto your objects using texture paint mode in the 3d view. Because with glsl blender can draw materials with texture stacks that contain stencil maps, splatting grass and dirt onto your terrain is as simple as using texture paint mode with a stencil map assigned to the uvs. It’s such a beautiful thing. Watch the video to learn how this is done. The idea is that this same texture stack will then be exported to crystal space for splatting for the game.

Download the .ogg file
Download the blend file from the video

76 Responses

  1. Dusty on

    Oh now this is sweet news! Thanks Brecht!

  2. miroslav karpis on

    this is ‘excellent’!!!!! great !!!!

  3. Aka on

    Nice! Blenders bodypaint. xD

  4. horace on

    awesome! πŸ™‚ but why is it much darker in the viewport than on the render? (i could only watch the video without sound at the moment…)

  5. DT on

    @horace: probably because of the light setup πŸ˜‰

    Really great stuff!
    Keep it up guys!

  6. Coppertop on

    My first reaction: OMG O_O. That terrific!! Really, one of the things i always wanted to see in Blender.

    Heh, “what i’m about to show u may blow your mind”, how modest ;D But i understand because it did blow my mind πŸ˜€ I felt like watching idTech5 demo. U know, i got a feeling that as soon as Apricot is done, Blender and CS really gonna rock the game dev world. Time to go to the basement look jaw πŸ˜‰

  7. Wahooney on

    Great stuff πŸ˜€
    The blend that keeps on blending!

  8. Francisco Ortiz on

    What bothers me:

    Brecht has just ONE fan club website! That’s a shame! :))

    This system give us very precise previews, it’s incredible…

    Thank you Apricot!

  9. chuzzy (charles) blue on

    AMAZING!! Thank you Apricot team (+ blender and CS) for carrying such a bright vision for open source gaming design

  10. grafixsuz on

    All I can say is Brecht, dude, your da man!

    I love you man!

  11. Daniel Lima on

    Brecht! Brecht! All your fans are scream your name! I’m holding a sign with your name in the third in somewhere! you are a rockstar!

  12. Filipe Soares Dilly on

    Holly crap! This is amazing! πŸ˜€
    Thanks to Brecht and Apricot!

    Just one little question: will be a 2.48 version??? πŸ˜›

    I can wait until 2.50 is out but… πŸ˜€

  13. Christiaan Bakker(AniCator) on

    Why did you release 2.46 :(!
    Are these GLSL features supported by the Blender Game Engine too? (When you press P?)
    Because it would be weird if you would have cool graphics in object/shaded mode and no cool graphics in the engine. πŸ˜€

  14. Milo on

    better and better every minute…

    Love this feature.

  15. Satish "ILuvBlender" Goda on


    Apricot is blooming, thanks to all the devs and the team.

    Blender takes my breath away, every day.

  16. n-pige on

    Wow! Thanks Apricot team!!!

  17. RH2 on


    when does
    get updated?

  18. Philip on

    Msn I look foward to using that easter egg in my games. πŸ™‚

  19. MrNoodle on


  20. Kirado on

    awesome.. some great tools getting developed. Does the GLSL normal map view support depth maps too? I was playing with the Apricot release and I could get normal maps etc but not parallax mapping? Also with the texture paint.. will we see it painting correctly around UV islands? Thanks for the hard work guys!

  21. robert on

    from your video it looks like texture paint mode may actually be usable, for me its always been very slow(paint -> 10 seconds later texture is updated). looks great:)

  22. jonny on

    very, very nice feature. Hopefully that will all fit into the pipeline using ogre instead of CS after all… ;). Abstracting from the grafic engine would be nice!


  23. squareline on

    GLSL rock! Go Apricot Team!
    Can i will use multiple stencil and more than 2 color map? i.e. for ground,grass and stone etc.

  24. Francisco Ortiz on

    @Jonny: not really! This feature is nice for every kind Game Engine rendering preview. GLSL for normalmaping is standard…

    CS will benefit in short term but other engines will follow this aproach soon!

  25. +peter on

    I second Squareline’s question, is it possible to use more than two color maps with multiple stencils?

  26. chris on

    Yeah, you can use multiple stencil and color maps.

  27. Anthoni_C on

    I used to do this using an alpha map but this is much faster, and now I can see results in realtime, as opposed to rendering to see a result.

  28. squareline on

    Thanks Chris.
    I try the multiple stencil, but i cant activate the second one. How can i do this? The second stencilmap only works if i painting on it in Uv editor not in 3d.

  29. John on

    “GL Shaded Mode” isn’t avaliable on my Blender 2.46 (Windows) πŸ™

  30. campbell on

    @squareline, listen to the audio, Chris explains this! πŸ™‚

  31. Andrew Fenn on

    You showed two layers in the video but can you scale this up? For example could you do sand->dirt->grass->rock->snow?

  32. venomgfx on

    @ Andrew Fenn:
    I quote Chris,:
    “Yeah, you can use multiple stencil and color maps.”

    this system is awesome πŸ™‚

  33. squareline on

    Yes i listened it a couple of times, but my English is a bit poor :).
    But in the end i understand:
    need to switch edit mode than select faces and select secondstencil.jpg from uv editor. Thats easy as a breeze. πŸ™‚

  34. William on

    Most games use vertex maps for the ‘stencil’ (mask is what it’s usually called).

    Can you use vertex maps also?

  35. Christiaan Bakker(AniCator) on

    Eh.. anyone caring about my question?
    Are these GLSL features supported by the Blender Game Engine too? (When you press P?)

  36. venomgfx on

    @ William, yes you can.

    @ Christiaan Bakker(AniCator), no :(, its only for Blender’s 3DView.
    edit: BUT!, a little bird told me that “they are looking into it” πŸ™‚

  37. jin choung on

    sweeeeeeeeeeeet… i was anticipating most of the blender stuff was gonna be from peach but it’s amazing how much blender is getting from the apricot folks! freakin’ awesome work guys!

  38. squareline on

    a fresh splatting test:

  39. Aka on

    Too bad there is no place for nurbs in game art πŸ™

  40. Anthoni_C on

    I think it would be great if Brecht would code a full real time editor like in many game engines. This would be great for animation as well, seeing as animators could see dumb down versions of particle effect and animations in real-time. We could make real time adjustments to physics, movements, etc.

    P.S. Brecht should post Coding tutorials on Vimeo or somthing… πŸ™‚

  41. Mildred on

    Wonderful !

    Now we’ve got a problem with Blender. With so many cool features we need a way to remember that they exists when we need them. πŸ™‚

    Great job.

  42. Tim on

    This is amazing, really good work guys πŸ™‚

  43. Christiaan Bakker(AniCator) on

    @venomgfx: Give that bird a few good looking female birds and some more seeds. πŸ™‚
    Or is it a she? πŸ˜›
    I hope it will be made possible since that would improve the game engine a lot too. Now that a lot of leaks have been fixed it would be very nice if the graphical capabilities would be extended and enhanced too.

    I would be willing to help documenting the new features when they come available but I still have to learn a lot about writing shaders.

  44. Pablo Vazquez on

    thanks!, *any* kind of help is well received πŸ™‚

    just contact us, cheers!

  45. Zipster on

    This is a little bit off topic but,

    Are you using the blend2crystal plugin thing to build the whole game?

    Or are you using CS and a programming language?

    Sorry if it dosent make sense, im very new to programming.

  46. Ali on

    Pablo Vazquez or venomGFX πŸ™‚

  47. squareline on

    Can i use material based splatting?
    i.e. i would like use a normal-map only for rock area and a different normal-map for ground and for grass without normal-map . This is possible somehow?

  48. Joat on

    This is what I have been waiting for. Finally I can see the model as I should in workarea also. I don’t wish for a 2.47 version. I wish for 2.46.1 with only difference being the adding of GLSL functionality published today. =)

    This makes a world of difference in usability of Blender.

    Great work, Apricot team!

  49. bmud on

    Noice m8!

  50. bmud on

    would this work if i assigned four different splattable textures to the colors RGBk? πŸ˜‰

  51. Budi on

    I have the same problem as John. I don’t have GL Shaded Mode in my blender 2.46

  52. Josh on

    Hi, I stumbled on this gem while going to “class” (those video tutorials sure work well!) this morning, and swapped programs frantically in an attempt to keep up with the video. However, as a few other people here noted, the GL Shaded Mode button doesn’t exist. πŸ˜› I just wanted to clarify, is there anyway to implement this feature without waiting for a new Blender release?

  53. Engys on

    Wohoo! It’s really there. Textured shaded lightchanges in realtime.
    Apricot Branch + Game Menu + Blender GLSL Materials. Really nice!

  54. Jacco on

    Erm, I don’t know what build you use, or where to download it, but when I texture paint, all goes White, shadeless, so I don’t have a clue of what I’m painting..


  55. DDD on

    I don’t have GLSL in my blender v2.46, or maybe I do but the button to activate it is not in the user preferences (under “System & OpenGL”). Help please. πŸ™

  56. DDD on

    Does anyone know where I can find some Blender game engine tutorials? (not the simple ones, maybe with python…)

    And what is this crystal thing?

    TY for answers!

  57. chris on

    Hey, you can to download one of the latest blender builds with glsl from

  58. youne on

    Does it support parallax bump map too?

  59. LeFaquin on

    Wow Brecht…You ARE the future of Blender !

    Thank you ! And thanks to all the developpers !

  60. Steffen on

    Brecht is a son of a gun! while readig this article on sunday i was so happy, an now itΒ΄s in the GE too! thank you, thank you, thank you!

  61. Todd A McCullough on

    I downloaded the latest apricot build from the graphicall link, but can’t see a GL Shaded Mode button.
    Do I need to install other OpenGL things for it to show and run?

  62. Brandon on

    Wow! Man this is so awesome. I can’t believe all of this is finally happening! πŸ™‚

  63. Jacco on

    I think my crad wont support it..
    I have an NVIDIA GeForce 9300M G

    I dont understand, when I want to vertex paint, my object goed white, shadeless..

  64. drmad on

    Hi. A dumb, perhaps out-of-place question: I have blender 2.46, and there is not a “GL Shaded mode” button in the User Preferences window. Also, this blender version draws everything _very_slow_ on my machine. Previous versions (2.45 and older) ran pretty nice. I have a NVidia GeForce FX 5500 with the lastest driver. Any insights?

    Thanks alot!

  65. drmad on

    Ups. I’m on Linux πŸ™‚ xorg-server 7.2

  66. thomas steele on

    i’ve done everything the same as you have Brecht but it just wont work do you know how i could fix this issue.

    and yes i’ve done everything correct >:( EVERYTHING

  67. CHad on

    why don’t i have the little button that you say to click?!

  68. Koto on


    It looks great but when I press P, GE starts but I can see white terrain :(.

  69. Ataru on

    Anyone know which build I should install? I would prefer one with Grease Paint, the new icon set, and most of all, the GLSL shader.

    Anyone? Thanks! πŸ™‚

  70. Ataru on

    Aha, smart people told me how to get the shader working:

  71. Kaizer on

    Activate GLSL in menu: ->”Game”->”Blender GLSL Materials”.
    Then hit “Alt+Z” (textured mode).

  72. Mr Cheat on

    i have laptop acer with nvidia 9300m gs 256 but i have lil lag in graphics :(( i know nothin about nvidia this is my 1st tie to use it any solutions ??

  73. Minifig on

    Is there a html or pdf version somewhere?
    (my comp blocks all vids)

  74. mbeave408 on

    None of the BGE DVDs/book published/sold by Blender shop work with the new Blender 2.5 releases. Could someone simply publish an example or 2 of the the new API. Maybe a conversion script could be published like the that was done for the 2.48 to 2.49 conversion. Even a short tutorial with a converted BGE script would be helptul.