Reputation
Next tag badge:
91/100 score
27/20 answers
Badges
3 55 93
Newest
 Enlightened
Impact
~707k people reached

Mar
15
comment Per-fragment lighting system behaves like ambient lighting system
@Hernán It can be done per-vertex, but it's an approximation. It may look ok on finely tessellated models, not so great on low-poly ones.
Feb
9
awarded  Enlightened
Feb
9
awarded  Nice Answer
Feb
1
awarded  Popular Question
Nov
10
comment Oriented Bounding Box - How to?
@Robinson That's true, but I don't see where that conflicts with what I said?
Nov
3
awarded  Enlightened
Nov
3
awarded  Nice Answer
Oct
22
comment Silly question about perspective correct texture mapping
@Arne The point is that you interpolate u/w and 1/w linearly in screen space, then use them to calculate u per pixel. That's how you get u to be interpolated with perspective correction.
Sep
13
awarded  Yearling
Jul
28
comment Should input be per-frame or per-update?
Oh, for some reason I didn't see the last paragraph. :) But yes, there are sometimes multiple points in the game loop where input is accepted, e.g. once during update/simulation and again at the last moment before submitting rendering, to tweak the camera matrices for the latest movement. Actually I'm not sure what it would accomplish to put input polling on a separate thread, if the game loop only accepts input from that thread once per frame.
Jul
28
comment Should input be per-frame or per-update?
Some games, like twitch shooters, have even been known to poll for mouse/gamepad input multiple times per frame to get latency as low as possible.
Jun
27
comment What advantages does multisampling have over supersampling?
@BrainSlugs83 Yes, GPUs these days often use simple lossless compression formats for render targets, especially MSAA ones. It's done in hardware and is transparent to applications. Saves a ton of memory bandwidth. (Note this is a totally different thing from DXT/BC texture compression, which is lossy and precompressed offline. But that also does store the data compressed in video memory; it's decompressed in hardware when the texture is sampled. Again, saves a ton of bandwidth.) Source: I work at NVIDIA.
Jun
17
comment Simulating water droplets on a window
@MaximKamalov Done. (Until the next time AMD decides to reorganize their website...)
Jun
17
revised Simulating water droplets on a window
fixed link
May
31
awarded  Good Answer
May
30
comment Deferred shading - how to combine multiple lights?
@PsychoDad That's the domain of shadows, which is...a more complicated topic. :)
May
29
comment Deferred shading - how to combine multiple lights?
@woojoo666 Aha, sounds like you solved it on your own. Yes, you have to lay down depth in an opaque pass before you can use any sort of blending. It can be a z-prepass with color writes disabled, or another common way is to do ambient/directional light in a first pass with no blending, then add point/spot lights in later passes with blending.
May
27
comment Deferred shading - how to combine multiple lights?
@woojoo666 No. In fact it should be enabled with the depth test set to less-equal, so that surfaces that precisely match the previous pass will go through. If the depth test is off, then surfaces will incorrectly accumulate light from whatever's behind them. :)
May
19
awarded  Enlightened
May
19
awarded  Nice Answer