Text archives Help
- From: "James Bigler" <
>
- To:
- Subject: [Manta] Re: Re: Re: RayPacketData::minT
- Date: Wed, 10 Sep 2008 07:06:53 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LiZritYCjpWUwzpelU32qbUc2Q5VdfyQEKnru/ZiwxyFsXYGEZxyyJQ032OFvk5RGG ctKCN0YGcMLvpa4m2fHJq3J5qtgtQ/9WrRjOK0HkxrB7qCyo3HoJY/oMSf7OZmuyHSoR V+fTnwTdr3+L0Km6KoZMN+hfBxqaE2VqbYeiw=
What Abe is mentioning, is that the minT value is based on the length
of the direction vector. When someone requests that the direction
vector be normalized, then minT is rescaled to keep it consistent. In
addition this means that minT could have different "units" based on
the length of the direction vector.
If you want to compare minT with different rays, you should normalize
the ray directions with a call to RayPacket::normalizeDirections().
James
On Tue, Sep 9, 2008 at 5:49 PM, Abe Stephens
<
>
wrote:
>
Check the ray packet flag NormalizedDirections
>
>
Abe
>
>
On Sep 9, 2008, at 5:47 PM, Li-Ta Lo wrote:
>
>
> On Tue, 2008-09-09 at 17:20 -0600, Thiago Ize wrote:
>
>>
>
>> Looking at Raypacket.cc we see:
>
>>
>
>> void RayPacket::actualComputeHitPositions()
>
>> {
>
>> <snip>
>
>> for(int i = rayBegin; i < rayEnd; i++){
>
>> for(int j=0;j<3;j++)
>
>> data->hitPosition[j][i] = data->origin[j][i] +
>
>> data->direction[j][i] * data->minT[i];
>
>> }
>
>> <snip>
>
>> }
>
>>
>
>> So, minT is what goes in the ray equation.
>
>
>
> Is data->direction normalized? Can I compare minT between rays with
>
> different directions and still say T1 > T2 so point 1 is further to
>
> the eye than point 2?
>
>
>
> Ollie
>
>
>
>
>
>
Archive powered by MHonArc 2.6.16.