Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] naive questions (fwd)


Chronological Thread 
  • From: Peter Shirley <shirley@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: Re: [MANTA] naive questions (fwd)
  • Date: Sun, 17 Jul 2005 22:36:06 -0600 (MDT)


UGH!  Thanks to Solomon.  My old "&" seen as "&&" once
again.   Ignore most of previous question (except the assert part).

Pete


---------- Forwarded message ----------
Date: Sun, 17 Jul 2005 22:20:07 -0600
From: Solomon Boulos <boulos@cs.utah.edu>
To: Peter Shirley <shirley@cs.utah.edu>
Subject: Re: [MANTA] naive questions

hey pete,

shadowRays.getFlags() returns an int (the flags) so the if statement you're
looking at sees if the shadowRays all have NormalizedDirections.  So it's not 
an
assertion, just a check to see if the RayPacket has the property.

On Jul 17, 2005, at 10:00 PM, Peter Shirley wrote:

> 
> Hi-- I am FINALLY messing with materials and am trying to tread lightly
> since I am still a novice on manta and materials are so central.
> I have some style questions:
> 
> the version of the code I have for Lambertian (I have an old tree for
> now please forgive), there is:
> 
> RayPacket shadowRays(data, 0, rays.getDepth(), 0);
>    int end = context.shadowAlgorithm->computeShadows(context, activeLights,
>                                   rays, start, shadowRays);
> if(shadowRays.getFlags() & RayPacket::NormalizedDirections){
> 
> Seems like shadowAlgorithm BETTER set shadowRays and we should have
> some sort of debug-mode assert() instead of "if(shadowRays.getFlags()".
> So am I missing something?  If not, what is the right way to do debug
> asserts in manta?
> 
> Thanks,
> 
> Pete
> 
> 






  • Re: [MANTA] naive questions (fwd), Peter Shirley, 07/17/2005

Archive powered by MHonArc 2.6.16.

Top of page