New Raytracing Workbench: POV-Ray-Rendering

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
The_Raytracers
Posts: 46
Joined: Tue Jul 14, 2020 4:05 pm

Re: New Raytracing Workbench for POV-Ray

Post by The_Raytracers »

The_Raytracers wrote: Thu Oct 22, 2020 4:02 pm If you want to create a transparent background, you have to disable the export of the background/environment in the Environment tab and add the

Code: Select all

+UA
option in the workbench settings (after +A +P).
I forgot, it can be, that POV-Ray previews the transparent parts as black, but in the resulting image file everything will be right.
User avatar
bavariaSHAPE
Posts: 406
Joined: Tue Jun 10, 2014 8:31 am
Contact:

Re: New Raytracing Workbench for POV-Ray

Post by bavariaSHAPE »

The_Raytracers wrote: Thu Oct 22, 2020 4:02 pm

Probably, the preview is annyoing for you, you can disable it by checking the "Disable Live Preview" checkbox, then POV-Ray shouldn't open anymore if you change something. I attached a screenshot. You have to do this also in the Environment tab if you change things there.

Greetings
The_Raytracers
Hallo The_Raytracers,

That was the point: "Disable Live review". Now it works fine. The multiple windows no longer open when I change the textures.
This weekend I will test more.

Thanks
… for a happy FreeCAD-World … JM2C …
The_Raytracers
Posts: 46
Joined: Tue Jul 14, 2020 4:05 pm

Re: New Raytracing Workbench for POV-Ray

Post by The_Raytracers »

bavariaSHAPE wrote: Thu Oct 22, 2020 6:35 pm That was the point: "Disable Live review". Now it works fine.
Hm, now it is a bit unpractical to choose the right texture in Windows. What do you think about an improved list of textures like in the screenshot? That would give you at least a foreshadow of the texture.
Attachments
textureTab.png
textureTab.png (89.44 KiB) Viewed 5530 times
User avatar
bavariaSHAPE
Posts: 406
Joined: Tue Jun 10, 2014 8:31 am
Contact:

Re: New Raytracing Workbench for POV-Ray

Post by bavariaSHAPE »

The_Raytracers wrote: Sat Oct 24, 2020 5:00 pm
bavariaSHAPE wrote: Thu Oct 22, 2020 6:35 pm That was the point: "Disable Live review". Now it works fine.
Hm, now it is a bit unpractical to choose the right texture in Windows. What do you think about an improved list of textures like in the screenshot? That would give you at least a foreshadow of the texture.
That sounds really good. I hope it is not too much effort.
… for a happy FreeCAD-World … JM2C …
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: New Raytracing Workbench for POV-Ray

Post by dcapeletti »

Hello, I try to do the next rendering of the next project but the next error is thrown. See video https://exode.me/videos/watch/3bf9f1b7- ... 03d92b76a5

Code: Select all

10:08:48  PovRay.Activated()
10:08:49  Could not open ini file
10:08:51  Path to *.pov File: /home/dcapeletti/Escritorio/test/Test.pov
1 parent objects found in highest layer
containing totally 12 objects
Your model contains 10 objects which aren't supported (will be represented as mesh).
Perspective Camera

10:08:52  Traceback (most recent call last):
10:08:52    File "/home/dcapeletti/.FreeCAD/Mod/exporttopovray/Dialog.py", line 245, in onOk
10:08:52      self.exporter.initExport(self.renderSettings)
10:08:52    File "/home/dcapeletti/.FreeCAD/Mod/exporttopovray/Exporter.py", line 136, in initExport
10:08:52      self.startExport() #start the export
10:08:52    File "/home/dcapeletti/.FreeCAD/Mod/exporttopovray/Exporter.py", line 160, in startExport
10:08:52      objPovCode += self.createPovCode(obj, True, True, True, True, True, True)
10:08:52    File "/home/dcapeletti/.FreeCAD/Mod/exporttopovray/Exporter.py", line 578, in createPovCode
10:08:52      if not self.isBodySupported(fcObj):
10:08:52    File "/home/dcapeletti/.FreeCAD/Mod/exporttopovray/Exporter.py", line 941, in isBodySupported
10:08:52      if not self.isSketchSupported(sketch):
10:08:52    File "/home/dcapeletti/.FreeCAD/Mod/exporttopovray/Exporter.py", line 998, in isSketchSupported
10:08:52      supportedGeometryTypes = [Part.LineSegment, Part.Circle, Part.Point, Part.ArcOfCircle]
10:08:52  AttributeError: type object 'App.Part' has no attribute 'LineSegment'

OS: Debian GNU/Linux 9 (stretch) (GNOME/default)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22756 (Git) AppImage
Build type: Release
Branch: master
Hash: ce87f586ee36ffe8ebcdcd3947ced4ab389ae795
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Spanish/Argentina (es_AR)
Attachments
test.ini
(367 Bytes) Downloaded 96 times
Test.FCStd
(20.78 KiB) Downloaded 101 times
Test.ini
(351 Bytes) Downloaded 108 times
The_Raytracers
Posts: 46
Joined: Tue Jul 14, 2020 4:05 pm

Re: New Raytracing Workbench for POV-Ray

Post by The_Raytracers »

dcapeletti wrote: Sun Oct 25, 2020 1:13 pm ...
Should be fixed now :) Is on the repo, master branch.

Was an error with importing Part. I don't really know where the difference between

Code: Select all

from FreeCAD import Part
and

Code: Select all

import Part
is. If someone know, please tell me :)

Greetings
The_Raytracers
Posts: 46
Joined: Tue Jul 14, 2020 4:05 pm

Re: New Raytracing Workbench for POV-Ray

Post by The_Raytracers »

bavariaSHAPE wrote: Sat Oct 24, 2020 5:36 pm That sounds really good. I hope it is not too much effort.
Now it's done, even it was more complicated than I thought :)
It is not on master branch already, because I think, more testing is needed before it is merged to master. If anyone wants to test, you can download it, I would very appreciate any feedback :) In addition I added nearly 100 new textures! Huge thanks also to f-lohmueller.de for this great POV-Ray site, I used a lot of textures from there.

Download:
https://gitlab.com/usbhub/exporttopovra ... Thumbnails
Attachments
thumbnails.png
thumbnails.png (78.01 KiB) Viewed 5281 times
The_Raytracers
Posts: 46
Joined: Tue Jul 14, 2020 4:05 pm

Re: New Raytracing Workbench for POV-Ray

Post by The_Raytracers »

I made the top categories bold to improve the clarity. In addition I fixed a small bug. A screenshot of the new categories is attached.
What do you think?

Greetings
The_Raytracers
Attachments
boldCategories.png
boldCategories.png (47.39 KiB) Viewed 5192 times
User avatar
Petert
Posts: 124
Joined: Tue Dec 01, 2015 9:27 pm

Re: New Raytracing Workbench for POV-Ray

Post by Petert »

Looks very nice, easy to choose now.

Thank you for all your hard work, it is appreciated.
pov_1.png
pov_1.png (610.79 KiB) Viewed 5183 times
I am a refugee from Fusion 360. Switched over to FreeCAD and am spreading the word. After years of very little progress I switched again to another solution. I wish you all the best!
The_Raytracers
Posts: 46
Joined: Tue Jul 14, 2020 4:05 pm

Re: New Raytracing Workbench for POV-Ray

Post by The_Raytracers »

Petert wrote: Sat Nov 07, 2020 9:13 pm Looks very nice, easy to choose now.

Thank you for all your hard work, it is appreciated.
Thanks, the branch is now merged into master, so the thumbnails are delivered with the standard master version. I also updated the GIF in the opening post, so that everyone can see it there too.

We have now also access to the Wiki, so we hope to get in the Addon Manager soon, so that the installation and updates are easier to do.

Greetings
The_Raytracers
Post Reply