Skip to content

Commit ba486eb

Browse files
committed
Fix crucial data sampling bugs
1 parent 90c38fc commit ba486eb

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

DVRViewPlugin/res/shaders/FullDataSampling.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ void main()
153153

154154
// Update brick counters in x-first order.
155155
bx++;
156-
if (bx > int(atlasLayout.x))
156+
if (bx >= int(atlasLayout.x))
157157
{
158158
bx = 0;
159159
by++;
160-
if (by > int(atlasLayout.y))
160+
if (by >= int(atlasLayout.y))
161161
{
162162
by = 0;
163163
bz++;

DVRViewPlugin/src/VolumeRenderer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,9 +1069,6 @@ void VolumeRenderer::getGPUFullDataModeBatches(std::vector<float>& frontfacesDat
10691069
{
10701070
for (int idx = batchIndex; idx < width * height; idx += numBatches)
10711071
{
1072-
// Skip pixel if it does not hit the volume.
1073-
if (frontfacesData[idx * 3] == 0.0f)
1074-
continue;
10751072

10761073
// Get positions from the textures.
10771074
mv::Vector3f frontPos(

0 commit comments

Comments
 (0)