Page 1 of 1

How to add transparency to cloth? (FAQ)

Posted: Mon Sep 22, 2008 1:12 pm
by Delta-1035
How is it possible to do that???
Image
Image of a skin by Culvar

Thanks in advance.

Re: How is possible do that???

Posted: Mon Sep 22, 2008 2:02 pm
by AceMastermind
I assume you mean the "holes" in the cloth piece?
Add an alpha channel to the cloth texture and paint the parts you want transparent as black (white is visible) in the alpha channel.
Then in the cloth ODF under [Properties] add this line:
Transparent = 1

Re: How is possible do that???

Posted: Mon Sep 22, 2008 2:30 pm
by Teancum
Whoa, I didn't know that! Ripped capes here we come!

Re: How is possible do that???

Posted: Mon Sep 22, 2008 3:04 pm
by Delta-1035
Ok... I'll try... :thumbs:

Re: How is possible do that???

Posted: Mon Sep 22, 2008 4:24 pm
by obiboba3po
Teancum wrote:Whoa, I didn't know that! Ripped capes here we come!
lol i didnt know it was that easy either :o thanks!

Re: How is possible do that???

Posted: Mon Sep 22, 2008 4:25 pm
by Commander_Cody771
Lol. Finally something Teancum didn't know. Coolies! I'll try it.

Re: How is possible do that???

Posted: Mon Sep 22, 2008 4:29 pm
by SBF_Dann_Boeing
Woah i didn't know that either. You could reskin cloaked anakin and make his cloth opaque, to turn it in to a veil or something, that would be cool. You could also make cool cloth styles with jagged or other shaped edges...tho that would look silly.

Re: How is possible do that???

Posted: Mon Sep 22, 2008 10:26 pm
by Culvar
You have to change something in the mesh of the soldier too if I recall.(It was in the transparency tut)

Re: How is possible do that???

Posted: Mon Sep 22, 2008 10:56 pm
by AceMastermind
Culvar wrote:You have to change something in the mesh of the soldier too if I recall.(It was in the transparency tut)
Nope, cloth geometry is handled differently by the engine than normal geometry, all you need is a texture with an alpha channel and that 1 line of code added in the cloth odf for it to work.
Another way cloth geometry is handled differently is that it is never backface culled ingame, meaning your cloth geometry doesn't need to have "thickness" which causes nasty clipping, nor does it have to be flagged as double sided in Edit Flags which will likely cause it to split ingame.

Re: How is possible do that???

Posted: Tue Sep 23, 2008 7:11 am
by MandeRek
I always thought that cloth was messy when having a 3d model for it, but Frag discovered it works fine as long as it's not frozen.. This is how they did Ki-Adi's ponytail i guess! And sweet about that transparancy; loads of new capes can be made just be using new, partly transparent textures :D

Re: How is possible do that???

Posted: Tue Sep 23, 2008 8:47 am
by Delta-1035
AceMastermind wrote:I assume you mean the "holes" in the cloth piece?
Add an alpha channel to the cloth texture and paint the parts you want transparent as black(white is visible) in the alpha channel.
Then in the cloth odf under [Properties] add this line:
Transparent = 1
Whic name for the alpha channel???

Re: How is possible do that???

Posted: Tue Sep 23, 2008 10:34 am
by Teancum
Hmm... can you do transparent = 1 for models themselves? That'd be handy.

Re: How is possible do that???

Posted: Tue Sep 23, 2008 11:44 am
by AceMastermind
MandeRek wrote:I always thought that cloth was messy when having a 3d model for it, but Frag discovered it works fine as long as it's not frozen.. This is how they did Ki-Adi's ponytail i guess!...
Well Kiadi's ponytail would hardly look good if it was looking like a flat sheet of paper, plus it's too small and the vertices are spread out just far enough to avoid clipping itself. :)
By the way, kiadi's ponytail geometry transforms were frozen, U3D shows it's coordinates at 0,0,0 :wink:

Delta-1035 wrote:Whic name for the alpha channel???
I'm not sure what you're saying....please explain

Teancum wrote:Hmm... can you do transparent = 1 for models themselves? That'd be handy.
I don't think so, it may be a special property of ClassLabel = "cloth", but you could always try it and see.

Re: How is possible do that???

Posted: Tue Sep 23, 2008 1:59 pm
by FragMe!
Yes I take back my comment about freeze the model and or transforms you can.
I do stick by my saying you can use any primitive for the cloth, case in point is for something I am working on for Dann I used and open bottom
cone and removed the top point and it works just fine as a cloth (now if I could get the collsions right it would be better :faint: ).

Just staying on the cloth topic I also found out that when you are UVing the cloth anywhere the polies are not connected to another poly it creates a split in the cloth in game. Once again on the cone cloth, it is mean to be a total wrap around no breaks but if I just UV it so it is flat with the center front of the cloth at either edge of the TGA it splits in game but if I select those edges and do a "heal" so they join the split goes away. That was a fun one to figure out.

anyway that is all for now.

Re: How is possible do that???

Posted: Tue Sep 23, 2008 2:19 pm
by AceMastermind
FragMe! wrote:I do stick by my saying you can use any primitive for the cloth, case in point is for something I am working on for Dann I used and open bottom cone and removed the top point and it works just fine as a cloth..
Yep, you can use whatever primitives you want, it's what you do with those primitives that determines the outcome.
In your case you say you used an open bottom cone then removed the top point, this makes it a cloth piece without "thickness" which will work and look fine. :)

Re: How is possible do that???

Posted: Wed Sep 24, 2008 8:46 am
by Delta-1035
"Add an alpha channel to the cloth texture and paint the parts you want transparent as black(white is visible) in the alpha channel."

How add an alpha channel???

Re: How is possible do that???

Posted: Wed Sep 24, 2008 2:12 pm
by Frisbeetarian
Check the FAQ thread:
The FAQ / Everything You Need Thread Version 2.0 wrote:How to work with alpha channels in GIMP(video tutorial)

Re: How is possible do that???

Posted: Thu Sep 25, 2008 9:19 am
by Delta-1035
Thanks Frisbeetarian :thumbs:

Re: How to add transparency to cloth? (FAQ)

Posted: Wed Oct 01, 2008 12:20 pm
by ForceMaster
The line:
Transparent = 1

works perfectly for clothes, I tried to put that into the ODF of an object and does not work, color that alpha added to the texture is black as I did in the clothes of the sniper but is white space of the object.
already tried?

Re: How to add transparency to cloth? (FAQ)

Posted: Wed Oct 01, 2008 1:31 pm
by DarthD.U.C.K.
thats something different
this line works only for cloth
fi you want to know how to make other objects transprent click me!