Photo-realistic rendering of FreeCAD models with CADRays

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
triplus
Posts: 4836
Joined: Mon Dec 12, 2011 4:45 pm

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby triplus » Fri Mar 17, 2017 10:32 pm

I didn't yet test CADRays but it looks promising. What i am guessing would be nice is for the end user to get good results by default. No renderer i used in the past did that. All of them involve some process where user produces bad results by default and has to invest massive amount of effort in it to finally produce something that looks OK.
User avatar
r-frank
Posts: 1961
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby r-frank » Sun Mar 19, 2017 5:19 pm

Hello.

Played around a little bit with the renderer.
Very easy to use, i really liked what i did see.
MSV1-CadRays.jpg
MSV1-CadRays.jpg (65.19 KiB) Viewed 255 times

My thoughts about improvements/wishes:

1.) Import
Best way to transfer data from FreeCAD to CADRays is Step (make sure you are exporting Step AP 214 supporting assemblies) or BREP.
Upon importing, the material of all bodies is linked and you first have to explode the group und unlink the materials.
Either import as exploded or add a radio button for choice as exloded or not on import-dialog.
Material is not linked by default. If I want that i would have ex/im- ported one single object ...

2.) Wanted: documentation on creating new materials and creating new maps (for background)

3.) Wanted: Button for pause rendering (already stated by DeepSOIC)

4.) Wanted: Some sort of "status light" - red: CADRays is working/computing, green: CADRays running idle

5.) Wanted: Right click in 3D-Windows with menu for
* select all visible objects
* unselect all visible objects

6.) Wanted: Right click in tree-view (?) [upper left corner] with possibility to invert selection of objects

7.) Wanted: CAD-Like navigation (Icons or right-click) for choosing Top/Below/Back/Front/Left/Right/Axometric view

8.) Wanted: camera control, definition of viewpoint and looking direction

9.) Think about: adding a tick-box for displaying a watermark/logo in the picture - we just did that with FreeCAD

10.) Think about: In the long run, having three/four small examples (have a look at the Utah teapot and the cornell box) shipped with the software
would be great.

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
DeepSOIC
Posts: 4439
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby DeepSOIC » Sun Mar 19, 2017 5:31 pm

r-frank wrote:10.) Think about: In the long run, having three/four small examples (have a look at the Utah teapot and the cornell box) shipped with the softwarewould be great.
Looks like they have some, in CADRays-1.0.0\data\scripts
denisb
Posts: 5
Joined: Wed Mar 15, 2017 1:08 pm

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby denisb » Mon Mar 20, 2017 9:06 am

Just another example of CADRays rendering.
Attachments
imgpsh_fullsize.jpg
CADRays_render
imgpsh_fullsize.jpg (261.17 KiB) Viewed 218 times
duv
Posts: 7
Joined: Wed Mar 15, 2017 11:34 am
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby duv » Mon Mar 20, 2017 9:46 am

Thank you for feedback! It is really important for us in order to prioritise new features.

r-frank wrote:7.) Wanted: CAD-Like navigation (Icons or right-click) for choosing Top/Below/Back/Front/Left/Right/Axometric view

For now you can use TCL commands: vtop, vbottom, vleft, vright, vfront, vback. Also vfit command will fit view to the scene.
User avatar
r-frank
Posts: 1961
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby r-frank » Mon Mar 20, 2017 10:28 am

DeepSOIC wrote:Looks like they have some, in CADRays-1.0.0\data\scripts


Thanks for pointing :)

duv wrote:For now you can use TCL commands:


Thanks for the hint.
When doing some documentation please include (if possible) a short overview of tcl-commands.
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
duv
Posts: 7
Joined: Wed Mar 15, 2017 11:34 am
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby duv » Mon Mar 20, 2017 1:21 pm

r-frank wrote: 8.) Wanted: camera control, definition of viewpoint and looking direction


Also please take a look at vcamera and vviewparams commands.
The commands are mostly the same as for OCCT DRAW application: https://www.opencascade.com/doc/occt-7. ... rness.html although not all of them are applicable in CADRays environment.
DeepSOIC
Posts: 4439
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby DeepSOIC » Mon Mar 20, 2017 4:46 pm

denisb wrote:Just another example of CADRays rendering.
The ring looks so real, incredible.
Any plans on high dynamic range support?
denisb
Posts: 5
Joined: Wed Mar 15, 2017 1:08 pm

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby denisb » Tue Mar 21, 2017 8:55 am

DeepSOIC wrote:
denisb wrote:Just another example of CADRays rendering.
The ring looks so real, incredible.
Any plans on high dynamic range support?


Yes, we plan to add support of exporting rendering results into HDR images (HDR/EXR) in the next version, so it will be possible to perform custom tone mapping in external software. E.g. open source Luminance HDR (http://qtpfsgui.sourceforge.net/) is great choice.
User avatar
r-frank
Posts: 1961
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Postby r-frank » Tue Mar 21, 2017 10:59 am

Hi.

Another thing that came to my mind (haven't tested yet).

Is there a possibilty to append files in CADRays ?
If i am correct, at the Moment the only option is to do all changes (removing/adding of objects) to the assembly in the CAD-System
and then do another export ?

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)