[Blender 3.2] How to create an ui shadow

Post Reply
User avatar
Dotec
Founder
Founder
Posts: 85
Joined: 30. Sep 2023 21:20
Location: Stuttgart, Germany
Contact:

[Blender 3.2] How to create an ui shadow

Post by Dotec »

Create a plane, scale it like in the picture, place it under the truck (directly under the tires), set vertex paint to zero and create a
new material with Diffuse BSDF shader

Image

In "Shading" tab, add new image, give it a name and resolution something like 512x1024. Make sure you click
on it so it is with a white frame, otherwise blender won't bake.

Image

Now change the render settings like you see here

Image

Now click on Bake and wait untils it's done.

After it is done, save the file as tga

Image

Now open the image in a graphic program (I use gimp)

Image

First of all let's invert the colors

Image

after that, go to Colors > Curves and change it like in the picture

Image

save it as a new texture file and give it a new name. something like ui_shadow_4x2_alpha.tga. after that create. A new image with full black resolution 512x1024 and save it as ui_shadow_4x2.tga. Now I use the programdxtbmp to edit the alpha channel. Now I open the ui_shadow_4x2.tga file and replace the alpha image by clicking on the open folder icon and select the file ui_shadow_4x2_alpha.tga.
Now save it as ui_shadow_4x2.tga and you're done.

Image
Image
---------
Life is just a game, but atleast the graphics are awesome!
User avatar
Dotec
Founder
Founder
Posts: 85
Joined: 30. Sep 2023 21:20
Location: Stuttgart, Germany
Contact:

Re: [Blender 3.2] How to create an ui shadow

Post by Dotec »

Image
---------
Life is just a game, but atleast the graphics are awesome!
Post Reply