Hot answers tagged light
6
At midday, RGB of (1,1,1) or plain white light.
At sunrise, a little more blue looks pretty good. Tweak until you have good results.
At sunset, a lot more red looks good. Tweak as above.
At evening or night, go with a dark blue. This isn't really based in reality but it's common enough.
4
There are the fixed function and programmable shader pipelines.
This is much bigger than just lighting, chances are your learning a whole bunch of other outdated stuff. The following are some common functions that are now deprecated:
glBegin(...)
glEnd()
glVertex*
glNormal*
glColor*
glTextCoord*
glMultiTexCoord*
glLoadIdentity*
...
3
That depends. Our perceived color of the sun depends on a variety of factors -- the color we observe is due primarily to the scattering of the light in the atmosphere, so the content and quality of the atmosphere has an impact along with the sun's relative position in the sky.
Wikipedia's article on color temperature has some reference values for the sun, ...
3
Generally speaking, most people plug in a 45 degree angle in for the FOV. If you do this, a camera is then usually positioned just far enough away to include everything in the scene. No default on this distance because scale is so arbitrary in a 3d virtual world.
There is a concept of a default lighting rig where you have 3 directional lights. One lighting ...
2
Does section 27-1 of the following article help?
http://http.developer.nvidia.com/GPUGems3/gpugems3_ch27.html
I used this a while back and it worked perfectly, the type of projection (orthographic Vs perspective) should not be important as long as you can calculate the inverse view projection matrix.
1
You could provide players with some easy to obtain equipment to see in the dark (a torch, for example), but discourage its use for advanced players by making other equipment options available which result in superior character performance, but do not have the light perk.
An easy to acquire torch, for example, could be useful as a weapon itself in the ...
1
You could have alternative, very short, vague descriptions of locations for use at night. Also available interactions with elements of the room could be different. This way the player could be able to for example notice that there is some road sign pointing to some important location (which might be the city) and during day the player could be able to read ...
1
I want to answer my own question because i think that after reading some article about it, considering the kind of hardware available on the market, there is no point that can lead me to adopt a fixed pipeline instead of a programmable pipeline based on the shaders.
So even if you are targeting an hardware that can let you choose between a fixed pipeline or ...
1
Check your normals!
In the first image, each face has three vertices with the same normal as the face. These vertices are not shared between faces.
In your data, each vertex is shared by multiple faces. As such, it has a normal computed from the average of the normals of all the faces it's connected to.
You need to re-export your data, to get the normals ...
1
These are most commonly done, as far as I know, with a combination of animated texture maps (along with an alpha channel, obviously) — for instance, in the Darkspore example the animated texture would be laid onto a series of essentially rectangles representing the bridge, or in Oblivion as a second texture on the player mesdh — supplemented in ...
1
If you want something a little easier, without having to know about everything going on under the hood, I've heard that Krypton is a pretty good 2D lighting engine for XNA.
Alternatively, there's the blog posts from Catalin Zima (here and here) as well as a pretty enlightening (minor pun intended) thread on the subject here.
Lastly, although it's not free ...
1
Well I'm afraid you are going to have to learn about Shaders. Catalin's XNA Blog is an excellent place to start and has a great tutorial on using them for lighting effects.
Shader Overview
Smooth Shadow Tutorial
Only top voted, non community-wiki answers of a minimum length are eligible