Code Monkey home page Code Monkey logo

freecad-render's Introduction

FreeCAD Render Workbench

FreeCAD Addon manager status linting: pylint

A FreeCAD workbench to produce high-quality rendered images from your FreeCAD document, using open-source external rendering engines.

ShowCase

Introduction

The Render Workbench is a replacement for the built-in Raytracing Workbench of FreeCAD. It is based on the same philosophy, but aims to improve certain aspects of Raytracing:

  • The Render Workbench is written fully in Python, which should make it much easier to understand and extend by non-C++ programmers.
  • Exporters to rendering engines are implemented as plugins, which should facilitate the addition of new engines. The Render Workbench already supports several more renderers than Raytracing Workbench, like Appleseed, LuxCoreRender and Cycles.
  • The Render Workbench provides enhanced features, compared to Raytracing:
    • various scene lighting features (point lights, area lights, sunsky etc.) and preconfigured lightings as templates
    • camera enhanced control
    • material support
    • texture support
    • renderers' advanced features handling: denoising, batch mode etc.

Supported rendering engines

At the moment, the following rendering engines are supported:

Installation

Workbench

The Render Workbench is part of the FreeCAD Addons repository, and thus can be installed from menu Tools > Addon Manager in FreeCAD. This is the recommended installation method.
However, alternatively, it can also be installed manually by downloading this repository using the "clone or download" button above. Refer to FreeCAD documentation to learn more.

External rendering engines

In addition to workbench installation, you will also need to install and set up one or more external rendering engines, among the supported ones.

Usage

In quick-start mode, after installation has correctly been done, rendering a FreeCAD model is just a 4-steps process:

  1. Create a rendering project: Press the button in the toolbar corresponding to your renderer and select a template suitable for your renderer
    (you may start with a 'studio' flavour, like appleseed_studio_light.appleseed, cycles_studio_light.xml, luxcore_studio_light.cfg or povray_studio_light.pov)

  2. Add views of your objects to your rendering project: Select both the objects and the project, and press the 'Add view' button

  3. Set your point of view: Navigate in FreeCAD 3D View to the desired position and switch to Perspective mode.

  4. Render: Select your project and press the 'Render' button in toolbar (also available in project's context menu).


...and you should get a first rendering of your model.

You may also find a short tutorial on how to get started here: https://www.youtube.com/watch?v=8wsOnwjKG9M

More features

Optionally, you may tweak some particulars of your scene:

These adjustments should take place between steps 2 and 3.

Contributing

Any contributions are welcome! Please read our Contributing guidelines beforehand.

Feedback

For feedback, bugs, feature requests, and further discussion please use a dedicated FreeCAD forum thread, or open an issue in this Github repo.

Code of Conduct

This project is covered by FreeCAD Code of Conduct. Please comply to this code in all your contributions (issue openings, pull requests...).

freecad-render's People

Contributors

alexneufeld avatar andy-kliman avatar cbenhagen avatar cclauss avatar chennes avatar dmkriete avatar howetuft avatar jphigham avatar luzpaz avatar metalex201 avatar pre-commit-ci[bot] avatar prrvchr avatar rostskadat avatar sslupsky avatar yorikvanhavre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freecad-render's Issues

Crash Modifiying LCS

Using Assembly 4. Last updated 07-02-2020

File->New
Assembly->New Model
Close -> Save -> Reopen
Select model
Assemby->New Body
Double click in Body
Create Schetch
Select XY plane
Draw a Rectangle -> Close
Pad ->Acept
Select model
New Coordinate System -> Select random Edge -> Acept
Select LCS_1
Edit datum -> Select Another Edge -> Accept ->Crash

OS: Ubuntu 18.04.3 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19. Last daily On 7-02-2020
Build type: Release
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Spain (es_ES)

Cannot add view of Assembly4 Model

If I attempt to add a view with a model selected from the Assembly4 workbench, it does not add the view to the render project. In my case, I was attempting to add the view to a Povray project. If a select a body from within one of the models, I can add that to the view.

OS: macOS Mojave (10.14)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19323 (Git)
Build type: Release
Branch: master
Hash: 1b198453b8eb6aa2eaca4e4be4b49fee74e9de6e
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Canada (en_CA)

No rendering starts even with LuxCoreRender or Appleseed

Expected behavior

  • Start of rendering when clicking on perform the render button and project selected.

Actual behavior

  • No rendering starts even with LuxCoreRender or Appleseed

Steps to reproduce the problem

  • Create a simple cube in Part for instance
  • Give it a material in appearance (for instance stone)
  • Switch to Render studio
  • Create a LuxRender project
  • Select luxrender_standard.lxs
  • Create a cam from actual position
  • Select the cube and create a render view from it
  • Select the LuxRender project and click on render button
  • Find out that nothing is happening

Specifications like the version of the project, operating system, or hardware

  • FreeCAD version: 0.18.4
  • OS: Windows 10
  • Version: 10.0.17763 Build 17763
  • Processor: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz, 2712 Mhz, 4 Core(s), 8 Logical Processor(s)
  • RAM: 16 GB
  • LuxCoreRender version: Standalone release v2.3
    Also tried with:
  • Appleseed version: 2.1.0-beta

Report view

'PartDesign.Feature' object has no attribute 'Visibility'Running the Python command 'Render' failed:
Traceback (most recent call last):
  File "C:\Users\MBorgognon\AppData\Roaming\FreeCAD\Mod\Render\Render.py", line 1095, in Activated
    project.Proxy.render()
  File "C:\Users\MBorgognon\AppData\Roaming\FreeCAD\Mod\Render\Render.py", line 422, in render
    objstrings = [get_rdr_string(v) for v in views if v.Source.Visibility]
  File "C:\Users\MBorgognon\AppData\Roaming\FreeCAD\Mod\Render\Render.py", line 422, in <listcomp>
    objstrings = [get_rdr_string(v) for v in views if v.Source.Visibility]

'PrimitivePy' object has no attribute 'Visibility'

Where is the LuxcoreRender config file for the FreeCad Render Plugin?

Unfortunately issue #146 was closed, and I can't reopen it:

Well, I don't intend to substitute myself for the documentation of each renderer. But if you want to add some instructions to the doc, contributions are welcome. Some answers nevertheless:
LuxCore is by default an endless rendering engine.
If you want to stop it, you have to set up halt conditions, see here (e.g. via the command line).
To export rendering, the way I've found (I don't pretend it is the best) is: Tool --> Image View + Film --> Save outputs. Filename is set in Window --> Film Outputs editor

Thanks for that info. The link says:

The file ending of the render configuration file is ".cfg", for the scene file it's ".scn".
These files are usually created by exporter plugins, e.g. BlendLuxCore.

In this case Im guessing the export plugin is FreeCAD? Where does freecad create the configuration file so one can set a stop condition?

Error when switching to Render Workbench

After installing FreeCAD-render manually or with Addon Manager I got an error popup when switching to Render workbench:

Title: Error on switching workbench (Translated from german)
Message: Expected maxsize to be an integer or None

Furthermore there is no Render tab in the settings section.

FreeCAD v0.18
Win 10

Material works after a while start raising an error

I created this material with the Render workbench Create Material.
After awhile it started throwing these errors and fails to recompute:

20:03:10  Traceback (most recent call last):
  File "/home/michael/.local/share/FreeCAD/Mod/Render/./Render/material.py", line 111, in execute
    super().execute(obj)
  File "/tmp/.mount_FreeCA4se9RQ/usr/Mod/Arch/ArchMaterial.py", line 403, in execute
    p.ViewObject.ShapeColor = c
<class 'AttributeError'>: 'Gui.ViewProviderDocumentObject' object has no attribute 'ShapeColor'
20:03:10  Recompute failed! Please check report view.

FreeCAD info:

OS: Ubuntu 20.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C) [ OS: English/South Africa (en_ZA) ]
Installed mods: 
  * fasteners 0.3.50
  * Manipulator 1.4.9
  * Render 2022.2.0
  * sheetmetal 0.2.50

File stops rendering!

Finally found this space :) I'm MisterMaker on the forum.
So I been testing cycle render settings.
And so I did a lot of rendering.
And suddenly it stopped working, I got an error.
So I checked if I got the correct xml file by dragging it on the cycles.exe And that works so nothing wrong with my xml files.
But I think what goes wrong is the temp folder where these xml files are stored is running out of characters:
afbeelding
So I think the length of that temp dir should be a bit shorter, although I have no idea what I am doing so could be something completely different issue.

Like lots of testing has been done:
```
aa_samples="2"
ao_samples="100"
mesh_light_samples="2"
subsurface_samples="0"
volume_samples="0"
diffuse_samples="1"
glossy_samples="1"
transmission_samples="0"
min_bounce="0"
max_bounce="8"
max_diffuse_bounce="4"
max_glossy_bounce="4"
max_volume_bounce="0"
max_transmission_bounce="0"
sample_clamp_direct="1"
sample_clamp_indirect="10"
method="branched_path"
sample_all_lights_direct="true"
sample_all_lights_indirect="true"
caustics_reflective="true"
caustics_refractiv="true"
seed="98"
transparent_min_bounce="2"
transparent_max_bounce="7"
filter_glossy="1"
sampling_pattern="sobol"
/>

Particular Assembly4 model fails to render correctly

Hello,

(Please note: I have also asked this on the FreeCAD forum but didn't get any responses...)

I am posting here as I believe this is a bug in the render workbench but am happy to be told otherwise...

I have previously successfully rendered an assembly4 model using the render workbench with cycles:

Screenshot 2021-09-28 at 10 49 40

I now have a new assembly4 model and am unable to get it to render correctly:

Screenshot 2021-09-28 at 10 39 23

As you can see the bottom half of the model is not rendered at all, the base doesn't exist and the background is black.

I have double checked all of the render settings and model links etc. but I cannot see what is the difference between my two models which is causing this issue.

I have updated to the latest version of the Assembly4 and Render workbenches.

Does anyone have any suggestions or insight as to what could be going wrong?

Alternatively, any tips on how I could debug this myself?

I have made available the 2 assembly models here:

https://f001.backblazeb2.com/file/vectronic-public/freecad/render-working.zip (main model file: brick_assembly.FCStd)

https://f001.backblazeb2.com/file/vectronic-public/freecad/render-broken.zip (main model file: brick_assembly_2.FCStd)

Thanks very much,
Nick

Materials implementation

(continued from #38 )
@howetuft

I agree the material setup should be simple for rendering. We could take diffuse color from the already existing entry in the material card in freecad and turn it into a material for all renderers. If they define an IOR, we could also assume they mean a glass and use some default values for the renderer's glass material.

I also don't think we should deprive users from customizing their materials any further. This includes allowing them to specify renderer specific material properties.

Each renderer has specific material properties not really shared by other renderers. This has to do with how the renderer works internally and I haven't found a way to specify something more generally that would include all possible algorithms with their parameters. Let alone the existing "simple ones" currently used by the renderers we support.

I propose if the user wants to input specific parameters for their materials for a renderer, we should allow them. If it's not there, we'll fall back on standard values.

Part placement ignored when rendering bodies.

Hi,

I found that the render workbench does not take into account the placement of parts in which bodies are placed when doing the rendering. If the part itself is added to the render workbench instead of the bodies, it works ok for placement - BUT this then prevents the use of multiple materials. This is important in e.g. the case of a wheel - you would have a part representing the wheel consisting of a rubber tyre, a steel hub and an aluminium hub cap for example.

Please see attached file for an example.

Thanks!

Brutha

Render with part added to workbench (correct positioning):
Screenshot 2021-02-21 at 08 20 29

Render with individual bodies added:
Screenshot 2021-02-21 at 08 22 23

Render_part_bug.FCStd.zip

Error on Installation

Dear all!

I was facing following issue after installing the workbench over the Addon manager. I'm using the portable version. Any ideas how to fix it?

br Martin

grafik

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

Luxcorerender set amount of passes

Hi,
Thx for the great work! I recently got menaged to setup render workbench with Luxcorerender on Ubuntu.
It works so far, but I have some minor inconvenience. When start render it never stops. It does endless passes. When I close the window, the rendered image is displayed in Freecad.

Is there a possibility to set amount of passes for the renderer?

Cannot render view

It did work one time. Latest Render WB from add-on manager.

[Render] Cannot render view 'Sketch@baseGroup@cascoGroup@LuxcoreProject': Mesh topology is empty (file /home/x/.FreeCAD/Mod/Render/renderables.py, line 164 in check_renderables). Skipping...
20:34:49  [Render] Cannot render view 'Sketch006@bobbelGroup@cascoGroup@LuxcoreProject': Mesh topology is empty (file /home/x/.FreeCAD/Mod/Render/renderables.py, line 164 in check_renderables). Skipping...
20:34:49  [Render] Cannot render view 'Sketch009@bergingGroup@cascoGroup@LuxcoreProject': Mesh topology is empty (file /home/x/.FreeCAD/Mod/Render/renderables.py, line 164 in check_renderables). Skipping...
20:34:49  [Render] Cannot render view 'berging@cascoGroup@LuxcoreProject': Mesh topology is empty (file /home/x/.FreeCAD/Mod/Render/renderables.py, line 164 in check_renderables). Skipping...
20:34:49  Running the Python command 'Render' failed:
Traceback (most recent call last):
  File "/home/x/.FreeCAD/Mod/Render/Render.py", line 1031, in Activated
    project.Proxy.render()
  File "/home/x/.FreeCAD/Mod/Render/Render.py", line 576, in render
    img = renderer.render(obj, prefix, external, output, width, height)
  File "/home/x/.FreeCAD/Mod/Render/rendererhandler.py", line 108, in render
    return self.renderer_module.render(project,
  File "/home/x/.FreeCAD/Mod/Render/renderers/Luxcore.py", line 328, in render
    pageresult.read(project.PageResult)
  File "/tmp/.mount_FreeCA2rKUZa/usr/lib/python3.8/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/tmp/.mount_FreeCA2rKUZa/usr/lib/python3.8/configparser.py", line 1082, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)

File contains no section headers.
file: '/tmp/FreeCAD_Doc_e7c87a6a-4d97-4b1b-bdf1-b68145e651d5_764e4c_4889/LuxcoreProjectceylsqgm.lxs', line: 3
'Renderer "sampler"\n'

OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.0126.23662 +3142 (Git) AppImage
Build type: Release
Branch: LinkStage3
Hash: 9732f5f35d54bd1546daaffc9c9cff7e2f0e0249
Python version: 3.8.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)

cv-hok.zip

Patch for some Python3 issues etc.

Here are some changes attached as a gzipped patch (sorry, I can't set up a development environment with git etc, or I'd just make a pull request). This is against the 0.18-15619 Conga Python3+Qt5 build.

Notes:

  • Most of the changes are for Python3 compatibility, I believe. If you are planning on maintaining python2 compatibility in 0.18 then it all needs testing with python2.
  • Using the fd from tempfile.mkstemp simplifies things and may eliminate a tiny security hole.
  • Some general tidying up. Really what should be done for renderers/*.py is have the camdata parsing factored out of writeCamera() and moved up into Renderer.py, since it's the same code for all renderers.
  • One change to support Qt5, I think. I don't know if Qt < 5 needs that UnicodeUTF8 argument to QApplication.translate.

Hope this helps.

render-wb.patch.gz

Wrong normals for POV-Ray

When rendering a simple cube with POV-Ray for me the normals are clearly wrong.

This is a image with the normals created by the POV-Ray Renderer:
image

And this is the same cube but with the normal_vectors commented out
image

The one without normals is what i would expect. Is there a reason why normals are written?

Maybe it is because i used POV-Ray 3.7 for rendering.

FreeCAD Version used

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17803 (Git)
Build type: Release
Branch: master
Hash: 89961a33d46063a43e9fb5b0308ca95d559eca94
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)

Failure to Set camera location

I found out , that in some cases "Render" command fails to parse camera postition string.
Error would be : could not convert string to float: 'nearDistance'
I traced the error , to function _def writeCamera(self,obj,renderer):_ (in Render.py) , and added print(obj.Camera.split("\n"));
That printed following:

['#Inventor V2.1 ascii', '', '', 'PerspectiveCamera {', ' position 27.867077 40.412739 -14.756536', ' orientation -0.95309168 0.25545603 -0.16235299 2.0523489', ' nearDistance 0.16419823', ' farDistance 673.90247', ' focalDistance 46.530952', ' heightAngle 0.78539819', '', '}', '']

Afterwards by changing projection type to Ortographic, it worked ok , and output was :

['#Inventor V2.1 ascii', '', '', 'OrthographicCamera {', ' viewportMapping ADJUST_CAMERA', '
position 64.90593 24.760017 -31.036333', ' orientation -0.84704894 0.44858563 -0.28509498 2.1539059', ' nearDistance 61.745361', ' farDistance 78.708572', ' aspectRatio 1', ' focalDistance 69.416023', ' height 57.506119', '', '}', '']

Afterwards I changed back to perspective and it worked as well:

['#Inventor V2.1 ascii', '', '', 'PerspectiveCamera {', ' viewportMapping ADJUST_CAMERA', ' position 64.90593 24.760017 -31.036333', ' orientation -0.84704894 0.44858563 -0.28509498 2.1539059', ' nearDistance 61.745361', ' farDistance 78.708572', ' aspectRatio 1', ' focalDistance 69.416023', ' heightAngle 0.78539819', '', '}', '']

the difrerence seems to be in missing viewportMapping ADJUST_CAMERA in the first case.

after viewing source code I found out that it is relying on constant indexing , which could break in some cases.
So I pre-parsed the string using dictionaries, and accessing data by key name instead of index. It seems to work now.

So, my version now looks like :
`def writeCamera(self,obj,renderer):

    # camdata contains a string in OpenInventor format
    # ex:
    # #Inventor V2.1 ascii
    #
    #
    # PerspectiveCamera {
    #  viewportMapping ADJUST_CAMERA
    #  position 0 -1.3207401 0.82241058
    #  orientation 0.99999666 0 0  0.26732138
    #  nearDistance 1.6108983
    #  farDistance 6611.4492
    #  aspectRatio 1
    #  focalDistance 5
    #  heightAngle 0.78539819
    #
    # }
    #
    # or (ortho camera):
    #
    # #Inventor V2.1 ascii
    #
    #
    # OrthographicCamera {
    #  viewportMapping ADJUST_CAMERA
    #  position 0 0 1
    #  orientation 0 0 1  0
    #  nearDistance 0.99900001
    #  farDistance 1.001
    #  aspectRatio 1
    #  focalDistance 5
    #  height 4.1421356
    #
    # }

    if not obj.Camera:
        self.setCamera(obj)
        if not obj.Camera:
            FreeCAD.Console.PrintError(translate("Render","Unable to set the camera"))
            return ""
   
    camdata = obj.Camera.split("\n")
    camdata_dict={}
    # parse to dictionary , so that we are no longer relying on fixed indexing
    for entry in camdata:
            #test if element is empty                
            trimmed = entry.lstrip()
            if not trimmed:
                    continue
            values=trimmed.split(" ")
            camdata_dict[values[0]]=entry

    
    cam = ""
    pos = [float(p) for p in camdata_dict["position"].split()[-3:]]        
    pos = FreeCAD.Vector(pos)        
    rot = [float(p) for p in camdata_dict["orientation"].split()[-4:]]        
    rot = FreeCAD.Rotation(FreeCAD.Vector(rot[0],rot[1],rot[2]),math.degrees(rot[3]))        
    target = rot.multVec(FreeCAD.Vector(0,0,-1))
    target.multiply(float(camdata_dict["focalDistance"].split()[-1]))#focalDistance ?
    target = pos.add(target)
    up = rot.multVec(FreeCAD.Vector(0,1,0))

    return renderer.writeCamera(pos,rot,up,target)`

I am extremely new to python, so I don't know about how fast or slow my code is, but It should be more robust.

Also , I don't quite understand how to branch and make pull request to commit my changes

Procedural API

Hello,

Is it possible to setup a scene and render it using python scripting? (Automation)
I mean, no clicking on UI involved?

Thanks

Image clipping within FreeCAD UI

Hello,

I'd like to report a rendered image clipping issue in the FreeCAD UI. I have set the rendered image size to larger than the default value i.e. in the screenshot it is 1200x1600.

This occurs sometimes and I can't work out how to cause it, or better still prevent it....

Regardless of whether I select "1:1 scale" or "Fit image" I get the results attached:

  • for "1:1 scale" it seems the right scale, but the image is cropped and there is no scrolling possible
  • for "Fit image" the whole image is visible but it doesn't seem to fill the available window space

I have set an output file (attached) and you can see it does render to the correct required size.

I have also attached the FreeCAD file.

--

OS: macOS 10.16
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24054 (Git)
Build type: Release
Branch: master
Hash: ed873038025277f220dfaa058599a0dfbb435835
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)

1_1_scale

brick_4x2

fit_image

brick_4x2.FCStd.zip

import sys

In "Render.py", "sys" is not imported.
Gives out error in FreeCAD 0.17 (master branch, pulled and compiled at April 19, 2018).

This fixes it:
import os,re,tempfile,FreeCAD,importlib,sys

Render settings cycles

Been digging around in the Blender files and testing out settings, currently already got huge improvements.
What I am still missing is: Exposure settings as these seem too low.
And how to enable noise filtering as this would reduce render times hugely.

I have been digging true cycles source to find these settings:
https://developer.blender.org/diffusion/C/
Below settings come from this file:
https://developer.blender.org/diffusion/C/browse/master/src/render/integrator.cpp

I have the following settings:

<cycles>

    <!-- Camera -->
    <camera width="1920" height="1080" />

    <!--RaytracingCamera-->

    <!-- Integrator -->
    <integrator 
	aa_samples="2"
	ao_samples="100"
	mesh_light_samples="2"
	subsurface_samples="0"
	volume_samples="0"
	diffuse_samples="1"
	glossy_samples="1"
	transmission_samples="0"
	min_bounce="0"
 	max_bounce="8"
	max_diffuse_bounce="4"
	max_glossy_bounce="4"
	max_volume_bounce="0"
	max_transmission_bounce="0"
	sample_clamp_direct="1"
	sample_clamp_indirect="10"
	method="branched_path" 
	sample_all_lights_direct="true" 
	sample_all_lights_indirect="true"
	caustics_reflective="true"
	caustics_refractiv="true"
	seed="98"
	transparent_min_bounce="2"
	transparent_max_bounce="7"
	filter_glossy="1"
	sampling_pattern="sobol"
	/>
	    <!-- Background Shader -->
    <background>
        <background name="bg" strength="2.0" color="0.2, 0.2, 0.2" />
        <connect from="bg background" to="output surface" />
    </background>
	
    <!--RaytracingContent-->
	
</cycles>

Cannot use blender's renderer

Hi,

I've tried to use cycles on debian but I'm having quite a lot of troubles.

I pointed to /usr/bin/blender since that's the only executable I can call and afaiu it should work. However the default parameter --samples is unrecognized but also hard-coded ones like --output. According to https://docs.blender.org/manual/en/latest/advanced/command_line/render.html the invocation should be very different. I'm not familiar with blender/cycles so I don't know if there's maybe different executables with different command-line interfaces; in any case on debian (testing), there doesn't seem to be something dedicated for cycles.

Appleseed fails to load mesh files due to unescaped "\t" in windows temp path

On Windows appleseed fails to load the object files with following error message:

failed to load mesh file c: emp_i3busjne.obj: i/o error.
Thus interrupts the process with
failed to load project file ...
Inspecting the project file reveals that there is an tab inserted between "c:" and the rest of the path. Probably this is due to the unescaped character sequence "\t" in "c:\temp...".

OS: Windows 10 Enterprise Version 10.0.14393
FreeCAD: 0.19.19758

Please tell me, if additional information is required.

Lights, mats, textures

Hi, I saw some updates to lights and probably materials. Should be possible get a measure of "light" reflected by a known surface under a known area light or other to get the ratio of power each render requires? Using something like form factor emission or similar maybe.
I would try your last update of the code but substituting all the github code at the same module in Mod I get errors.
This using FreeCAD_0.20-1-2022-08-20-conda-Linux-x86_64-py310.AppImage.
Finally, if you need a tester for materials I could try.
Best regards

Error when render button pressed.

I get the following error message.
14:59:37 Unable to locate renderer executable. Please set the correct path in Edit -> Preferences -> Render

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.27428 (Git)
Build type: Release
Branch: master
Hash: 27460358508a2057e0ec57a418641435f12628dd
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)

Povray renderer does not output an image to the Output Image file specified

The "Output Image" setting appears to be ignored. The file is being saved to a system temp directory:

/var/folders/jj/x61lmscx3438lchdc_yw78b00000gn/T/FreeCAD_Doc_8831487d-8319-4c94-b198-5bd8e0e34eec_a14926_68563/PovrayProjectdqhmuly4.png

I could not find where the file is copied to the "Output Image" in render.py so added the following to the povray.py module:

diff --git a/renderers/Povray.py b/renderers/Povray.py
index 715dbfe..7e97df1 100644
--- a/renderers/Povray.py
+++ b/renderers/Povray.py
@@ -161,9 +161,15 @@ def render(project,prefix,external,output,width,height):
         args = re.sub("\+H[0-9]+","+H"+str(height),args)
     else:
         args = args + "+H"+str(height)+" "
+    if output:
+        args = args + "+O" + output + " "
+    FreeCAD.Console.PrintError("Renderer command: " + prefix+rpath+" "+args+project.PageResult+"\n")
     import os
     os.system(prefix+rpath+" "+args+project.PageResult)
-    imgname = os.path.splitext(project.PageResult)[0]+".png"
+    if output:
+        imgname = output
+    else:
+        imgname = os.path.splitext(project.PageResult)[0]+".png"
     
     return imgname

Never stops rendering with LuxCoreRender, README needs a few lines of guidance.

I followed the 4 step guide, using LuxCoreRender, however the rendering never stops. It just keeps going. I can't find information on where to set it to stop and return the render.

Maybe the README could be updated with some information. When one searches for answers to these problems one finds blender tutorials and outdated tutorials for FreeCAD Raytracing WB.

Invalid literal for int() with base 10: '19.4'

I get following error when trying to open workbench in FreeCAD:

19:34:17  invalid literal for int() with base 10: '19.4'
19:34:17  Traceback (most recent call last):
  File "<string>", line 104, in Initialize
  File "/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "/home/maciej/.FreeCAD/Mod/FreeCAD-render/Render/__init__.py", line 30, in <module>
    from Render.constants import (  # noqa: F401
  File "/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "/home/maciej/.FreeCAD/Mod/FreeCAD-render/Render/constants.py", line 55, in <module>
    FCDVERSION = int(App.Version()[0]), int(App.Version()[1])

FreeCAD version 0.19.4 build 1_voidlinux

Works just fine when I modified it like this, but I know this isn't solution to this problem:

FCDVERSION = int(19), int(4)

Problems with "glass" properties in Pbrt v4

Hello, I've some problem with the glass assigned to a part.
Is there a way to link a "local" setting to a "passthrough" set for pbrt?
Even if glass keeps a 100% of transp my result is opaque.
Regards

Pbrt v4 help to input

Hallo, I'd like to see a support to pbrt. Now with the v4 they have a gpu support that runs very fast. My try merging a triangulated mesh with a simple header from a pbrt example for lights and camera was amazing. I'm unable anyway to assign the proper materials to the proper subassemblies. I'd like to start to write at least an input file for pbrt from inside freecad. Grateful for any suggestion.
Best regards
simple-denoise-small

can't use "placement" or "transform" on lights

I'm trying to place area lights and point lights, and I can use the combo view to edit the position by hand, but I can't use the edit->placement dialogs? Is this intentional?

render workbench v: 2022.1.0

OS: Fedora 34 (Workstation Edition) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.27319 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 67706b1)
Hash: 67706b14df32b91b948952ea2c9350948ba4d4db
Python version: 3.9.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)

[answer] OSS render engine for SketchUp

As pointed in the title, this is most a question in case you that work in this cad-3d world know something to point me: is there an OSS render engine that works with Sketchup Pro?

Thanks in advance and congrats for the work you are doing in OSS and CAD.

Lionel

Cycles Adding smooth to curved objects

Something that would greatly improve render qualities in cycles is adding smooth to some objects.
IT would be interesting to do this manually of think of a way to do this automatically.
As far as I understand it can be done by adding this string to the mesh:
<state interpolation="smooth">
Got it from this topic:
https://lists.blender.org/pipermail/bf-cycles/2019-February/003413.html
did some testing with this:
No smooth diffuse:
afbeelding
With smooth diffuse:
afbeelding
Smooth glossy:
afbeelding
No smooth glossy:
afbeelding
If I see this in CAd renders, I think it should be on by default and maybe add an option to disable it.
current test code:
<shader name="Sphere"> <glossy_bsdf name="Sphere_bsdf" color="0.800000011920929, 0.800000011920929, 0.800000011920929"/> <connect from="Sphere_bsdf bsdf" to="output surface"/> </shader> <state interpolation="smooth" shader="Sphere"> <mesh P="1.2820419073104858 0.1762126088142395 -4.829628944396973 1.2940952777862549 -3.1696192585426613e-16 -4.829628944396973 3.0616169991140216e-16 -7.498798786105971e-32 -5.0 2.5 -6.123233998228043e-16 -4.330127239227295 1.1869587898254395 0.5155689716339111 -4.829628944396973 1.0038442611694336 0.8166878819465637 -4.829628944396973 0.746279239654541 1.0572367906570435 -4.829628944396973 2.4072933197021484 0.6744919419288635 -4.330127239227295 0.4333661198616028 1.2193753719329834 -4.829628944396973 2.1360485553741455 1.2989598512649536 -4.330127239227295 0.08831217885017395 1.2910784482955933 -4.829628944396973 1.7063828706741333 1.8270899057388306 -4.330127239227295 3.502603769302368 0.4814217984676361 -3.535533905029297 3.535533905029297 -8.659560338728758e-16 -3.535533905029297 4.330127239227295 -1.0605752472130298e-15 -2.5 -0.26329144835472107 1.2670280933380127 -4.829628944396973 1.1501625776290894 2.219712972640991 -4.330127239227295 3.2428317070007324 1.4085605144500732 -3.535533905029297 -0.595367968082428 1.14900803565979 -4.829628944396973 0.5086400508880615 2.4477102756500244 -4.330127239227295 2.742553472518921 2.2312328815460205 -3.535533905029297 -0.8832887411117554 0.945771336555481 -4.829628944396973 -0.17060603201389313 2.4941718578338623 -4.330127239227295 2.038872718811035 2.888424873352051 -3.535533905029297 -1.1057000160217285 0.6723911166191101 -4.829628944396973 4.169554233551025 1.1682542562484741 -2.5 -0.8371990323066711 2.355652332305908 -4.330127239227295 1.1839781999588013 3.331395387649536 -3.535533905029297 -1.2461066246032715 0.3491427004337311 -4.829628944396973 3.699744462966919 2.2498645782470703 -2.5 -1.44170081615448 2.0424246788024902 -4.330127239227295 0.24127337336540222 3.527291774749756 -3.535533905029297 -1.2940952777862549 1.3078684219880541e-15 -4.829628944396973 2.9555418491363525 3.1646125316619873 -2.5 -1.939278244972229 1.577719807624817 -4.330127239227295 4.7846455574035645 0.657634437084198 -1.2940952777862549 4.829628944396973 -1.1829179332573624e-15 -1.2940952777862549 5.0 -1.2246467996456087e-15 -1.0106431208405098e-14 -0.7193256616592407 3.46158504486084 -3.535533905029297 -1.2461066246032715 -0.3491427004337311 -4.829628944396973 1.9921400547027588 3.844655752182007 -2.5 -2.2930283546447754 0.996002733707428 -4.330127239227295 4.429790496826172 1.9241294860839844 -1.2940952777862549 -1.6265755891799927 3.139148235321045 -3.535533905029297 -1.1057000160217285 -0.6723911166191101 -4.829628944396973 0.8809903860092163 4.239558696746826 -2.5 -2.476714849472046 0.3404166102409363 -4.330127239227295 3.7463977336883545 3.0479207038879395 -1.2940952777862549 -2.4131898880004883 2.583895444869995 -3.535533905029297 -0.8832887411117554 -0.945771336555481 -4.829628944396973 -0.2954983115196228 4.320032596588135 -2.5 -2.476714849472046 -0.3404166102409363 -4.330127239227295 2.7851521968841553 3.9456615447998047 -1.2940952777862549 -3.0208287239074707 1.837006688117981 -3.535533905029297 4.814586639404297 1.348983883857727 -1.6653345369377348e-15 -0.595367968082428 -1.14900803565979 -4.829628944396973 -1.4500712156295776 4.080109596252441 -2.5 -2.2930283546447754 -0.996002733707428 -4.330127239227295 1.6173443794250488 4.5507707595825195 -1.2940952777862549 -3.4044268131256104 0.9538756608963013 -3.535533905029297 4.272097110748291 2.5979197025299072 -1.6653345369377348e-15 -0.26329144835472107 -1.2670280933380127 -4.829628944396973 -2.4970991611480713 3.537583351135254 -2.5 -1.939278244972229 -1.577719807624817 -4.330127239227295 0.32958555221557617 4.818370342254639 -1.2940952777862549 -3.535533905029297 3.573162748213114e-15 -3.535533905029297 3.4127657413482666 3.654179811477661 -1.6653345369377348e-15 0.08831217885017395 -1.2910784482955933 -4.829628944396973 -3.3589284420013428 2.7326910495758057 -2.5 4.7846455574035645 0.657634437084198 1.2940952777862549 4.829628944396973 -1.1829179332573624e-15 1.2940952777862549 4.330127239227295 -1.0605752472130298e-15 2.5 -1.44170081615448 -2.0424246788024902 -4.330127239227295 -0.9826170802116394 4.728612899780273 -1.2940952777862549 -3.4044268131256104 -0.9538756608963013 -3.535533905029297 2.3003251552581787 4.439425945281982 -1.6653345369377348e-15 0.4333661198616028 -1.2193753719329834 -4.829628944396973 -3.9716415405273438 1.7251273393630981 -2.5 4.429790496826172 1.9241294860839844 1.2940952777862549 -0.8371990323066711 -2.355652332305908 -4.330127239227295 -2.2219436168670654 4.288156509399414 -1.2940952777862549 -3.0208287239074707 -1.837006688117981 -3.535533905029297 1.017280101776123 4.895420551300049 -1.6653345369377348e-15 0.746279239654541 -1.0572367906570435 -4.829628944396973 -4.289795875549316 0.5896188616752625 -2.5 3.7463977336883545 3.0479207038879395 1.2940952777862549 -0.17060603201389313 -2.4941718578338623 -4.330127239227295 -3.296478509902954 3.5296666622161865 -1.2940952777862549 -2.4131898880004883 -2.583895444869995 -3.535533905029297 -0.34121206402778625 4.988343715667725 -1.6653345369377348e-15 1.0038442611694336 -0.8166878819465637 -4.829628944396973 -4.289795875549316 -0.5896188616752625 -2.5 2.7851521968841553 3.9456615447998047 1.2940952777862549 0.5086400508880615 -2.4477102756500244 -4.330127239227295 -4.126528739929199 2.5093977451324463 -1.2940952777862549 4.169554233551025 1.1682542562484741 2.5 -1.6265755891799927 -3.139148235321045 -3.535533905029297 -1.6743980646133423 4.711304664611816 -1.6653345369377348e-15 1.1869587898254395 -0.5155689716339111 -4.829628944396973 -3.9716415405273438 -1.7251273393630981 -2.5 1.6173443794250488 4.5507707595825195 1.2940952777862549 1.1501625776290894 -2.219712972640991 -4.330127239227295 -4.650533199310303 1.30301833152771 -1.2940952777862549 3.699744462966919 2.2498645782470703 2.5 -0.7193256616592407 -3.46158504486084 -3.535533905029297 -2.88340163230896 4.0848493576049805 -1.6653345369377348e-15 1.2820419073104858 -0.1762126088142395 -4.829628944396973 -3.3589284420013428 -2.7326910495758057 -2.5 0.32958555221557617 4.818370342254639 1.2940952777862549 1.7063828706741333 -1.8270899057388306 -4.330127239227295 -4.829628944396973 4.881031170201168e-15 -1.2940952777862549 2.9555418491363525 3.1646125316619873 2.5 0.24127337336540222 -3.527291774749756 -3.535533905029297 -3.878556489944458 3.155439615249634 -1.6653345369377348e-15 3.502603769302368 0.4814217984676361 3.535533905029297 3.535533905029297 -8.659560338728758e-16 3.535533905029297 2.5 -6.123233998228043e-16 4.330127239227295 -2.4970991611480713 -3.537583351135254 -2.5 -0.9826170802116394 4.728612899780273 1.2940952777862549 2.1360485553741455 -1.2989598512649536 -4.330127239227295 -4.650533199310303 -1.30301833152771 -1.2940952777862549 1.9921400547027588 3.844655752182007 2.5 1.1839781999588013 -3.331395387649536 -3.535533905029297 -4.586056709289551 1.992005467414856 -1.6653345369377348e-15 3.2428317070007324 1.4085605144500732 3.535533905029297 -1.4500712156295776 -4.080109596252441 -2.5 -2.2219436168670654 4.288156509399414 1.2940952777862549 2.4072933197021484 -0.6744919419288635 -4.330127239227295 -4.126528739929199 -2.5093977451324463 -1.2940952777862549 0.8809903860092163 4.239558696746826 2.5 2.038872718811035 -2.888424873352051 -3.535533905029297 -4.953429698944092 0.6808332204818726 -1.6653345369377348e-15 2.742553472518921 2.2312328815460205 3.535533905029297 -0.2954983115196228 -4.320032596588135 -2.5 -3.296478509902954 3.5296666622161865 1.2940952777862549 -3.296478509902954 -3.5296666622161865 -1.2940952777862549 -0.2954983115196228 4.320032596588135 2.5 2.742553472518921 -2.2312328815460205 -3.535533905029297 -4.953429698944092 -0.6808332204818726 -1.6653345369377348e-15 2.038872718811035 2.888424873352051 3.535533905029297 0.8809903860092163 -4.239558696746826 -2.5 -4.126528739929199 2.5093977451324463 1.2940952777862549 2.4072933197021484 0.6744919419288635 4.330127239227295 -2.2219436168670654 -4.288156509399414 -1.2940952777862549 -1.4500712156295776 4.080109596252441 2.5 3.2428317070007324 -1.4085605144500732 -3.535533905029297 -4.586056709289551 -1.992005467414856 -1.6653345369377348e-15 1.1839781999588013 3.331395387649536 3.535533905029297 1.9921400547027588 -3.844655752182007 -2.5 -4.650533199310303 1.30301833152771 1.2940952777862549 2.1360485553741455 1.2989598512649536 4.330127239227295 -0.9826170802116394 -4.728612899780273 -1.2940952777862549 -2.4970991611480713 3.537583351135254 2.5 3.502603769302368 -0.4814217984676361 -3.535533905029297 -3.878556489944458 -3.155439615249634 -1.6653345369377348e-15 0.24127337336540222 3.527291774749756 3.535533905029297 2.9555418491363525 -3.1646125316619873 -2.5 -4.829628944396973 4.881031170201168e-15 1.2940952777862549 1.7063828706741333 1.8270899057388306 4.330127239227295 0.32958555221557617 -4.818370342254639 -1.2940952777862549 -3.3589284420013428 2.7326910495758057 2.5 1.2820419073104858 0.1762126088142395 4.829628944396973 1.2940952777862549 -3.1696192585426613e-16 4.829628944396973 3.0616169991140216e-16 -7.498798786105971e-32 5.0 -2.88340163230896 -4.0848493576049805 -1.6653345369377348e-15 -0.7193256616592407 3.46158504486084 3.535533905029297 3.699744462966919 -2.2498645782470703 -2.5 -4.650533199310303 -1.30301833152771 1.2940952777862549 1.1501625776290894 2.219712972640991 4.330127239227295 1.6173443794250488 -4.5507707595825195 -1.2940952777862549 -3.9716415405273438 1.7251273393630981 2.5 1.1869587898254395 0.5155689716339111 4.829628944396973 -1.6743980646133423 -4.711304664611816 -1.6653345369377348e-15 -1.6265755891799927 3.139148235321045 3.535533905029297 4.169554233551025 -1.1682542562484741 -2.5 -4.126528739929199 -2.5093977451324463 1.2940952777862549 0.5086400508880615 2.4477102756500244 4.330127239227295 2.7851521968841553 -3.9456615447998047 -1.2940952777862549 -4.289795875549316 0.5896188616752625 2.5 1.0038442611694336 0.8166878819465637 4.829628944396973 -0.34121206402778625 -4.988343715667725 -1.6653345369377348e-15 -2.4131898880004883 2.583895444869995 3.535533905029297 -3.296478509902954 -3.5296666622161865 1.2940952777862549 -0.17060603201389313 2.4941718578338623 4.330127239227295 3.7463977336883545 -3.0479207038879395 -1.2940952777862549 -4.289795875549316 -0.5896188616752625 2.5 0.746279239654541 1.0572367906570435 4.829628944396973 1.017280101776123 -4.895420551300049 -1.6653345369377348e-15 -3.0208287239074707 1.837006688117981 3.535533905029297 -2.2219436168670654 -4.288156509399414 1.2940952777862549 -0.8371990323066711 2.355652332305908 4.330127239227295 4.429790496826172 -1.9241294860839844 -1.2940952777862549 -3.9716415405273438 -1.7251273393630981 2.5 0.4333661198616028 1.2193753719329834 4.829628944396973 2.3003251552581787 -4.439425945281982 -1.6653345369377348e-15 -3.4044268131256104 0.9538756608963013 3.535533905029297 -0.9826170802116394 -4.728612899780273 1.2940952777862549 -1.44170081615448 2.0424246788024902 4.330127239227295 4.7846455574035645 -0.657634437084198 -1.2940952777862549 -3.3589284420013428 -2.7326910495758057 2.5 0.08831217885017395 1.2910784482955933 4.829628944396973 3.4127657413482666 -3.654179811477661 -1.6653345369377348e-15 -3.535533905029297 3.573162748213114e-15 3.535533905029297 0.32958555221557617 -4.818370342254639 1.2940952777862549 -1.939278244972229 1.577719807624817 4.330127239227295 -2.4970991611480713 -3.537583351135254 2.5 -0.26329144835472107 1.2670280933380127 4.829628944396973 4.272097110748291 -2.5979197025299072 -1.6653345369377348e-15 -3.4044268131256104 -0.9538756608963013 3.535533905029297 1.6173443794250488 -4.5507707595825195 1.2940952777862549 -2.2930283546447754 0.996002733707428 4.330127239227295 -1.4500712156295776 -4.080109596252441 2.5 -0.595367968082428 1.14900803565979 4.829628944396973 4.814586639404297 -1.348983883857727 -1.6653345369377348e-15 -3.0208287239074707 -1.837006688117981 3.535533905029297 2.7851521968841553 -3.9456615447998047 1.2940952777862549 -2.476714849472046 0.3404166102409363 4.330127239227295 -0.2954983115196228 -4.320032596588135 2.5 -0.8832887411117554 0.945771336555481 4.829628944396973 -2.4131898880004883 -2.583895444869995 3.535533905029297 3.7463977336883545 -3.0479207038879395 1.2940952777862549 -2.476714849472046 -0.3404166102409363 4.330127239227295 0.8809903860092163 -4.239558696746826 2.5 -1.1057000160217285 0.6723911166191101 4.829628944396973 -1.6265755891799927 -3.139148235321045 3.535533905029297 4.429790496826172 -1.9241294860839844 1.2940952777862549 -2.2930283546447754 -0.996002733707428 4.330127239227295 1.9921400547027588 -3.844655752182007 2.5 -1.2461066246032715 0.3491427004337311 4.829628944396973 -0.7193256616592407 -3.46158504486084 3.535533905029297 4.7846455574035645 -0.657634437084198 1.2940952777862549 -1.939278244972229 -1.577719807624817 4.330127239227295 2.9555418491363525 -3.1646125316619873 2.5 -1.2940952777862549 1.3078684219880541e-15 4.829628944396973 0.24127337336540222 -3.527291774749756 3.535533905029297 -1.44170081615448 -2.0424246788024902 4.330127239227295 3.699744462966919 -2.2498645782470703 2.5 -1.2461066246032715 -0.3491427004337311 4.829628944396973 1.1839781999588013 -3.331395387649536 3.535533905029297 -0.8371990323066711 -2.355652332305908 4.330127239227295 4.169554233551025 -1.1682542562484741 2.5 -1.1057000160217285 -0.6723911166191101 4.829628944396973 2.038872718811035 -2.888424873352051 3.535533905029297 -0.17060603201389313 -2.4941718578338623 4.330127239227295 -0.8832887411117554 -0.945771336555481 4.829628944396973 2.742553472518921 -2.2312328815460205 3.535533905029297 0.5086400508880615 -2.4477102756500244 4.330127239227295 -0.595367968082428 -1.14900803565979 4.829628944396973 3.2428317070007324 -1.4085605144500732 3.535533905029297 1.1501625776290894 -2.219712972640991 4.330127239227295 -0.26329144835472107 -1.2670280933380127 4.829628944396973 3.502603769302368 -0.4814217984676361 3.535533905029297 1.7063828706741333 -1.8270899057388306 4.330127239227295 0.08831217885017395 -1.2910784482955933 4.829628944396973 2.1360485553741455 -1.2989598512649536 4.330127239227295 0.4333661198616028 -1.2193753719329834 4.829628944396973 2.4072933197021484 -0.6744919419288635 4.330127239227295 0.746279239654541 -1.0572367906570435 4.829628944396973 1.0038442611694336 -0.8166878819465637 4.829628944396973 1.1869587898254395 -0.5155689716339111 4.829628944396973 1.2820419073104858 -0.1762126088142395 4.829628944396973" nverts="3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3" verts="0 1 2 0 3 1 4 0 2 5 4 2 6 5 2 7 3 0 7 0 4 8 6 2 9 4 5 9 7 4 10 8 2 11 9 5 11 5 6 12 13 3 12 14 13 12 3 7 15 10 2 16 11 6 16 6 8 17 7 9 17 12 7 18 15 2 19 8 10 19 16 8 20 9 11 20 17 9 21 18 2 22 19 10 22 10 15 23 11 16 23 20 11 24 21 2 25 14 12 25 12 17 26 22 15 26 15 18 27 23 16 27 16 19 28 24 2 29 25 17 29 17 20 30 26 18 30 18 21 31 27 19 31 19 22 32 28 2 33 20 23 33 29 20 34 30 21 34 21 24 35 36 14 35 37 36 35 14 25 38 31 22 38 22 26 39 32 2 40 23 27 40 33 23 41 24 28 41 34 24 42 25 29 42 35 25 43 26 30 43 38 26 44 39 2 45 40 27 45 27 31 46 28 32 46 41 28 47 42 29 47 29 33 48 30 34 48 43 30 49 44 2 50 31 38 50 45 31 51 32 39 51 46 32 52 33 40 52 47 33 53 48 34 53 34 41 54 35 42 54 37 35 55 49 2 56 38 43 56 50 38 57 51 39 57 39 44 58 40 45 58 52 40 59 41 46 59 53 41 60 42 47 60 54 42 61 55 2 62 56 43 62 43 48 63 44 49 63 57 44 64 45 50 64 58 45 65 46 51 65 59 46 66 60 47 66 47 52 67 61 2 68 62 48 68 48 53 69 70 37 69 71 70 69 37 54 72 63 49 72 49 55 73 64 50 73 50 56 74 65 51 74 51 57 75 52 58 75 66 52 76 67 2 77 53 59 77 68 53 78 54 60 78 69 54 79 72 55 79 55 61 80 73 56 80 56 62 81 74 57 81 57 63 82 58 64 82 75 58 83 76 2 84 59 65 84 77 59 85 78 60 85 60 66 86 79 61 86 61 67 87 80 62 87 62 68 88 63 72 88 81 63 89 64 73 89 82 64 90 83 2 91 84 65 91 65 74 92 66 75 92 85 66 93 67 76 93 86 67 94 68 77 94 87 68 95 71 69 95 69 78 96 88 72 96 72 79 97 73 80 97 89 73 98 90 2 99 74 81 99 91 74 100 75 82 100 92 75 101 76 83 101 93 76 102 94 77 102 77 84 103 95 78 103 78 85 104 96 79 104 79 86 105 80 87 105 97 80 106 2 1 106 1 3 106 98 2 107 81 88 107 99 81 108 82 89 108 100 82 109 101 83 109 83 90 110 102 84 110 84 91 111 103 85 111 85 92 112 104 86 112 86 93 113 87 94 113 105 87 114 115 71 114 116 115 114 71 95 117 107 88 117 88 96 118 108 89 118 89 97 119 90 98 119 109 90 120 110 91 120 91 99 121 92 100 121 111 92 122 112 93 122 93 101 123 94 102 123 113 94 124 95 103 124 114 95 125 96 104 125 117 96 126 97 105 126 118 97 127 106 3 127 98 106 127 119 98 128 120 99 128 99 107 129 100 108 129 121 100 130 101 109 130 122 101 131 123 102 131 102 110 132 103 111 132 124 103 133 125 104 133 104 112 134 105 113 134 126 105 135 128 107 135 107 117 136 129 108 136 108 118 137 109 119 137 130 109 138 131 110 138 110 120 139 111 121 139 132 111 140 133 112 140 112 122 141 134 113 141 113 123 142 116 114 142 114 124 143 135 117 143 117 125 144 136 118 144 118 126 145 137 119 145 119 127 146 138 120 146 120 128 147 139 121 147 121 129 148 122 130 148 140 122 149 141 123 149 123 131 150 124 132 150 142 124 151 143 125 151 125 133 152 126 134 152 144 126 153 3 13 153 13 14 153 145 127 153 127 3 154 128 135 154 146 128 155 147 129 155 129 136 156 130 137 156 148 130 157 131 138 157 149 131 158 150 132 158 132 139 159 133 140 159 151 133 160 152 134 160 134 141 161 162 116 161 163 162 161 116 142 164 135 143 164 154 135 165 155 136 165 136 144 166 156 137 166 137 145 167 157 138 167 138 146 168 139 147 168 158 139 169 140 148 169 159 140 170 141 149 170 160 141 171 163 161 171 142 150 171 161 142 172 164 143 172 143 151 173 144 152 173 165 144 174 166 145 174 153 14 174 145 153 175 167 146 175 146 154 176 168 147 176 147 155 177 169 148 177 148 156 178 170 149 178 149 157 179 171 150 179 150 158 179 163 171 180 172 151 180 151 159 181 173 152 181 152 160 182 175 154 182 154 164 183 176 155 183 155 165 184 177 156 184 156 166 185 157 167 185 178 157 186 163 179 186 158 168 186 179 158 187 180 159 187 159 169 188 181 160 188 160 170 189 182 164 189 164 172 190 183 165 190 165 173 191 166 174 191 184 166 192 167 175 192 185 167 193 168 176 193 186 168 193 163 186 194 169 177 194 187 169 195 170 178 195 188 170 196 172 180 196 189 172 197 190 173 197 173 181 198 14 36 198 36 37 198 174 14 198 191 174 199 192 175 199 175 182 200 176 183 200 163 193 200 193 176 201 194 177 201 177 184 202 178 185 202 195 178 203 180 187 203 196 180 204 181 188 204 197 181 205 182 189 205 199 182 206 200 183 206 183 190 206 163 200 207 201 184 207 184 191 208 202 185 208 185 192 209 203 187 209 187 194 210 204 188 210 188 195 211 205 189 211 189 196 212 163 206 212 206 190 212 190 197 213 191 198 213 207 191 213 198 37 214 192 199 214 208 192 215 209 194 215 194 201 216 195 202 216 210 195 217 196 203 217 211 196 218 197 204 218 212 197 218 163 212 219 199 205 219 214 199 220 201 207 220 215 201 221 216 202 221 202 208 222 203 209 222 217 203 223 163 218 223 204 210 223 218 204 224 219 205 224 205 211 225 207 213 225 220 207 226 208 214 226 221 208 227 209 215 227 222 209 228 210 216 228 163 223 228 223 210 229 211 217 229 224 211 230 37 70 230 70 71 230 213 37 230 225 213 231 214 219 231 226 214 232 215 220 232 227 215 233 216 221 233 163 228 233 228 216 234 229 217 234 217 222 235 219 224 235 231 219 236 220 225 236 232 220 237 233 221 237 221 226 237 163 233 238 234 222 238 222 227 239 235 224 239 224 229 240 236 225 240 230 71 240 225 230 241 163 237 241 237 226 241 226 231 242 227 232 242 238 227 243 239 229 243 229 234 244 163 241 244 241 231 244 231 235 245 232 236 245 242 232 246 234 238 246 243 234 247 163 244 247 244 235 247 235 239 248 245 236 248 236 240 249 246 238 249 238 242 250 239 243 250 163 247 250 247 239 251 71 115 251 240 71 251 115 116 251 248 240 252 242 245 252 249 242 253 163 250 253 243 246 253 250 243 254 252 245 254 245 248 255 246 249 255 163 253 255 253 246 256 251 116 256 248 251 256 254 248 257 163 255 257 249 252 257 255 249 258 252 254 258 257 252 258 163 257 259 254 256 259 163 258 259 258 254 260 116 162 260 162 163 260 256 116 260 163 259 260 259 256"/> </state>

LuxCoreRender, Wayland: Failed to connect to display (GLFW Error 65544)

I'm just trying to use LuxCoreRender to render something, but I only get an empty tab/window and this error:

20:40:19  Starting rendering...
/usr/bin/luxcoreui  -o "/tmp/Project9f6hx03i.cfg" -f "/tmp/Projectrvrxciri.scn"

20:40:20  LuxCoreUI v2.6 (LuxCore demo: http://www.luxcorerender.org)
20:40:20  [LuxCore][0.000] Configuration: 
20:40:20  [LuxCore][0.000]   renderengine.seed = "1"
20:40:20  [LuxCore][0.000]   film.width = "800"
20:40:20  [LuxCore][0.000]   film.height = "600"
20:40:20  [LuxCore][0.000]   film.imagepipelines.0.0.type = "TONEMAP_AUTOLINEAR"
20:40:20  [LuxCore][0.000]   film.imagepipelines.1.0.type = "TONEMAP_REINHARD02"
20:40:20  [LuxCore][0.000]   film.imagepipelines.2.0.type = "NOP"
20:40:20  [LuxCore][0.000]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
20:40:20  [LuxCore][0.000]   film.outputs.0.filename = "/home/cf/.cache/FreeCAD/Cache/FreeCAD_Doc_1cad85c9-2fb2-4d12-9d89-1ff44a631a6d_d9ecc9_23101/Project8tu0ljsu.png"
20:40:20  [LuxCore][0.000]   film.outputs.0.index = "0"
20:40:20  [LuxCore][0.000]   periodicsave.film.outputs.period = "1"
20:40:20  [LuxCore][0.000]   scene.file = "/tmp/Projectrvrxciri.scn"
20:40:20  [LuxCore][0.000] File Name Resolver Configuration: 
20:40:20  [LuxCore][0.000]   .
20:40:20  [LuxCore][0.000]   /tmp
20:40:20  [SDL][0.000] Reading scene: /tmp/Projectrvrxciri.scn
20:40:20  [SDL][0.007] Define ImageMap: NamedObject
20:40:20  [SDL][0.007] Material definition: Body
20:40:20  [SDL][0.007] Camera type: perspective
20:40:20  [SDL][0.007] Camera position: Point[0.0794434, -0.0174682, 0.0859472]
20:40:20  [SDL][0.007] Camera target: Point[0.0788963, -0.0171177, 0.085187]
20:40:20  [SDL][0.007] Camera clipping plane disabled
20:40:20  [SDL][0.017] Scene objects count: 1
20:40:20  [SDL][0.017] Light definition: __BACKGROUND__
20:40:20  GLFW Error: 65544
20:40:20  Description: Wayland: Failed to connect to display
20:40:20  Exiting rendering - Return code: 1

I'm using the "...standard..." named configuration file and keep all default settings.

FreeCad version:

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.27507 (Git)
Build type: Release
Branch: master
Hash: d29bd2f8048f5975a732af3981dc1826e2fb0834
Python version: 3.10.2
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)

This is the Arch/AUR package I installed to get LuxCoreRender: https://aur.archlinux.org/packages/luxcorerender

I don't really get why the issue is related to Wayland, since it's only supposed to render data not connect to any displays.
And yes, I have a display connected. :)

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.