Questions tagged [lighting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
23 votes
2 answers
10k views

How is a light probe different than an environmental cube map?

Looking at a light probe texture, it looks like a blurry environment map. What's the difference between the two, how is a light probe made, and what is the benefit of it being blurry?
user avatar
  • 7,331
14 votes
2 answers
11k views

How to Calculate Surface Normals for Generated Geometry

I have a class that generates a 3D shape based on inputs from the calling code. The inputs are things like length, depth, arc, etc. My code generates the geometry perfectly, however I am running into ...
user avatar
14 votes
2 answers
2k views

How to build a decent lens/camera objective model for path tracing?

I have written a small path-tracer after learning and experimenting on smallpt. The only thing that I did not write (and understood) myself is how the initial rays are computed and fired from the ...
user avatar
5 votes
2 answers
3k views

Refraction in a Ray Tracer: What do with an intersection within the medium?

I am currently following a tutorial at Scratchapixel.com on refraction Here is the refract function: ...
user avatar
  • 2,415
11 votes
2 answers
8k views

What is ambient lighting?

Wikipedia says: An ambient light source represents a fixed-intensity and fixed-color light source that affects all objects in the scene equally. By saying "affects all objects equally" they mean ...
user avatar
  • 587
9 votes
2 answers
1k views

How is spectral rendering handled?

Is all spectral rendering handled as simulation? Are there technique more tailored to 'consumer' rendering, such as for real-time or even just 'realistic looking without solving full physical ...
user avatar
9 votes
1 answer
679 views

Tweaking a glow shader to make it look better

I have a simple game and and subjects of it are these little lines. It is targeted for iOS and android so it has a HUGE range of processors that it could run on, right now. I am trying to add ...
user avatar
  • 1,365
9 votes
1 answer
3k views

OpenGL specular shading - Gradient banding issues

I use Phong shading as my lighting model. Nevertheless, the specular shading produces gradients in the light cone: Hopefully you can see the gradient starting from the lower left corner expanding ...
user avatar
  • 581
5 votes
1 answer
2k views

Bloom in DirectX

How can I make an object give the effect that it is giving out light when it isn't? I basically want to make an object glow, for example Neon Lights. Also Area Lights in my engine work properly but to ...
user avatar
  • 2,415
3 votes
1 answer
448 views

How to deal with light leaks?

I'm struggling with light leaking through meshes (especially thin ones) due to interpolation between probes located on the opposite sides of those. First approach I took was mapping all static ...
user avatar