3D Viewer (Latest Nightly Build): Raytracing bottom of board, lights, shadows, reflections, etc. Do not flip with the camera.
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-
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,
Boost: 1.62.0
Curl: 7.55.1
Compiler: GCC 7.2.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
tags: |
added: 3d-viewer raytrace removed: 3d flipped ray tracing viewer |
Changed in kicad: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
Changed in kicad: | |
importance: | Wishlist → Unknown |
status: | Expired → Fix Released |
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.