Hey All,
Just curious if anyone knows what's going on here or why I may be getting this issue with Evolved's Toon Shader. It seems that my one model works out perfectly using this, yet if I use the exact same code for another object I get a blank texture (even using the same texture), while the third situation is if I switch the order of the texture layers around, I get the texture, and the outline (though poorly) but there is no shading, the shadows seem to be kept in place. The forth situation is I can get the shading to work, and the outline to work, but there is no texture and the object is all shades of blue.
I have tried for days to figure out what's going on here and why it seems to work for only one object. I really like the appearance of this shader and would like to use it a little more, however if I can't figure it out, I may have to switch.
Oh, while here, does anyone know how I might be able to set up the shader for 2 or more light sources. (I'm not too good at shader language)
Any info or suggestions are much appreciated. Thanks,
Here's a pic of the issue: There are objects here each using a different method mentioned above to try to get it working. Simple Code below Pic...
And here is the code I'm using to Load it: (Sorry it's messy, haven't cared much while trying to figure this out -- Frustrated.
`Load Textures
Load Image "Guy01e.png",3
load image "Toon.bmp",1
load image "Shade.bmp",2
Load Image "metal.png",4
//Load Effect
load effect "Toon.fx",1,0
//Create Object
Load Object "Einarr10.x",1
Load Object "JunkYard.x",5
Load Object "Hyena.x",4
Load Object "Scimitar.x",3
//Texture Object
Texture Object 1,2,3
texture object 1,3,1
texture object 1,1,2
Texture Object 5,2,4
Texture Object 5,3,1
Texture Object 5,1,2
Texture Object 3,2,1
Texture Object 3,0,2
Texture Object 3,1,4
Set Object Effect 1,1
Set Object Effect 3,1
Set Object Effect 5,1
set object effect 1,1
//I removed the first texture object here because it would make it show up black, unlike the blue mentioned, but other methods produce the pure blue as mentioned above.
//Texture Object 4,1,3
Texture Object 4,0,1
Texture Object 4,1,2
Set Object Effect 4,1
Thanks all for any help!