3DViewer: Ray Tracing Top vs Bottom Lighting is very different

Bug #1838354 reported by Andrey Kuznetsov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Seth Hillbrand

Bug Description

When looking at the board using ray tracing, use the shortcuts I list to view it, the top view (Z) is bright, however the bottom view (SHIFT+Z) is much darker. It's like the light source is on the other side of the board.

I think the board should be illuminated the same way.
During the rendering, both sides look the same, fairly dark.
I believe the lighting is applied after the rendering is complete, and that's when you can see the difference.

Application: kicad
Version: (5.1.2-1)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.6.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Tags: 3d-viewer
Revision history for this message
Seth Hillbrand (sethh) wrote :

You can turn the floor off in the settings.

Changed in kicad:
status: New → Won't Fix
Revision history for this message
Andrey Kuznetsov (kandrey89) wrote :

Preferences -> Render Options -> Raytracing Options -> Add Floor

Thank you

Revision history for this message
Seth Hillbrand (sethh) wrote :

Fixed in revision 4fcfd266e

Changed in kicad:
assignee: nobody → Seth Hillbrand (sethh)
importance: Undecided → Low
milestone: none → 5.1.5
status: Won't Fix → Fix Committed
Revision history for this message
Andrey Kuznetsov (kandrey89) wrote :

Thanks, good fix, makes sense!

Revision history for this message
Andrey Kuznetsov (kandrey89) wrote :

4fcfd266e by Seth Hillbrand on 2019-08-14
3d: Disable floor rendering by default

The floor render in raytracing creates interesting shadow effects but
significantly increasing the processing time for renders and has the
side effect of making the bottom of the board very dark if you simply
flip it over. Making this option off by default, we allow power users
to turn it on if needed for their renders while speeding up the default
raytrace and preventing new user confusion.

tags: added: 3d-viewer
removed: 3dviewer
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.