Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problem with a loop in UpdateWindow Pin
David Crow16-Oct-07 4:02
David Crow16-Oct-07 4:02 
AnswerRe: Problem with a loop in UpdateWindow Pin
Nelek16-Oct-07 21:49
protectorNelek16-Oct-07 21:49 
GeneralRe: Problem with a loop in UpdateWindow Pin
David Crow17-Oct-07 4:20
David Crow17-Oct-07 4:20 
JokeRe: Problem with a loop in UpdateWindow Pin
Nelek17-Oct-07 5:40
protectorNelek17-Oct-07 5:40 
AnswerRe: Problem with a loop in UpdateWindow Pin
Mike Dimmick17-Oct-07 4:11
Mike Dimmick17-Oct-07 4:11 
GeneralRe: Problem with a loop in UpdateWindow Pin
Nelek17-Oct-07 5:36
protectorNelek17-Oct-07 5:36 
QuestionOpenGL Coloured Lighting Pin
Anthony Mushrow16-Oct-07 1:52
professionalAnthony Mushrow16-Oct-07 1:52 
AnswerRe: OpenGL Coloured Lighting Pin
El Corazon16-Oct-07 6:52
El Corazon16-Oct-07 6:52 
The Undefeated wrote:
So, what can i do about it?


several things. First light is not light as you see it in the real world. Virtual lighting is a calculation of a direction vector of the light. Without other algorithms, it doesn't even have shadows and you can illuminate anything facing the light, even if it is behind something else obscuring the light.

Without adjusting anything else the entire face of your triangle has one directional surface, the normal vector. That vector determines how light reacts to the surface. Since a single vector exists for the entire surface, the entre surface will calculate the same lighting value. You can specify your own surface normals, in which you want one normal for each vertex rather than one for each triangle. So a triangle now has three surface normals of slightly different variation. The result is smoother light.

If you want more accurate light, you are looking for real-time global illumination, or radiosity on a GPU.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

GeneralRe: OpenGL Coloured Lighting Pin
Anthony Mushrow16-Oct-07 9:43
professionalAnthony Mushrow16-Oct-07 9:43 
GeneralRe: OpenGL Coloured Lighting Pin
El Corazon16-Oct-07 10:49
El Corazon16-Oct-07 10:49 
QuestionAdding Images to the subitems in ListView Pin
D.Srihari16-Oct-07 1:37
D.Srihari16-Oct-07 1:37 
AnswerRe: Adding Images to the subitems in ListView Pin
Nelek16-Oct-07 3:21
protectorNelek16-Oct-07 3:21 
AnswerRe: Adding Images to the subitems in ListView Pin
Hamid_RT16-Oct-07 8:28
Hamid_RT16-Oct-07 8:28 
QuestionMinimize button for the application Pin
shir_k16-Oct-07 1:27
shir_k16-Oct-07 1:27 
QuestionRe: Minimize button for the application Pin
David Crow16-Oct-07 3:09
David Crow16-Oct-07 3:09 
AnswerRe: Minimize button for the application Pin
shir_k16-Oct-07 19:01
shir_k16-Oct-07 19:01 
GeneralRe: Minimize button for the application Pin
shir_k16-Oct-07 23:28
shir_k16-Oct-07 23:28 
QuestionC++ Helper Plugin Pin
MarkB77716-Oct-07 1:14
MarkB77716-Oct-07 1:14 
AnswerRe: C++ Helper Plugin Pin
toxcct16-Oct-07 1:19
toxcct16-Oct-07 1:19 
Questionrearranging TreeView items Pin
aaa_11116-Oct-07 0:38
aaa_11116-Oct-07 0:38 
QuestionUsing IXMLHTTPRequest->send( ... ) on Vista Pin
Andy H16-Oct-07 0:17
Andy H16-Oct-07 0:17 
AnswerRe: Using IXMLHTTPRequest->send( ... ) on Vista Pin
Jonathan [Darka]16-Oct-07 4:18
professionalJonathan [Darka]16-Oct-07 4:18 
GeneralRe: Using IXMLHTTPRequest->send( ... ) on Vista Pin
Andy H16-Oct-07 5:11
Andy H16-Oct-07 5:11 
GeneralRe: Using IXMLHTTPRequest->send( ... ) on Vista Pin
Jonathan [Darka]16-Oct-07 5:14
professionalJonathan [Darka]16-Oct-07 5:14 
QuestionProblem in Accessing CStringArray object, Pin
Atul2315-Oct-07 23:24
Atul2315-Oct-07 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.