Raytracing Workbench/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/es
{{Docnav/es
Line 9: Line 10:
</div>
</div>


{{VeryImportantMessage|The '''Raytracing Workbench''' is no longer included after version 0.20.<br>
{{VeryImportantMessage|L' Ambiente de trabajo Trazado de rayos es esencialmente obsoleta. Un nuevo desarrollo está ocurriendo en el [https://github.com/FreeCAD/FreeCAD-render Render Ambiente de trabajo], que se pretende que sea su sustituto. Este Ambiente de trabajo está completamente programado en Python, así que es mucho más fácil de ampliar.
The external [https://github.com/FreeCAD/FreeCAD-render Render Workbench] should be used instead.}}

Nevertheless, the information in this page is generally useful for the new workbench, as both modules work basically in the same way.
}}


[[Image:Workbench_PartDesign.svg|thumb|128px|El icono del Ambiente de trabajo Trazado de rayos]]
[[Image:Workbench_PartDesign.svg|thumb|128px|El icono del Ambiente de trabajo Trazado de rayos]]


<span id="Introduction"></span>
== Introducción ==
== Introducción ==


{{TOCright}}
{{TOCright}}


<div class="mw-translate-fuzzy">
El [[Image:Workbench_Raytracing.svg|24px]] [[Raytracing Workbench/es|Ambiente de trabajo Trazado de rayos]] es usado para generar imágenes fotorealistas de tus modelos al renderizarlos con un renderizador externo.
El [[Image:Workbench_Raytracing.svg|24px]] [[Raytracing Workbench/es|Ambiente de trabajo Trazado de rayos]] es usado para generar imágenes fotorealistas de tus modelos al renderizarlos con un renderizador externo.
</div>


<div class="mw-translate-fuzzy">
El Ambiente de trabajo trazado de rayos opera con [[Raytracing templates/es|plantillas]], que son archivos de escena para un renderizador dado, incluyendo iluminación y posiblemente geometría adicional como son planos de suelo. Estos archivos de escena contienen apartados, en los que FreeCAD insertará la posición de la cámara, y la geometría e información de materiales de cada objeto que insertes en el proyecto. La escena modificada es exportada después al renderizador externo.
El Ambiente de trabajo trazado de rayos opera con [[Raytracing templates/es|plantillas]], que son archivos de escena para un renderizador dado, incluyendo iluminación y posiblemente geometría adicional como son planos de suelo. Estos archivos de escena contienen apartados, en los que FreeCAD insertará la posición de la cámara, y la geometría e información de materiales de cada objeto que insertes en el proyecto. La escena modificada es exportada después al renderizador externo.
</div>


<div class="mw-translate-fuzzy">
De momento, dos renderizadores son soportados [http://en.wikipedia.org/wiki/POV-Ray povray] y [http://en.wikipedia.org/wiki/LuxRender luxrender]. Para poder renderizar directamente en FeeCAD, al menos uno de esos renderizadores debe estar instalado en tu sistema, y su ubicación debe ser configurada en las preferencias de trazado de rayos de FreeCAD. Si ningún renderizador está instalado, todavía puedes exportar un archivo de escena que puede ser utilizado por alguno de los renderizadores después, o en otra máquina.
De momento, dos renderizadores son soportados [http://en.wikipedia.org/wiki/POV-Ray povray] y [http://en.wikipedia.org/wiki/LuxRender luxrender]. Para poder renderizar directamente en FeeCAD, al menos uno de esos renderizadores debe estar instalado en tu sistema, y su ubicación debe ser configurada en las preferencias de trazado de rayos de FreeCAD. Si ningún renderizador está instalado, todavía puedes exportar un archivo de escena que puede ser utilizado por alguno de los renderizadores después, o en otra máquina.
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
The Raytracing workbench is essentially obsolete. New development is happening in the [https://github.com/FreeCAD/FreeCAD-render Render Workbench], which is intended as its replacement. This workbench is fully programmed in Python so it is much easier to extend than the current workbench which is programmed in C++. Nevertheless, the information in this page is generally useful for the new workbench, as both modules work basically in the same way.
Actualmente existe un nuevo entorno de renderizado en desarrollo para soportar múltiples back-ends de renderizado como Lux y Yafaray. Puedes ver información para utilizar la versión en desarrollo en el [[Render_project/es|Proyecto de Render]]
</div>
</div>


Line 40: Line 34:
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Flujo de trabajo típico ==
== Flujo de trabajo típico ==
# Crea o abre un proyecto FreeCAD, agrega algunos objetos [[Part Module|basados en sólidos]] (por el momento no se soportan mallas)
# Crea o abre un proyecto FreeCAD, agrega algunos objetos [[Part_Workbench|basados en sólidos]] (por el momento no se soportan mallas)
#Crea un proyecto de trazado de rayos (luxrender o povray)
#Crea un proyecto de trazado de rayos (luxrender o povray)
#Selecciona los objetos que desees agregar al proyecto de trazado de rayos y agrçegalos con la herramienta "Insertar Parte"
#Selecciona los objetos que desees agregar al proyecto de trazado de rayos y agrçegalos con la herramienta "Insertar Parte"
Line 52: Line 46:
{{Caption|Workflow of the Raytracing Workbench; the workbench prepares a project file from a given template, and then calls an external program to produce the actual rendering of the scene. The external renderer can be used independently of FreeCAD.}}
{{Caption|Workflow of the Raytracing Workbench; the workbench prepares a project file from a given template, and then calls an external program to produce the actual rendering of the scene. The external renderer can be used independently of FreeCAD.}}


<span id="Tools"></span>
=== Herramientas GUI ===
=== Herramientas GUI ===


Line 57: Line 52:


These are the main tools for exporting your 3D work to external renderers.
These are the main tools for exporting your 3D work to external renderers.
* [[Image:Raytrace_New.svg|32px]] [[Raytracing_New|New PovRay project]]: Insert new PovRay project in the document
* [[Image:Raytracing_New.svg|32px]] [[Raytracing_New|New PovRay project]]: Insert new PovRay project in the document
* [[Image:Raytrace_Lux.svg|32px]] [[Raytracing_Lux|New LuxRender project]]: Insert new LuxRender project in the document
* [[Image:Raytracing_Lux.svg|32px]] [[Raytracing_Lux|New LuxRender project]]: Insert new LuxRender project in the document
* [[Image:Raytrace_NewPartSegment.svg|32px]] [[Raytracing_InsertPart|Insert part]]: Insert a view of a Part in a raytracing project
* [[Image:Raytracing_InsertPart.svg|32px]] [[Raytracing_InsertPart|Insert part]]: Insert a view of a Part in a raytracing project
* [[Image:Raytrace_ResetCamera.svg|32px]] [[Raytracing_ResetCamera|Reset camera]]: Matches the camera position of a raytracing project to the current view
* [[Image:Raytracing_ResetCamera.svg|32px]] [[Raytracing_ResetCamera|Reset camera]]: Matches the camera position of a raytracing project to the current view
* [[Image:Raytrace_ExportProject.svg|32px]] [[Raytracing_ExportProject|Export project]]: Exports a raytracing project to a scene file for rendering in an external renderer
* [[Image:Raytracing_ExportProject.svg|32px]] [[Raytracing_ExportProject|Export project]]: Exports a raytracing project to a scene file for rendering in an external renderer
* [[Image:Raytrace_Render.svg|32px]] [[Raytracing_Render|Render]]: Renders a raytracing project with an external renderer
* [[Image:Raytracing_Render.svg|32px]] [[Raytracing_Render|Render]]: Renders a raytracing project with an external renderer


===Utilities===
===Utilities===
Line 79: Line 74:
* [[Tutorial FreeCAD POV ray|Intermediate Raytracing tutorial]]
* [[Tutorial FreeCAD POV ray|Intermediate Raytracing tutorial]]


<div class="mw-translate-fuzzy">
== Creando el archivo povray manualmente ==
== Creando el archivo povray manualmente ==
Las herramientas descritas anteriormente te permiten exportar la vista 3D actual y todos sus contenidos a un archivo [http://www.povray.org/ Povray]. Primero, debes de cargar o crear tu información de CAD y posicionar la orientación de vista 3D como desees. Después selecciona "Utilidades->Exportar Vista..." del menu de trazado de rayos.
Las herramientas descritas anteriormente te permiten exportar la vista 3D actual y todos sus contenidos a un archivo [http://www.povray.org/ Povray]. Primero, debes de cargar o crear tu información de CAD y posicionar la orientación de vista 3D como desees. Después selecciona "Utilidades->Exportar Vista..." del menu de trazado de rayos.
</div>


[[Image:FreeCAD_Raytracing.jpg|center]]
[[Image:FreeCAD_Raytracing.jpg|center]]
Line 89: Line 82:
[[Image:Povray.jpg|center]]
[[Image:Povray.jpg|center]]


<div class="mw-translate-fuzzy">
Como siempre, en un renderizador puedes hacer imágenes grandes y bonitas:
Como siempre, en un renderizador puedes hacer imágenes grandes y bonitas:
</div>
[[Image:Scharniergreifer_render.jpg|center|800px]]
[[Image:Scharniergreifer_render.jpg|center|800px]]


<span id="Scripting"></span>
=== Archivos de guión ===
=== Archivos de guión ===


See the [[Raytracing API example|Raytracing API example]] for information on writing scenes programmatically.
See the [[Raytracing API example|Raytracing API example]] for information on writing scenes programmatically.


<span id="Links"></span>
=== Enlaces ===
=== Enlaces ===


Line 106: Line 99:
* http://es.wikipedia.org/wiki/POV-Ray
* http://es.wikipedia.org/wiki/POV-Ray


=== Luxrender ===
=== LuxRender ===
* [[LuxRender|LuxRender page on this wiki]]
* http://www.luxrender.net/
* http://www.luxrender.net/


Line 138: Line 132:
* [https://forum.freecadweb.org/viewtopic.php?t=39168 FreeCAD Renderer Workbench improvements]
* [https://forum.freecadweb.org/viewtopic.php?t=39168 FreeCAD Renderer Workbench improvements]


'''Outdated'''

These pages refer to a replacement workbench, programmed in C++, proposed around 2012, which was never completed.
* [[Raytracing_project|Raytracing project]]
* [[Render_project|Render project]]


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{docnav/es|Robot_Workbench/es|Draft Module/es}}
{{docnav/es|Robot_Workbench/es|Draft_Workbench/es}}
</div>
</div>


{{Raytracing Tools navi{{#translation:}}}}
{{Raytracing Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
[[Category:Workbenches{{#translation:}}]]
[[Category:Obsolete Workbenches{{#translation:}}]]

Latest revision as of 16:17, 3 May 2023

The Raytracing Workbench is no longer included after version 0.20.
The external Render Workbench should be used instead.
El icono del Ambiente de trabajo Trazado de rayos

Introducción

El Ambiente de trabajo Trazado de rayos es usado para generar imágenes fotorealistas de tus modelos al renderizarlos con un renderizador externo.

El Ambiente de trabajo trazado de rayos opera con plantillas, que son archivos de escena para un renderizador dado, incluyendo iluminación y posiblemente geometría adicional como son planos de suelo. Estos archivos de escena contienen apartados, en los que FreeCAD insertará la posición de la cámara, y la geometría e información de materiales de cada objeto que insertes en el proyecto. La escena modificada es exportada después al renderizador externo.

De momento, dos renderizadores son soportados povray y luxrender. Para poder renderizar directamente en FeeCAD, al menos uno de esos renderizadores debe estar instalado en tu sistema, y su ubicación debe ser configurada en las preferencias de trazado de rayos de FreeCAD. Si ningún renderizador está instalado, todavía puedes exportar un archivo de escena que puede ser utilizado por alguno de los renderizadores después, o en otra máquina.

The Raytracing workbench is essentially obsolete. New development is happening in the Render Workbench, which is intended as its replacement. This workbench is fully programmed in Python so it is much easier to extend than the current workbench which is programmed in C++. Nevertheless, the information in this page is generally useful for the new workbench, as both modules work basically in the same way.

Flujo de trabajo típico

  1. Crea o abre un proyecto FreeCAD, agrega algunos objetos basados en sólidos (por el momento no se soportan mallas)
  2. Crea un proyecto de trazado de rayos (luxrender o povray)
  3. Selecciona los objetos que desees agregar al proyecto de trazado de rayos y agrçegalos con la herramienta "Insertar Parte"
  4. Exporta el proyecto o renderízalo directamente



Workflow of the Raytracing Workbench; the workbench prepares a project file from a given template, and then calls an external program to produce the actual rendering of the scene. The external renderer can be used independently of FreeCAD.

Herramientas GUI

Project tools

These are the main tools for exporting your 3D work to external renderers.

  • New PovRay project: Insert new PovRay project in the document
  • New LuxRender project: Insert new LuxRender project in the document
  • Insert part: Insert a view of a Part in a raytracing project
  • Reset camera: Matches the camera position of a raytracing project to the current view
  • Export project: Exports a raytracing project to a scene file for rendering in an external renderer
  • Render: Renders a raytracing project with an external renderer

Utilities

These are helper tools to perform specific tasks manually.

Preferences

  • Preferences: Preferences available in for the Raytracing tools.

Tutorials

Creando el archivo povray manualmente

Las herramientas descritas anteriormente te permiten exportar la vista 3D actual y todos sus contenidos a un archivo Povray. Primero, debes de cargar o crear tu información de CAD y posicionar la orientación de vista 3D como desees. Después selecciona "Utilidades->Exportar Vista..." del menu de trazado de rayos.

Se te solicitará la ubicación para guardar el archivo *.pov resultante. Después de ello puedes abrirlo en Povray y renderizar:

Como siempre, en un renderizador puedes hacer imágenes grandes y bonitas:

Archivos de guión

See the Raytracing API example for information on writing scenes programmatically.

Enlaces

Sobre POV-Ray:

LuxRender

Future possible renderers to implement

Exporting to Kerkythea

Although direct export to the Kerkythea XML-File-Format is not supported yet, you can export your Objects as Mesh-Files (.obj) and then import them in Kerkythea.

  • if using Kerkythea for Linux, remember to install the WINE-Package (needed by Kerkythea for Linux to run)
  • you can convert your models with the help of the mesh workbench to meshes and then export these meshes as .obj-files
  • If your mesh-export resulted in errors (flip of normals, holes ...) you may try your luck with netfabb studio basic
Free for personal use, available for Windows, Linux and Mac OSX.
It has standard repair tools which will repair you model in most cases.
  • another good program for mesh analysing/repairing is Meshlab
Open Source, available for Windows, Linux and Mac OSX.
It has standard repair tools which will repair you model in most cases (fill holes, re-orient normals, etc.)
  • you can use "make compound" and then "make single copy" or you can fuse solids to group them before converting to meshes
  • remember to set in Kerkythea an import-factor of 0.001 for obj-modeler, since Kerkythea expects the obj-file to be in m (but standard units-scheme in FreeCAD is mm)
Within WIndows 7 64-bit Kerkythea does not seem to be able to save these settings.
So remember to do that each time you start Kerkythea
  • if importing multiple objects in Kerkythea you can use the "File → Merge" command in Kerkythea

Development

These pages refer to the new workbench, programmed in Python, meant to replace the current Raytracing Workbench.


Robot_Workbench/es
Draft_Workbench/es