Text archives Help
- From: cgribble@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1091 - trunk/Model/Primitives
- Date: Tue, 30 May 2006 14:26:18 -0600 (MDT)
Author: cgribble
Date: Tue May 30 14:26:18 2006
New Revision: 1091
Modified:
trunk/Model/Primitives/DynPLTGridSpheres.cc
Log:
Fixed flicker (off-by-one error in subpackets)
Modified: trunk/Model/Primitives/DynPLTGridSpheres.cc
==============================================================================
--- trunk/Model/Primitives/DynPLTGridSpheres.cc (original)
+++ trunk/Model/Primitives/DynPLTGridSpheres.cc Tue May 30 14:26:18 2006
@@ -51,7 +51,7 @@
void DynPLTGridSpheres::shade(const RenderContext& context,
RayPacket& rays) const
{
- for (unsigned int i=rays.begin(); i<rays.end(); ++i) {
+ for (unsigned int i=rays.begin(); i<rays.end(); ) {
// Find a run of rays that hit the same particle
int offset=rays.scratchpad<int>(i);
unsigned int end=i + 1;
@@ -109,18 +109,6 @@
} else {
// Request texture generation, if necessary
if (!requested[particle]) {
- // Look up center, radius data for current particle
- float* data=spheres + particle;
- float current_radius;
- if (ridx>0) {
- if (data[ridx] <= 0)
- current_radius=radius;
- else
- current_radius=data[ridx];
- } else {
- current_radius=radius;
- }
-
// Create and post message
DynPLTMessage msg(particle, this);
if (queue->trySend(msg))
- [MANTA] r1091 - trunk/Model/Primitives, cgribble, 05/30/2006
Archive powered by MHonArc 2.6.16.