FreeCAD Renderer Workbench improvements

@howetuft nice to see it works for you now :slight_smile:

I never textured anything with a rounded surface. So it is pretty likely that there are problems with such type of Shapes.
How does the Cylinder look in the FreeCAD 3D View? Is it the same effect there?

I already know whats wrong with the cube in the Renderer. When the Cylinder is converted to a Mesh, the rounded Face is split into multiple triangles, where two of them form a rectangle. And the current algorithm uses the Norrmals of the triangles to group them together. So each part of the rounded face gets textured individually instead of texturing the whole face. I already reckognized that there is a problem with this sort of grouping (https://github.com/furti/FreeCAD-ArchTextures/pull/32). Maybe I can fix it for rounded faces too :slight_smile:

Maybe someone can merge the pending PRs while @yorik’s on vacation ?

PR #13 should not be merged until we know how the RenderMaterial should look like. But the other two pull requests look good to me :slight_smile:

I like your ideas a lot. Thats why i implemented the pipeline. Because I had the feeling that it gives great flexibility for stuff i can not think about at the moment.

Did you had the time to look at https://forum.freecadweb.org/viewtopic.php?f=10&t=39168&start=20#p334893
Implementing the material like that would give you the option to work with the material as it is, and allow the material pipeline to override stuff without changing the original material :slight_smile:

No, the cylinder looks good in the internal rendering:
screenshot.jpg
By the way, behind the scene : it is not really a cylinder, but a Pipe, from the Arch WB - and the cubes are Walls, actually.
It looks like something goes wrong when exporting to POV-Ray. I can share the fcstd if needed.


I fully agree, as I would be really glad to help (for instance extending to the other renderers, or testing), however, right now, with the various forks and branches, it is not so easy!

@furti, some more questions. In your mind:

  • Will it be mandatory to set a Material to an object in order to assign it a RenderMaterial?
  • Could there be several RenderMaterial for a given Material? (for instance, Material=Marble, but RenderMaterial could be BlackMarble, RedMarble…)?

This is what i expected. Because internally all the triangles of a face are grouped together. But for meshes i have to group them manzally. But the alforithm is not good enough right now.

Right now it is mandatory. But in the future it should be possible to assign textures to objects directly and maybe even to individual faces.
But with the newest 0.19 build you can add a ā€œMaterialā€ property to every object in freecad manually and then you can texture it.

You can create multiple TextureConfigs and assign different textures for the same Material. Then create multiple render projects and add one of the texture configs to each render project :slight_smile:

Any devs out there have privs to merge PRs for this repo ?

I’mtrying to use the current Render Workbench from the addons manager to create an appleseed render of an assembly made with Assembly 4.
It seems like it’s not possible to add external links to a view.
I can import them, then.
Also, it’s not possible to add ā€œpartsā€ to a view, I can only add bodies. But these bodies aren’t positioned then.
Is there anything I’m missing?

Sorry there is a merge conflict to this PR and still haven’t had time to fix/merge it…
Will do ASAP, but if someone wants to try before I’m able to do it, you might manage faster…

Sidenote: LuxCore Renderer Release 2.4beta1 today
link: https://github.com/LuxCoreRender/LuxCore/releases/tag/luxcorerender_v2.4beta1

Hello, can you explain me step by step how you have done the rendering with the textures?

I am using luxcore in freecad, but even if I apply the textures using ArchTexture, they are not rendered.

I need to render textures in my projects. I am using luxcore as render engine.
Thanks