[SOLVED] How do you correctly make a UI shadow? [Blender 3.4]

User avatar
xXCARL1992Xx
Posts: 16524
Joined: 17 Aug 2016 12:18
Contact:

Re: How do you correctly make a UI shadow? [Blender 3.4]

#11 Post by xXCARL1992Xx » 31 Dec 2022 14:17

i set it to 3 for my bakes, 0 can also work
| !!!NO SUPPORT OR REQUESTS OF ANY SORT VIA PM!!! | Screenshot Thread | Steam Workshop | World of Trucks Profil |
[ external image ]
ChiliBeef
Posts: 492
Joined: 27 Mar 2022 18:34

Re: How do you correctly make a UI shadow? [Blender 3.4]

#12 Post by ChiliBeef » 31 Dec 2022 16:05

@xXCARL1992Xx Hmm, even with it set to 3, I still get the same result. And, as usual, trying to adjust the brightness and contrast doesn't make a difference after applying Color to Alpha.
[ external image ]
Last edited by ChiliBeef on 31 Dec 2022 16:29, edited 1 time in total.
You can write almost any way you want, and you might make yourself understood.
But, if you don't use standard English properly, you would also help people understand that you aren't well educated.
User avatar
xXCARL1992Xx
Posts: 16524
Joined: 17 Aug 2016 12:18
Contact:

Re: How do you correctly make a UI shadow? [Blender 3.4]

#13 Post by xXCARL1992Xx » 31 Dec 2022 16:11

hm, can you send me the image you get after you bake it in blender ?
| !!!NO SUPPORT OR REQUESTS OF ANY SORT VIA PM!!! | Screenshot Thread | Steam Workshop | World of Trucks Profil |
[ external image ]
overfloater
Posts: 801
Joined: 30 Jul 2017 18:09
Contact:

Re: How do you correctly make a UI shadow? [Blender 3.4]

#14 Post by overfloater » 31 Dec 2022 17:38

get the shadow plane out of the wheels when baking.
Adjacent Faces and 16 px
these 2 setting are 100% completely and utterly irrelevant for UI shadow. (but do matter for everything else)

u need these 2 settings. 1 is quality, the other is shadow distance.
[ external image ]
ChiliBeef
Posts: 492
Joined: 27 Mar 2022 18:34

Re: How do you correctly make a UI shadow? [Blender 3.4]

#15 Post by ChiliBeef » 31 Dec 2022 18:41

@overfloater Actually, I found that @xXCARL1992Xx's settings produced a very slight difference in darkness on the shadow.
Overfloater's settings on the left, Carl's on the right.
[ external image ]
You can write almost any way you want, and you might make yourself understood.
But, if you don't use standard English properly, you would also help people understand that you aren't well educated.
overfloater
Posts: 801
Joined: 30 Jul 2017 18:09
Contact:

Re: [SOLVED] How do you correctly make a UI shadow? [Blender 3.4]

#16 Post by overfloater » 31 Dec 2022 19:25

Whatever difference you saw, it was not due to Margin settings. "Margin" draws pixels around the uv islands. Irrelevant here because you have a single island that takes up the entire texture.

Also, an error on my part.
i did not mean set samples strictly to 400, and distance strictly to 0.3m. That was to point out that *those* are the parameters you need to tweak, in this scenario.

You pointed out these issues:
1. black rectangles - its caused by the wheels clipping into the plane. Get the wheels out of the plane when baking.
2. tint (not 100% transparent) - AO distance too big. Decrease it. Measure how far the mesh is from the edge of the shadow plane, and set the AO distance to less than that.
ChiliBeef
Posts: 492
Joined: 27 Mar 2022 18:34

Re: [SOLVED] How do you correctly make a UI shadow? [Blender 3.4]

#17 Post by ChiliBeef » 31 Dec 2022 20:17

@overfloater I think you misunderstood when I said "settings". I was referring to what you also showed in the screenshot (which shows samples and AO Distance), along with moving the plane under the tires so that they would not clip.

And, you're confusing me with #2. By "tint", do you mean how you could see the border of the ui_shadow texture compared to the rest of the scene? That was fixed after Carl told me what settings to use with Color to Alpha in GIMP. And, what do you mean by, "Measure how far the mesh is from the edge of the shadow plane" ? The mesh and the shadow plane are the same thing, so I don't know what you're referring to.
You can write almost any way you want, and you might make yourself understood.
But, if you don't use standard English properly, you would also help people understand that you aren't well educated.
overfloater
Posts: 801
Joined: 30 Jul 2017 18:09
Contact:

Re: [SOLVED] How do you correctly make a UI shadow? [Blender 3.4]

#18 Post by overfloater » 31 Dec 2022 21:20

"Measure how far the mesh is from the edge of the shadow plane" ?
this distance:
[ external image ]
...helps you determine what to set AO distance to.
do you mean how you could see the border of the ui_shadow texture compared to the rest of the scene?
yes. its what happens when AO distance is too big.
[ external image ]
ChiliBeef
Posts: 492
Joined: 27 Mar 2022 18:34

Re: [SOLVED] How do you correctly make a UI shadow? [Blender 3.4]

#19 Post by ChiliBeef » 31 Dec 2022 22:08

@overfloater Oh, you meant the entire truck. When you said "mesh" (singular), I was thinking of the plane since it is also a mesh.
You can write almost any way you want, and you might make yourself understood.
But, if you don't use standard English properly, you would also help people understand that you aren't well educated.
ChiliBeef
Posts: 492
Joined: 27 Mar 2022 18:34

Re: [SOLVED] How do you correctly make a UI shadow? [Blender 3.4]

#20 Post by ChiliBeef » 01 Jan 2023 01:22

@xXCARL1992Xx So, while the shadows look good in Blender, they do not look so good in the showroom. :?

Day Cab has it right down the middle:
[ external image ]
[ external image ]

Sleeper Cab seems to only show shadow "blocks" around the rear wheels:
[ external image ]

Legacy Cab has no shadows:
[ external image ]

My .sii files seem to be in order (I assume). All necessary files are in the correct location, as well.
Day Cab

Code: Select all

	ui_shadow: "/vehicle/truck/389cruiser/ui_shadow_daycab.pmd"
	extended_shadow_texture: "/vehicle/truck/389cruiser/ui_shadow_daycab.tobj"
	extended_shadow_intensity: 1.0
	extended_shadow_fadeout_start: 10
	extended_shadow_fadeout_length: 0
Sleeper Cab

Code: Select all

	ui_shadow: "/vehicle/truck/389cruiser/ui_shadow_sleeper.pmd"
	extended_shadow_texture: "/vehicle/truck/389cruiser/ui_shadow_sleeper.tobj"
	extended_shadow_intensity: 1.0
	extended_shadow_fadeout_start: 10
	extended_shadow_fadeout_length: 0
Legacy Cab

Code: Select all

	ui_shadow: "/vehicle/truck/389cruiser/ui_shadow_legacy.pmd"
	extended_shadow_texture: "/vehicle/truck/389cruiser/ui_shadow_legacy.tobj"
	extended_shadow_intensity: 1.0
	extended_shadow_fadeout_start: 10
	extended_shadow_fadeout_length: 0
I'm pretty sure I'm overlooking something, but I'm not sure where to look.
You can write almost any way you want, and you might make yourself understood.
But, if you don't use standard English properly, you would also help people understand that you aren't well educated.
Post Reply

Return to “Blender Tools”

Who is online

Users browsing this forum: No registered users and 5 guests