Jump to content

Twosided transparent texture


Recommended Posts

Posted

I've been trying to make part of a texture transparent but also two-sided to 'hide' some of the 'holes'. I find that I can only get one or the other on the texture when ingame with my shader:

models/players/mara_khaal/boots
{
		cull disable
	{
		map models/players/mara_khaal/boots
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen lightingDiffuse
	}
}

The effect I'm trying to go for is making the heel on the boot look bigger than it actually is on the model, by hiding some of the texture with alpha. But to reduce the number of holes that can be seen through (inside of the 'larger heel' for example) I'm adding the cull disable line.

 

If I have the cull disable line, the boot looks like this in game:

 

wCull.png?dl=0

 

 

If I remove the cull disable line, the boot looks like this:

 

woCull.png?dl=0

 

 

I tried Ruxith's final shader here but I got the same result as the first picture.

Posted

Jedi_Zf

 

And it sorta worked... ish. I turned my gamma up as i couldn't see well due to the dark texture, and it looked like this:

 

derpleg.jpg?dl=0

 

 

The extended heel is kinda there, but the rest of the boot looks a bit derp

 

EDIT: I tried DT's shader and I got this, it's sorta close, but the sole of the foot still shows:

 

derplegMKII.png?dl=0

 

Posted

I found another part of the model that had a heeled boot, so I enabled that and removed the rest with alpha, now works fine. Thanks for the help anyway guys!

Asgarath83 likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...