Page 1 of 5 123 ... LastLast
Results 1 to 20 of 90

Thread: GLSL Sources

  1. #1
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130

    GLSL Sources

    Have found a source for working GLSL shaders for the gameengine

    Link to the website:

    http://www.ozone3d.net

    Most of the Basic GLSL shaders that they use could be implemented into the Blender GE

    Here are some samples:

    A simple ToonShader

    http://3dmanzone.kilu.de/MeineBlenderDateien/Toon.blend


    Toon Shader with Texture

    http://3dmanzone.kilu.de/MeineBlende...nTexture.blend


    And last for now a X-Ray Shader

    http://3dmanzone.kilu.de/MeineBlenderDateien/XRay.blend


    Other samples will follow
    Last edited by D-Man; 27-Aug-07 at 03:22. Reason: Added some links



  2. #2
    Member
    Join Date
    Jun 2006
    Posts
    1,680
    hey thanks.. I've checked out OZONE3d before.. very cool site.. lots of useful info.. thanks for the blends..



  3. #3
    nice stuff, thanks D-Man!



  4. #4
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    Another Sample called Wraped Texture

    http://3dmanzone.kilu.de/MeineBlende...dTexture.blend


    And last for today a sample of SphereEnvironmentMaping

    http://3dmanzone.kilu.de/MeineBlende...phereEnv.blend
    Last edited by D-Man; 27-Aug-07 at 09:43.



  5. #5
    Member cthames's Avatar
    Join Date
    Feb 2007
    Location
    Maine, USA
    Posts
    438
    Nice. The x-ray blend is impressive. Thanks for sharing.
    Game Tutorials: TutorialsForBlender3D - - - blendenoz.com
    BGE Python: Blender Game Engine Python
    Documentation with sample code.
    Updated to 2.7x



  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    1,680
    the wraped? do you mean warped texture link is giving me a 404 error.. also in the sphere demo the vertex shader doesn't compile properly.. have you tried using shader designer to design and test your shader and then porting it to blender? What graphix card to yo have Nvidia or ATI? I have a nvidia one.
    Last edited by kirado; 27-Aug-07 at 08:13.



  7. #7
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    Have repaired the link for the Warped Texture Sample
    And the SphereEnv Sample now should work without problems.
    There was a failure in the script(forgotten to set a vec3).

    Samples do work on a Nvidia Geforce 5500 FX and a Geforce 7300.



  8. #8
    Member
    Join Date
    Jun 2006
    Posts
    1,680
    nice texture warping.. I was going to try and do the same thing with the shaders from ozone3d.. eventually.. nice to know the texture warping works.. I forsee some good looking water shaders! thanks for fixing the link.. yeah both files work fine.. are you going to do the cube map reflection next? ;-)



  9. #9
    Member facemania's Avatar
    Join Date
    Sep 2003
    Location
    Canada
    Posts
    876
    Woah! Thanks! It works on my Geforce 6600 great!

    I wasn't able to re-create any of them though. I made a new object, made the same kinda materials, logic bricks, textures, with the exact same settings, and it didn't seem to work. Would you mind typing out a small setup guide? I'm probably just missing something really obvious.

    Oh and I couldn't figure out how to change the color in the toon shader one, any ideas?

    Thanks again! These shaders look great!



  10. #10
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    I was going a step further and left the cupemap sample behind.
    Here is the Glossy Map sample

    It was a little bit tricky to set the cubemap correctly but now it works.

    Link to the file:

    http://3dmanzone.kilu.de/MeineBlende...GlossMap.blend

    @facemania:

    take a look at the line that starts with:

    "vec4 materialColor = vec4(1.0,0.0,0.0,1.0);"

    that's the line where the Diffuse Color goe's into. its a RGBA Vector.
    to change the color you need to change the first three values.

    A better way to get a nice result is changing the texture in sample "ToonTex" to a plain colored texture.
    Last edited by D-Man; 27-Aug-07 at 11:15.



  11. #11
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    Here is another sample from Ozone3D realized in Blender.

    http://3dmanzone.kilu.de/MeineBlende...edMaping.blend

    It' s a Sample of porjected maps. I have the original sample modified, so now
    we have a dynamic projected Map.

    By the way: is there an option to turn texture repeat off into teh gameengine.
    That's a problem a did not solved, so the projection texture in this sample repeats.



  12. #12
    Member calli's Avatar
    Join Date
    Mar 2002
    Location
    Germany
    Posts
    239
    Altering your nice files I got this:

    http://blenderbuch.de/daten/Experimente/Water.blend


    I wish I could find out how to add some randomness to it.

    Best Regards,
    Carsten



  13. #13
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    @calli:

    maybe you use the datetime.datetime.now() function to get a random start value
    each time you start the file. If I find the time tommorow I will add a normal map to your nice looking scene.
    Is that ok for you (maybe i can get an solution for your question).
    Last edited by D-Man; 28-Aug-07 at 08:42.



  14. #14
    Member calli's Avatar
    Join Date
    Mar 2002
    Location
    Germany
    Posts
    239
    @D-Man: I meant more a randomness in the movement of the texture. I think you are using the normal map in texture channel 2 for generating the wrapping effect`? Too bad that the normal noise textures from Blender are not working for the shaders.

    Carsten



  15. #15
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    @ calli:

    Yes thats a problem i have seen too. I tryed the noise function taht is discriped in some GLSL samples but it doesn't seem to work.



  16. #16
    Member
    Join Date
    Jun 2006
    Posts
    1,680
    not all graphics card support the noise function.. you can get a program from ozone 3d that will tell you what glsl /arb extensions your graphic card supports.. I think mine can only do 2d noise? not 3d noise? the cube gloss map is sweet ;-)



  17. #17
    really nice job !!

    does your ozone can handle animated texture ?



  18. #18
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    riga, latvia
    Posts
    771
    i would really like to see real cube-map - where cubemapped reflection would change when your camera is viewing object from different locations



  19. #19
    Member mataii's Avatar
    Join Date
    Jul 2002
    Location
    Mexico
    Posts
    439
    Great! have you ever check out the demos of the jMonkey engine? it uses GLSL and have some nice effects.

    http://jmonkeyengine.com/index.php?o...d=30&Itemid=54



  20. #20
    Member D-Man's Avatar
    Join Date
    Jan 2005
    Location
    Germany
    Posts
    130
    @black reaper:

    The Ozone3D Engine can handle animated textures.
    I' m not shure that the Blender GE can handle them too but I will give him a try



Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •