Attention: this wiki is deactivated
The new wiki is up and running at http://www.freecadweb.org/wiki
Important: Do not edit this wiki anymore, it will be deleted soon. If you have edit rights here, please read this article to know how to regain your edit rights on the new wiki.
Raytracing Module
From free-cad
This module is aimed at sending the contents of your scene to an external renderer, for generating photorealistic images of your work. The Raytracing module is still in very early stage of completion, so you have not many options available at the moment. Currently, only a basic set of tools to export Part objects as POV-ray files is implemented. Those files can then be loaded into POV-ray and rendered.
Contents |
GUI Tools
These are tools for exporting your 3D work to external renderers
-
New PovRay project: Insert new PovRay project in the document
-
Export view to povray: Write the active 3D view with camera and all its content to a povray file
-
Export camera to povray: Export the camera position of the active 3D view in POV-Ray format to a file
-
Export part to povray: Write the selected Part (object) as a povray file
Export a View
The easiest way is to export the current 3D view and all of its content to a Povray file. First, you must load or create your CAD data and position the 3D View orientation as you wish. Then choose "Export View..." from the raytracing menu.
You get ask for a location to save the resulting *.pov file. After that you can open it in Povray and render:
As usual in a rendererer you can make big and nice pictures:
Scripting
Here is how to use these features from python:
import Raytracing,RaytracingGui
OutFile = open('C:/Documents and Settings/jriegel/Desktop/test.pov','w')
OutFile.write(open(App.getResourceDir()+'Mod/Raytracing/Templates/ProjectStd.pov').read())
OutFile.write(RaytracingGui.povViewCamera())
OutFile.write(Raytracing.getPartAsPovray('Box',App.activeDocument().Box.Shape,0.800000,0.800000,0.800000))
OutFile.close()
del OutFile
Links
About POV-Ray:
- http://www.spiritone.com/~english/cyclopedia/
- http://www.povray.org/
- http://en.wikipedia.org/wiki/POV-Ray
Currently there is a new Renderer Workbench in development to support multiple back-ends such as Lux Renderer and Yafaray. Information for using the development version can be viewed at Render_project
For Development status of the Render Module look here Raytracing_project
Open-source renderers (for future implementation):

