Raytracing tutorial: Difference between revisions
No edit summary |
m (png to svg) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<translate> |
<translate> |
||
Line 11: | Line 12: | ||
}} |
}} |
||
== Introduction == <!--T:2--> |
|||
This tutorial is meant to introduce the reader to the basic workflow of the Raytracing Workbench, as well as most of the tools that are available to create a rendered image. |
This tutorial is meant to introduce the reader to the basic workflow of the Raytracing Workbench, as well as most of the tools that are available to create a rendered image. |
||
Line 17: | Line 18: | ||
[[Image:Raytracing_tutorial_result.png|480px]] |
[[Image:Raytracing_tutorial_result.png|480px]] |
||
<translate> |
<translate> |
||
== Requirements == <!--T:4--> |
|||
* FreeCAD version 0.16 or above |
* FreeCAD version 0.16 or above |
||
* [http://www.povray.org/ POV-Ray] and/or [http://www.luxrender.net/ LuxRender] is installed on the system |
* [http://www.povray.org/ POV-Ray] and/or [http://www.luxrender.net/ LuxRender] is installed on the system |
||
Line 24: | Line 25: | ||
* The reader has the basic knowledge to use the Part and PartDesign Workbenches |
* The reader has the basic knowledge to use the Part and PartDesign Workbenches |
||
== Procedure == <!--T:5--> |
|||
=== Modeling === <!--T:6--> |
|||
In this example a Cube is used as the study object, but models created in the Part or PartDesign Workbenches can be used instead. |
In this example a Cube is used as the study object, but models created in the Part or PartDesign Workbenches can be used instead. |
||
Line 37: | Line 38: | ||
Now we have a model with which to work. |
Now we have a model with which to work. |
||
=== Preparing for the render === <!--T:9--> |
|||
# Switch to the Raytracing Workbench |
# Switch to the Raytracing Workbench |
||
# Change your View to '''Perspective'''. Go to '''View''' menu and select '''Perspective'''. |
# Change your View to '''Perspective'''. Go to '''View''' menu and select '''Perspective'''. |
||
Line 43: | Line 44: | ||
# Set the size of the rendered image. Go to the '''Edit''' menu and select '''Preferences'''. Click on '''Raytracing''' and set the desired image size. |
# Set the size of the rendered image. Go to the '''Edit''' menu and select '''Preferences'''. Click on '''Raytracing''' and set the desired image size. |
||
==== POV-Ray ==== <!--T:10--> |
|||
# Select [[Image: |
# Select [[Image:Raytrace_New.svg|32px]] [[Raytracing_New|New PovRay project]]. From the dropdown menu pick '''RadiosityNormal''' |
||
==== LuxRender ==== <!--T:11--> |
|||
# Select [[Image: |
# Select [[Image:Raytrace_Lux.svg|32px]] [[Raytracing_Lux|New LuxRender project]]. From the dropdown menu pick '''LuxClassic''' |
||
=== Setting the camera position === <!--T:12--> |
|||
# Position the '''3D View''' to the desired location and distance from the model. In this case we will use the '''Axonometric View'''. |
# Position the '''3D View''' to the desired location and distance from the model. In this case we will use the '''Axonometric View'''. |
||
# Select the '''Project Folder''' from the '''Tree View''' |
# Select the '''Project Folder''' from the '''Tree View''' |
||
# Select [[Image: |
# Select [[Image:Raytrace_ResetCamera.svg|32px]] [[Raytracing_ResetCamera|Reset camera]] |
||
=== Importing the model === <!--T:13--> |
|||
# Select the model to render. |
# Select the model to render. |
||
# Select [[Image: |
# Select [[Image:Raytrace_NewPartSegment.svg|32px]] [[Raytracing_InsertPart|Insert part]] |
||
=== Running the Renderer === <!--T:14--> |
|||
# Select [[Image: |
# Select [[Image:Raytrace_Render.svg|32px]] [[Raytracing_Render|Render]]. |
||
# Set the path to which the image will be stored. |
# Set the path to which the image will be stored. |
||
# Wait for the rendering to finish. This may take a while. |
# Wait for the rendering to finish. This may take a while. |
||
=== Viewing the results === <!--T:15--> |
|||
FreeCAD will immediately open the image after the render is finished. |
FreeCAD will immediately open the image after the render is finished. |
||
<!--T:16--> |
<!--T:16--> |
||
We are now finished with the basic workflow for the [[Raytracing Module|Raytracing Module]]. |
We are now finished with the basic workflow for the [[Raytracing Module|Raytracing Module]]. |
||
</translate> |
</translate> |
||
{{Tutorials navi{{#translation:}}}} |
|||
{{clear}} |
|||
{{Raytracing Tools navi{{#translation:}}}} |
|||
⚫ | |||
{{Userdocnavi{{#translation:}}}} |
Revision as of 21:53, 26 February 2020
Tutorial |
Topic |
---|
Raytracing |
Level |
Beginner |
Time to complete |
10 minutes + Render time |
Authors |
Drei |
FreeCAD version |
0.16 or above |
Example files |
See also |
None |
Introduction
This tutorial is meant to introduce the reader to the basic workflow of the Raytracing Workbench, as well as most of the tools that are available to create a rendered image.
Requirements
- FreeCAD version 0.16 or above
- POV-Ray and/or LuxRender is installed on the system
- In the case of POV-Ray, it's not enough to have just the binary executable in place, but it also requires the installation of supporting files, and in Ubuntu these are provided by the Recommends-flagged package povray-includes. Potential issues have also been seen with Linux installations requiring local configuration files to be manually created in a user's home folder, as discussed here.
- In the case of POV-Ray, installation of psicofil's macro is recommended
- The reader has the basic knowledge to use the Part and PartDesign Workbenches
Procedure
Modeling
In this example a Cube is used as the study object, but models created in the Part or PartDesign Workbenches can be used instead.
- Create a new document
- Activate the Part Workbench
- Create a Cube. You are free to change its properties in any way.
Now we have a model with which to work.
Preparing for the render
- Switch to the Raytracing Workbench
- Change your View to Perspective. Go to View menu and select Perspective.
- Set the location for the renderer. Go to the Edit menu and select Preferences. Click on Raytracing and set the location to the executable.
- Set the size of the rendered image. Go to the Edit menu and select Preferences. Click on Raytracing and set the desired image size.
POV-Ray
- Select New PovRay project. From the dropdown menu pick RadiosityNormal
LuxRender
- Select New LuxRender project. From the dropdown menu pick LuxClassic
Setting the camera position
- Position the 3D View to the desired location and distance from the model. In this case we will use the Axonometric View.
- Select the Project Folder from the Tree View
- Select Reset camera
Importing the model
- Select the model to render.
- Select Insert part
Running the Renderer
- Select Render.
- Set the path to which the image will be stored.
- Wait for the rendering to finish. This may take a while.
Viewing the results
FreeCAD will immediately open the image after the render is finished.
We are now finished with the basic workflow for the Raytracing Module. Template:Tutorials navi
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub