Text archives Help
- From: Abe Stephens <
>
- To:
- Cc: Thiago Ize <
>,
- Subject: [Manta] Re: Re: RayPacketData::minT
- Date: Tue, 9 Sep 2008 17:49:19 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=eyER5ApNIFOoYXiwgoYNf5eT5qmCBRpr0Ry8za1uGgjWKUViYNdpvMiNflNW96nPKO 4vZ3iMFH5x4EAf9YVF4nstIssTElzs1HPlV3FFL/d0aHaSH68JFm4Cy4TRLqsJ27Agz1 wO9HH9jjvWvAkYLWvtMz7jPA1QZ2uKlpWpnHs=
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.