Refract shader glitch
by University of Central FL (#0009) · in Torque Game Engine Advanced · 06/19/2006 (9:21 pm) · 3 replies
So im attempting to put on the blob refract shader on a player character and there are weird clitches in the model when i move around... I've played around and discovered its based on the refract boolean... when set to true i get the glitch.. Here are pics:
what i want it too look like:
[image] http://gatabrasil.com/images/blob_ok.jpg [/image]
what it does:
[image] http://gatabrasil.com/images/blob_notok.jpg [/image]
here is my materials.cs file
any help would be much appreciated
Cheers
what i want it too look like:
[image] http://gatabrasil.com/images/blob_ok.jpg [/image]
what it does:
[image] http://gatabrasil.com/images/blob_notok.jpg [/image]
here is my materials.cs file
new CustomMaterial( theBlobFallback )
{
texture[0] = "$backbuff";
texture[1] = "~/data/shapes/blob/cyanBlueGrad";
shader = BlobRefractVert1_1;
version = 1.1;
refract = true;
};
new CustomMaterial( theBlob )
{
mapTo = "blob.png";
texture[0] = "$backbuff";
texture[1] = "~/data/shapes/blob/cyanBlueGrad";
texture[2] = "~/data/shapes/blob/refractTest2";
shader = BlobRefractPix;
version = 2.0;
refract = true;
specular[0] = "0.85 0.85 0.85 0.85";
specularPower[0] = 16.0;
fallback = theBlobFallback;
};any help would be much appreciated
Cheers
About the author
#2
thanks
pic:
http://gatabrasil.com/images/blob-noshader.jpg
vid:
http://gatabrasil.com/images/blobshader.mov
06/20/2006 (12:40 pm)
Ok.. here is the pic w/out the shade and a video file that has the glitchthanks
pic:
http://gatabrasil.com/images/blob-noshader.jpg
vid:
http://gatabrasil.com/images/blobshader.mov
#3
06/20/2006 (4:03 pm)
I applied the same exact shader settings to one of my own models and the refract shader works perfectly. I'm working with the latest TSE Milestone 3. If you want to email your model to me, I'd be willing to quickly check it on my side - I'm still thinking its a problem with the model. I just need your .dts file. Also, are all the other shaders working for you? You can find my email in my profile description.
Associate John Kanalakis
EnvyGames
John K.