Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiline textout Pin
Chris Losinger9-Oct-07 3:51
professionalChris Losinger9-Oct-07 3:51 
GeneralRe: Multiline textout Pin
vSteve9-Oct-07 4:20
vSteve9-Oct-07 4:20 
GeneralRe: Multiline textout Pin
led mike9-Oct-07 5:02
led mike9-Oct-07 5:02 
QuestionBuffer Overrun Pin
LCI9-Oct-07 2:33
LCI9-Oct-07 2:33 
AnswerRe: Buffer Overrun Pin
David Crow9-Oct-07 2:51
David Crow9-Oct-07 2:51 
AnswerRe: Buffer Overrun Pin
Stephen Hewitt9-Oct-07 12:29
Stephen Hewitt9-Oct-07 12:29 
QuestionDirectX - Generall Question Pin
GermanGeorge9-Oct-07 2:05
GermanGeorge9-Oct-07 2:05 
AnswerRe: DirectX - Generall Question Pin
El Corazon9-Oct-07 15:17
El Corazon9-Oct-07 15:17 
GermanGeorge wrote:
the lens is made out of colored glass (let us say brown)
so what happens is, that in the thinner part of the lens the brown is not so intense. in the thicker part of the lens the lens is darker, as there is more material.


Are you only trying to change the color of the lens, or are you trying to model the refraction (light bending) of the lens? In the case of the color change set the color brown to levels from faint to heavy based on the thickness of the lens. Basically make a texture map to represent the color at each point in the material. Alternately, you can have a fixed color, brown, and vary only the alpha (transmitance) value based on the thickness of the lens.

If the idea is to model both color change and light bending of the glass lens, google ray-tracing, refraction, BRTDF caustics and/or global illumination. http://www.gpgpu.org/cgi-bin/blosxom.cgi/Advanced%20Rendering/Global%20Illumination/index.html[^]

_________________________
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: DirectX - Generall Question Pin
GermanGeorge9-Oct-07 20:37
GermanGeorge9-Oct-07 20:37 
GeneralRe: DirectX - Generall Question Pin
El Corazon10-Oct-07 4:04
El Corazon10-Oct-07 4:04 
GeneralRe: DirectX - Generall Question Pin
GermanGeorge10-Oct-07 22:11
GermanGeorge10-Oct-07 22:11 
QuestionNot Getting picture in Picture in Picture Control Pin
GauranG Shah9-Oct-07 1:45
GauranG Shah9-Oct-07 1:45 
AnswerRe: Not Getting picture in Picture in Picture Control Pin
chandu0049-Oct-07 3:33
chandu0049-Oct-07 3:33 
AnswerRe: Not Getting picture in Picture in Picture Control Pin
Roger Broomfield9-Oct-07 6:03
Roger Broomfield9-Oct-07 6:03 
QuestionStop USB Devices Pin
VC_RYK9-Oct-07 1:39
VC_RYK9-Oct-07 1:39 
QuestionRe: Stop USB Devices Pin
David Crow9-Oct-07 2:52
David Crow9-Oct-07 2:52 
AnswerRe: Stop USB Devices Pin
VC_RYK9-Oct-07 18:56
VC_RYK9-Oct-07 18:56 
GeneralRe: Stop USB Devices Pin
aks.9-Oct-07 19:33
aks.9-Oct-07 19:33 
AnswerRe: Stop USB Devices Pin
ram.Jaddu9-Oct-07 23:11
ram.Jaddu9-Oct-07 23:11 
Questionmsdn files are affected Pin
prithaa9-Oct-07 1:22
prithaa9-Oct-07 1:22 
AnswerRe: msdn files are affected Pin
chandu0049-Oct-07 3:18
chandu0049-Oct-07 3:18 
QuestionHow to identify click event on Tabcontrol? Pin
Atul239-Oct-07 0:50
Atul239-Oct-07 0:50 
AnswerRe: How to identify click event on Tabcontrol? Pin
Waldermort9-Oct-07 0:57
Waldermort9-Oct-07 0:57 
Questiondisplaying GIFF in view Pin
Anu_Bala9-Oct-07 0:48
Anu_Bala9-Oct-07 0:48 
AnswerRe: displaying GIFF in view Pin
Waldermort9-Oct-07 0:55
Waldermort9-Oct-07 0:55 

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.