|
Post by iheartscratch on Jan 29, 2022 22:19:27 GMT -5
I'm trying to create a leaf inside of a glass frame, but I can't get it to look right in game. When I take the object into game, the background of the leaf shows up even though I've added an alpha channel to the texture. Is there a way to remove the background? .package.blend
|
|
|
Post by menaceman44 on Jan 30, 2022 14:51:52 GMT -5
Your object is using the Phong shader but you need to be using the PhongAlpha shader for transparency to work.
|
|
|
Post by qolygonal on Jan 30, 2022 18:17:58 GMT -5
Phong can also be used for transparent objects, but it gives a hard outline. | | Phong | PhongAlpha | How to enable transparency:1. Go to the Warehouse > Model LOD 00000000 > Data > Meshes — Edit Items... > Phong > Material, Entries — Edit Items... > VariantId: set-1, StateId: Default > Material, Items — Edit Items... 2. Add AlphaMap: copy the DiffuseMap line, select AlphaMap from the dropdown list. 3. Change the value of AlphaMaskThreshold. The AlphaMaskThreshold parameter converts semi-transparent areas into completely transparent or completely opaque areas, based on a threshold you set, between 0 and 255. 128 is the average value used by most maxis items. All values above this threshold will become opaque and all values below or equal to this threshold will become completely transparent. 4. Save and repeat for all swatches, states, and LODs.
|
|
|
Post by iheartscratch on Jan 31, 2022 6:30:05 GMT -5
I tried doing this, and my mesh turned black. .package
|
|
|
Post by qolygonal on Jan 31, 2022 6:47:52 GMT -5
Copy the DiffuseMap line and then edit the copy. Don't edit the default variant. Edit the burnt state.
|
|
|
Post by iheartscratch on Jan 31, 2022 20:49:25 GMT -5
It worked! Tysm!
|
|