Assembly/sub-assembly color data propagation to rendering

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
drmacro
Veteran
Posts: 8979
Joined: Sun Mar 02, 2014 4:35 pm

Assembly/sub-assembly color data propagation to rendering

Post by drmacro »

I am using A2+ and have created sub-assemblies which are then added to a top level assembly.

In the FCStd file of the parts of the sub-assembly, I have set colors for the part.

When I include the part in the sub-assembly the colors are displayed in the assembly.

When I then include the sub-assembly in the top assembly, the colors are displayed.

But, when the top level assembly is sent to any of the rendering work benches, all colors from the sub assemblies is lost.
(It is apparently taken from the Shape Color parameter of the entry in the feature tree in the top level assembly.)

Is there a way to get this information for the render?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Assembly/sub-assembly color data propagation to rendering

Post by kbwbe »

drmacro wrote: Sat Jan 16, 2021 3:48 pm
A2plus is storing the colors for each face, not for each object. Especially when importing subassemblies. A subassembly is one big compound, the color of each face correspond to the originally imported parts. Probably the rendering engine is not able to recognize the colors of each face. But i am not a rendering specialist. This is just a suggestion.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
Post Reply