yet ANOTHER shader question -1 reply

  • 1
  • 2

Please wait...

Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#1 12 years ago

Sorry to ask SO many questions (I'm a very curious person >_>)

Is it possible to have a texture, where it is transparent, but it some places it is TOTALLY transparent, I want to make a broken glass texture for a window, I have some experience with shaders, but I wondered if it had something to do with the Alpha channel? If anyone could shed some light on how I could have one part of the texture COMPLETELY see through, nothing there, then let me know, if it isn't possible then meh, but I would like to know =\




heath1992

A well-oiled toaster oven

50 XP

26th January 2007

0 Uploads

298 Posts

0 Threads

#2 12 years ago

I'm almost positive there's a way to do that, but I'm not exactly sure how... sorry...




Guest

I didn't make it!

0 XP

 
#3 12 years ago

Maybe you can try to make that spot a different color on the texture and in the shader you write like R 102103 g 239232 b 343423 transparent 100 and on the other you write R 3423423 G 32423423 B 324234 transparent 50 THIS was only an example and i have no idea how you make a shader but the only way is to do this or make 2 shaders and merge the parts together...




Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#4 12 years ago

Hmmm... it does sound logical, I'll muck about for a bit =\ see if I can get anywhere, if I can, I'll let you know how it's done!

Well if anyone else has any information it'd be much appreciated.




Isla Kamamee

Awkward? You bet!

50 XP

28th August 2006

0 Uploads

1,179 Posts

0 Threads

#5 12 years ago

you could try grayscale in the alpha channel, it goes by that, so if you have in between shades, I think either tga or png can handle varying transparencies.




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#6 12 years ago

The image files can handle it find. JKA... not quite so good at it. Complete transparency is pretty simple, though. I'm sure there's a sample of an alpha channel shader somewhere here already.




Isla Kamamee

Awkward? You bet!

50 XP

28th August 2006

0 Uploads

1,179 Posts

0 Threads

#7 12 years ago

yeah, its really basic stuff, but I actually forgot, why would you need varying transparencys? There is a way to do that with alphaMod, but forget I said that, cause theres no way Im up for troubleshooting that now.




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#8 12 years ago

There are plenty of reasons you might want varying transparency. Use some imagination.




Isla Kamamee

Awkward? You bet!

50 XP

28th August 2006

0 Uploads

1,179 Posts

0 Threads

#9 12 years ago

for what he described? Broken glass needs no heavy variation in transparency, it needs a transparent shader that refs the 32 bit tga or png




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#10 12 years ago

No, not for what he described, but you did not stipulate that in your statement. ;)




  • 1
  • 2