Skip to main content
Tweeted twitter.com/StackGameDev/status/1545196068127883264
Cleanup
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

I need help with 3d shading/lighting. How to avoid flat appearance on sides that receive only ambient light?

How do you guysdoes one handle shading in a 3d3D game? 

I have a directional light source that shades one side of a tree made of cubes. The remaining 3 sides all get ambient shading only. So the 3d3D effect is lost when looking at two ambient shaded sides. 

Am I missing something? Should I be shading the side furthest from the light source even darker? I tried looking at Fallout 3 and it kindakind of looks like this is what they do, however Minecraft appears to shade a grass mound with two opposite sides light and the remaining two opposite sides dark kinda, giving the effect that there are two directional lights for the two light shaded sides and ambient light for the dark shaded sides.

I need help with 3d shading/lighting.

How do you guys handle shading in a 3d game? I have a directional light source that shades one side of a tree made of cubes. The remaining 3 sides all get ambient shading only. So the 3d effect is lost when looking at two ambient shaded sides. Am I missing something? Should I be shading the side furthest from the light source even darker? I tried looking at Fallout 3 and it kinda looks like this is what they do however Minecraft appears to shade a grass mound with two opposite sides light and the remaining two opposite sides dark kinda giving the effect that there are two directional lights for the two light shaded sides and ambient light for the dark shaded sides.

How to avoid flat appearance on sides that receive only ambient light?

How does one handle shading in a 3D game? 

I have a directional light source that shades one side of a tree made of cubes. The remaining 3 sides all get ambient shading only. So the 3D effect is lost when looking at two ambient shaded sides. 

Am I missing something? Should I be shading the side furthest from the light source even darker? I tried looking at Fallout 3 and it kind of looks like this is what they do, however Minecraft appears to shade a grass mound with two opposite sides light and the remaining two opposite sides dark, giving the effect that there are two directional lights for the two light shaded sides and ambient light for the dark shaded sides.

Source Link
Xavier
  • 1.6k
  • 2
  • 18
  • 25

I need help with 3d shading/lighting.

How do you guys handle shading in a 3d game? I have a directional light source that shades one side of a tree made of cubes. The remaining 3 sides all get ambient shading only. So the 3d effect is lost when looking at two ambient shaded sides. Am I missing something? Should I be shading the side furthest from the light source even darker? I tried looking at Fallout 3 and it kinda looks like this is what they do however Minecraft appears to shade a grass mound with two opposite sides light and the remaining two opposite sides dark kinda giving the effect that there are two directional lights for the two light shaded sides and ambient light for the dark shaded sides.