View Issue Details

IDProjectCategoryView StatusLast Update
0033349CommunityOCCT:Visualizationpublic2024-01-12 21:54
ReporterPawelK Assigned Tosshutina  
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2017 
Product Version7.6.3 
Target VersionUnscheduled 
Summary0033349: Visualization - Path tracing producing awkward artifacts
DescriptionI have defined a scene and use it to render images using path tracing with OCCT770.
The components of the scene are:
- a CAD modell (stud)
- light source (V3d_PositionalLight)
- a grid that is placed in front of the light source (stripes)
- a camera

The generated stripes do not seem to be right and obviously depend on the angle between the light and the face normal (see attached image).

Looks like accumulated error of single precision floating point math. As larger distance of the light - the harder effect.

https://dev.opencascade.org/content/path-tracing-producing-awkward-artifacts
Steps To Reproduce
pload MODELING VISUALIZATION
vinit View1
vclear
vraytrace 1
vrenderparams -shadows 1
vlight redlight -type POSITIONAL -headlight 0 -pos 25 0 200 -color RED -intensity 10 -display

pcylinder c0 50 5
pcylinder c1 25 50
vdisplay  c0 c1 -dispMode 1
vaspects  c0 c1 -material plastic -color white
vfit

box b1 0 -0.5 -200 1  1 400
box b2 0 -1.5 -200 1 -1 400
box b3 0  1.5 -200 1  1 400
vdisplay b1 b2 b3 -dispMode 1

proc testdist {d} {
  vlocation b1 -setLocation $d 0 0
  vlocation b2 -setLocation $d 0 0
  vlocation b3 -setLocation $d 0 0
  vlight redlight -pos [expr 25+$d] 0 200
}

testdist 100
#testdist 1000
TagsNo tags attached.
Test case number

Attached Files

  • draw3.PNG (30,750 bytes)
  • draw2.PNG (6,548 bytes)
  • Cylinder.PNG (198,911 bytes)
  • Cylinder_orthographic.PNG (73,258 bytes)

Activities

PawelK

2023-03-23 15:46

reporter   ~0113318

draw3.PNG (30,750 bytes)

PawelK

2023-03-23 15:47

reporter   ~0113319

draw2.PNG (6,548 bytes)
Cylinder.PNG (198,911 bytes)
Cylinder_orthographic.PNG (73,258 bytes)

Issue History

Date Modified Username Field Change
2023-03-22 19:25 PawelK New Issue
2023-03-22 19:25 PawelK Assigned To => sshutina
2023-03-22 22:33 dpasukhi Target Version => Unscheduled
2023-03-22 22:33 dpasukhi Summary Path tracing producing awkward artifacts => Visualization - Path tracing producing awkward artifacts
2023-03-22 22:33 dpasukhi Steps to Reproduce Updated
2023-03-23 15:46 PawelK Note Added: 0113318
2023-03-23 15:46 PawelK File Added: draw3.PNG
2023-03-23 15:47 PawelK Note Added: 0113319
2023-03-23 15:47 PawelK File Added: draw2.PNG
2023-03-23 15:47 PawelK File Added: Cylinder.PNG
2023-03-23 15:47 PawelK File Added: Cylinder_orthographic.PNG