Title: Shader help Post by: JoeSox on May 30, 2011, 09:42:20 AM Can someone tell me what is wrong with my current haybale shader? I can't get the edges to look proper. I have attached the model files also.
This is what is currently looks like in world. (http://farm3.static.flickr.com/2444/5776227151_ac2c7ce109.jpg) Code: mtl_haybale_ Thanks!! Title: Re: Shader help Post by: Udi on May 30, 2011, 04:40:36 PM Try "alphaFunc GE128" for transparent TGAs. If you could attach the compiled map, I could test it and post the exact solution, but now I'm just guessing.
Title: Re: Shader help Post by: JoeSox on May 30, 2011, 05:14:40 PM Try "alphaFunc GE128" for transparent TGAs. If you could attach the compiled map, I could test it and post the exact solution, but now I'm just guessing. Thanks, I really need second eyes on this one. I have tried a couple of combinations but I'm not getting the results. I am just using a simple map so it compiles fast so I can view the rendering. I have tried the "alphaFunc GE128" but not looking right. attached are all the files. Title: Re: Shader help Post by: Udi on May 31, 2011, 06:33:10 AM Here's the best result I could get with modifying the shaders:
(http://udionline.hu/kepek/openarena/haybale/haybale1.jpg) (http://udionline.hu/kepek/openarena/haybale/haybale1.jpg) Some sides are perfect, like the top (http://udionline.hu/kepek/openarena/haybale/haybale-top.jpg), but some sides (http://udionline.hu/kepek/openarena/haybale/haybale-side.jpg) have dark parts. There are less dark parts if only the front sides are drawn, so I guess the 3D model has some overlapping polygons. I don't really know, I'm a noob at modelling. Here's the shader definition: Code: mtl_haybale_ Title: Re: Shader help Post by: JoeSox on May 31, 2011, 07:41:20 AM Here's the best result I could get with modifying the shaders: Udi, Thanks. Awesome job. That will have to do; much better then it was. I appreciate the help, I was worn out trying to figure that out. |