3dct / 3dct/open_iA

3D Renderer: volume cropped by 1 in every direction

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
C++
Stars
48
Forks
19
PR merge metrics
No merged PRs in 30d

Description

With raycast renderer (=software renderer), in the 3D renderer the volume is cropped by 1 voxel in every direction:

![problem-jw](https://user-images.githubusercontent.com/1629217/61126031-b1bfa300-a4ab-11e9-9c95-05682ad4801d.png)

The problem seems to only exist for the software renderer; the GPU renderer however produces strange results for small volumes.

Contributor guide

Open the contributing guide

Research direction

Look at the raycast renderer (software renderer) code in the 3D rendering module. The issue mentions the volume is cropped by 1 voxel in every direction. Start by finding the volume bounds handling in the raycasting algorithm, likely in a file related to volume rendering or raycasting. Compare with the GPU renderer's bounds handling to see the difference. Check for off-by-one errors in loop bounds or coordinate transformations. Running the software renderer on a small test volume can help verify the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
computer-graphics, cpp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.