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
What about the ladybug solar analysis integration that yorik implemented recently (that deprecated pysolar)
Need to find the link
Need to find the link
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: shadows in the freecad viewport
User microelly2 created a script that can possibly do this for you, basically it calculates the shadows and creates real geometry for it, from which you can then get the area... Here is a link to the discussion https://forum.freecadweb.org/viewtopic. ... ow#p146408 and the link to his website with the script and an example model http://freecadbuch.de/doku.php?id=blog: ... bbildungen
The script can probably get improved but I guess the basic concept should be ok, here is something similar done in creo https://www.youtube.com/watch?v=oppjLDoToa4
Re: shadows in the freecad viewport
Thanks Kunda1 and saso!
This is quite similar to what I'm looking for. I'll have a look at these scripts. Thanks for all the help again!saso wrote: ↑Thu Sep 24, 2020 12:40 pmUser microelly2 created a script that can possibly do this for you, basically it calculates the shadows and creates real geometry for it, from which you can then get the area... Here is a link to the discussion https://forum.freecadweb.org/viewtopic. ... ow#p146408 and the link to his website with the script and an example model http://freecadbuch.de/doku.php?id=blog: ... bbildungen
The script can probably get improved but I guess the basic concept should be ok, here is something similar done in creo https://www.youtube.com/watch?v=oppjLDoToa4
Re: shadows in the freecad viewport
Was very excited (I know, its 'just' eye candy, but still) to try out the shadow shading.
I'm using the realthunder fork: https://github.com/realthunder/FreeCAD/tree/LinkMerge/
I don't have any shadows when I enable them from the pulldown icon.
Am I missing some kind of parameter to set in order for them to work properly?
I'm using an AMD R7950 video card if that makes a difference.
I'm using the realthunder fork: https://github.com/realthunder/FreeCAD/tree/LinkMerge/
I don't have any shadows when I enable them from the pulldown icon.
Am I missing some kind of parameter to set in order for them to work properly?
I'm using an AMD R7950 video card if that makes a difference.
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: shadows in the freecad viewport
Are you using Windows? Maybe you can try some fix proposed here.
Re: shadows in the freecad viewport
Thanks, but I've already tried that without any luck. Maybe I need to make the jump to nvidia if I want the fancy graphics.
Re: shadows in the freecad viewport
Also using an AMD graphic card.
- Did a test, using glintercept NO_ERROR edition :
https://github.com/YvesBoyadjian/glinte ... ag/1.3.5.5
- With last version of realthunder FreeCAD compiled today, I have an error message in the console :
23:42:00 Coin info in SoGLSLShaderObject::printInfoLog(): GLSLfragmentShader log: 'Fragment shader failed to compile with the following errors:
ERROR: 0:67: error(#143) Undeclared identifier: DirectionalLight
ERROR: 0:67: error(#202) No matching overloaded function found: DirectionalLight
ERROR: error(#273) 2 compilation errors. No code generated
- And, effectively, if I also copy "gliConfig.ini" in the exe directory, I have logs and shaders dump, that shows that the "DirectionalLight" method is missing in the fragment shader.
@realthunder :
- In SoShadowGroupP::setFragmentShader(), there must be a missing call to
"gen.addNamedFunction(SbName("lights/DirectionalLight"), FALSE);"
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: shadows in the freecad viewport
It's work on my laptop. Are you using the upstream Coin3D or my fork?
Re: shadows in the freecad viewport
I have used the link provided by obelisk79 :realthunder wrote: ↑Fri Oct 02, 2020 12:24 amIt's work on my laptop. Are you using the upstream Coin3D or my fork?
https://github.com/realthunder/FreeCAD/tree/LinkMerge/
Downloaded the sources, and done a full compilation, in debug mode
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: shadows in the freecad viewport
But the shader error is reported from within libCoin. It should work with my fork of coin.koin3D wrote: ↑Fri Oct 02, 2020 7:27 am I have used the link provided by obelisk79 :
https://github.com/realthunder/FreeCAD/tree/LinkMerge/
Downloaded the sources, and done a full compilation, in debug mode