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.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by triplus »

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
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by r-frank »

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 3365 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 :)
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by DeepSOIC »

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

Post by denisb »

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

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by duv »

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
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by r-frank »

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: 12
Joined: Wed Mar 15, 2017 11:34 am
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by duv »

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.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by DeepSOIC »

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

Post by denisb »

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
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Photo-realistic rendering of FreeCAD models with CADRays

Post by r-frank »

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 :)
Post Reply