Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] fragment shapes


Chronological Thread 
  • From: James Bigler <bigler@cs.utah.edu>
  • To: harsha sri-narayana <h.sri-narayana@cs.ucl.ac.uk>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] fragment shapes
  • Date: Mon, 14 Jan 2008 07:21:48 -0700

In Manta fragments are simply a region of the screen (think of them as a "fragment" of the screen). There is no assumption as to the default shape. The DissolveImageTraverser in fact generates fragments that are a series of single pixels over the screen.

The reason we have flags such as LineShape and SquareShape are for different components to make optimizations. Since there is no underlying assumption to the shape of a fragment, these flags give hints to the actual shape. These could provide opportunities for optimizations. For example the LineShape tells us that 'y' is constant for a fragment. A square shape tells us that we could easily create a frustum from the rays generated.

Also, there is some sutble interaction between the number of pixels you can place in a fragment, the ray packet size, and the shape of the fragment. I could go into more detail if you wish to know.

James

On Jan 14, 2008, at 5:00 AM, harsha sri-narayana wrote:

Hello I have a question:

In TiledImageTraverser.renderImage() why are fragments 'LineShape' or 'SquareShape'? In my mind fragments are (basically always) squares, but with the default sphere scene it seems like the code is always going down the LineShape path.
Sorry if this isn't a worthy question for the list.
-Harsha






Archive powered by MHonArc 2.6.16.

Top of page