[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Goptical] Intensity mode

From: Alexandre Becoulet
Subject: Re: [Goptical] Intensity mode
Date: Tue, 19 Feb 2013 00:37:53 +0100
User-agent: KMail/4.9.5 (Linux/3.7.4-1-ARCH; KDE/4.9.5; x86_64; ; )

On Monday 18 February 2013 15:15:17 Richard Graham wrote:

> I am trying to work out the intensities in my system and have some
> confusion about the status of the intensity calculations. From the
> documentation it seems that while taking into account polarizations is
> not yet supported, without polarization should be, which is ok for me.

It is supported, see OpticalSurface::trace_ray_intensity in the source file.
> But when I do:
> tracer.get_params().set_intensity_mode(Trace::IntensityMode(Trace::Intensity
> Trace)); tracer.trace();
> I get a goptical error "what():  data set doesn't contains enough data".

You need to add transmitance data to your material first:

> When I do a spot analysis I see that the intensities are always whole
> numbers -- it seems like it is just counting intersecting rays rather
> than actually working out the intensities. I don't see anywhere in the
> code where the IntensityTrace mode is used.

It is used in to select a call to the trace_ray_intensity 
virtual function.

> Are the reflection coefficents (such as worked out from Fresnel
> equations) actually calculated anywhere?

Yes they are, see in Please check the formula is ok for you 
and let me know.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]