shadows in the freecad viewport
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: shadows in the freecad viewport
I can confirm, using realthunder's fork of Coin3D resolved the problem.
Re: shadows in the freecad viewport
realthunder wrote: ↑Fri Oct 02, 2020 9:28 am But the shader error is reported from within libCoin. It should work with my fork of coin.
@realthunder, any plan to add a PR for coin with you changes? Having another coin-variant makes thinks really messy...
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: shadows in the freecad viewport
Most likely not. My changes are not general enough and does not solve the fundamental problems I have with the library. I am planning to keep using the official Coin3D for scene graphs, but rewrite the OpenGL rendering part. This will give us much more freedom to improve rendering performance and implement other advanced graphics effects. I am already halfway through.
- OficineRobotica
- Posts: 433
- Joined: Thu Feb 21, 2019 8:17 am
- Contact:
Re: shadows in the freecad viewport
Ha ha .....I knew it. I found it strange you were so silent lately . This is big for freecad yet again. You made a grown man happy lol.
Check out my Youtube channel at: https://www.youtube.com/@OficineRobotica
Re: shadows in the freecad viewport
great to hear this! I planned to add a realthunder-variant to the weekly conda-builds, but with another coin variant I think things will get a bit messy.realthunder wrote: ↑Sat Oct 03, 2020 12:22 pm Most likely not. My changes are not general enough and does not solve the fundamental problems I have with the library. I am planning to keep using the official Coin3D for scene graphs, but rewrite the OpenGL rendering part. This will give us much more freedom to improve rendering performance and implement other advanced graphics effects. I am already halfway through.
-
- Posts: 22
- Joined: Thu Aug 10, 2023 7:44 am
Re: shadows in the freecad viewport
realthunder wrote: ↑Mon May 04, 2020 1:07 pm Here is my implementation, you can try it with my fork at here. The 'Shadow' style can be customized through document property. In other word, the configuration is customizable and saved to each document. By default the 'Shadow' draw style comes with a ground at the Z bottom of the scene bounding box. You can turn off the ground, move it, change color, etc. You can choose lighting type, color, direction, intensity, and many more.
This is great, however how can I translate the altitude / azimuth from the actual sun rays direction to these x, y, z values ?
Re: shadows in the freecad viewport
any plans to implement this in FreeCAD main soon?
This would also resolve the issue: viewtopic.php?p=714209#p714209
GH: https://github.com/FreeCAD/FreeCAD/issues/11113
This would also resolve the issue: viewtopic.php?p=714209#p714209
GH: https://github.com/FreeCAD/FreeCAD/issues/11113