3D Viewer (Latest Nightly Build): Raytracing bottom of board, lights, shadows, reflections, etc. Do not flip with the camera.

Bug #1732993 reported by Jt Whissel
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Unknown

Bug Description

When using raytracing, the shadows, reflections, lights do not move. When I switch it to "back view" I would expect the board to flip and not the whole "world"/scene around the board. Maybe even add a button to "flip" the board like there is in pcbnew. I attached some sample renders to show you what I mean. There is one of the top render and one of the back render. They should be identical as far as I believe the intended behavior should be.

Thanks for your time guys!

Application: pcbnew
Version: no-vcs-found-a655486~61~ubuntu17.10.1, release build
Libraries:
    wxWidgets 3.0.3
    libcurl/7.55.1 OpenSSL/1.0.2g zlib/1.2.11 libidn2/2.0.2 libpsl/0.18.0 (+libidn2/2.0.2) librtmp/2.3
Platform: Linux 4.13.0-16-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.62.0
    Curl: 7.55.1
    Compiler: GCC 7.2.0 with C++ ABI 1011

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

Revision history for this message
Jt Whissel (jtwhissel) wrote :
tags: added: 3d-viewer raytrace
removed: 3d flipped ray tracing viewer
Revision history for this message
Mario Luzeiro (mrluzeiro) wrote :

Hi Whissel,
thanks for your interest and feedback.

> When using raytracing, the shadows, reflections, lights do not move.

In the current 3DViewer implementation, everthing is fixed except only the camera moves.

> When I switch it to "back view" I would expect the board to flip and not the whole "world"/scene around the board.

Actually when you select a view option on 3D Viewer what it means is:
Top view: place the camera on top size of the PCB and loot to it (look to the TOP)
Bottom view: place the camera on botton size of the PCB and loot to it (look to the Bottom)
..

Once again the PCB object is fixed and what changes is the eye (camera)

This is also the same as the 3D rotation system, the camera is rotating around the fixed object.

> I attached some sample renders to show you what I mean.

The only issue here is that at moment there is only implemented a bottom floor (Preferences->RenderOptions->Add floor)
so what you are seeing is the dark shadow caused by the "floor" object. If you disable it, the shadow will disappear.

> Maybe even add a button to "flip" the board like there is in pcbnew.

This could be a future feature, so the PCB object can be flipped and it will work with the current floor and camera implementation.

As you may understood, since it is the camera that is moving and everything is fixed, this means that the "floor" object cannot be added/removed on top/bottom at run time.
Also the choice to move the camera and not the objects is because it is a simpler software solution and fast computational process to use fixed objects.

Jeff Young (jeyjey)
Changed in kicad:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/2083

Changed in kicad:
status: Triaged → Expired
Changed in kicad:
importance: Wishlist → Unknown
status: Expired → 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.