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.
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.
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?
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?
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.
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.
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).
@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.
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