Quiz
- in terms of the shader color, for the demos, it makes sense for this particular type of gray, since everything else other than the object is a gray background, but when we are making a real life scenario, how do we choose the color? or what principles should this have?
Interesting question! In the threejs reading, they make the point:
What that means is if you want your scene to fade to a certain color you need to set the fog and the background color to the same color. The background color is set using the
scene.backgroundproperty.So, in our examples, we saw:
Now, to your question about what color the fog should be. In my experience, fog typically seems to be light gray, but at night, perhaps it would make sense for the fog to be dark gray (while the scene background is black).
I personally can't think of situations where it might have a hue, but I asked ChatGPT, and it came up with some interesting suggestions:
🔥 1. Desert or Sunset Scene – Warm Fog (Orange/Yellow)
To mimic dust or sand in the air, or the warm glow of a sunset, you might use a golden or reddish hue:
🌲 2. Forest or Swamp – Greenish Fog
To create a misty, eerie forest or swamp, use a desaturated green:
🌌 3. Sci-Fi or Alien World – Purple, Blue, or Teal Fog
For alien or futuristic environments, stylized fog in cool tones works great:
❄️ 4. Snowy or Ice World – Pale Blue or White Fog
To make a snowy world feel cold and immersive:
👻 5. Horror or Haunted Scene – Desaturated Blue/Green or Even Black Fog
For a spooky vibe, try darker or odd-toned fogs:
- no questions yet?
- None right now. Thank you for the reading! / Thank you for the reading + all the great readings this semester!
My pleasure! I appreciate how thoughful and engaged everyone has been all semester!