Manual:Creating renderings/ro: Difference between revisions

From FreeCAD Documentation
(Created page with "'''De citit în plus'''")
(Updating to match new version of source page)
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav|[[Manual:Creating FEM analyses|Creating FEM analyses]]|[[Manual:A gentle introduction|A gentle introduction]]|[[Manual:Introduction|Manual start]]|IconC=Crystal Clear manual.png}}
{{Manual:TOC}}


{{Manual:TOC/ro}}
In limbajul computerului, cuvântul [https://en.wikipedia.org/wiki/Rendering_%28computer_graphics%29 rendering] este utilizat pentru a descrie o imagine frumoasă produsă de către un model 3D. Of course, we could say that what we see in the FreeCAD 3D view is already nice. However, anybody who has seen a recent Hollywood movie, knows that it is possible to produce images with a computer that are almost indistinguishable from a photograph.


In limbajul computerului, cuvântul [https://en.wikipedia.org/wiki/Rendering_%28computer_graphics%29 rendering] este utilizat pentru a descrie o imagine frumoasă produsă de către un model 3D. Desigur, am putea spune ceea ce vedem într-o vizualizarea 3D FreeCAD este deja ceva plăcut. Cu toate acestea, oricine a văzut un film recent de la Hollywood, știe este posibil se producă imagini cu un computer aproape nu pot fi deosebite de o fotografie.
Of course, producing photo-realistic images requires a lot of work, in addition to a 3D application that offers specific tools for that purpose, such as precise controls for materials and lighting. Because FreeCAD is an application geared more towards technical modelling, it does not feature any advanced rendering tools.


Desigur, producerea de imagini foto realiste necesită o mulțime de lucruri, în plus față de o aplicație 3D care oferă instrumente specifice în acest scop, precum controale precise pentru materiale și iluminat. Deoarece FreeCAD este o aplicație orientată mai mult spre modelarea tehnică, nu conține niciun fel de instrumente avansate de randare.
+Fortunately, the open source world offers many applications to produce realistic images. The most famous one is probably [http://www.blender.org Blender], which is very popular, and widely used in the film and gaming industries. 3D models can very easily and faithfully be exported from FreeCAD and imported into Blender, where you can add realistic materials and illumination, and produce the final images or even animations.


+Fortunately, lumea open source oferă numeroase aplicații pentru a produce imagini realiste. Cea mai faimoasă este probabil [http://www.blender.org Blender], care este foarte popular și utilizat pe scară largă în industria cinematografică și de jocuri. Modelele 3D pot fi exportate cu ușurință și cu fidelitate din FreeCAD și importate în Blender, unde puteți adăuga materiale realiste și iluminare și puteți produce imagini finale sau chiar animații.
Some other open source rendering tools are made to be used inside other applications, and will take care of doing the complex calculations to produce realistic images. Through its [[Raytracing_Module|Raytracing Workbench]], FreeCAD can use two of these rendering tools: [https://en.wikipedia.org/wiki/POV-Ray POV-Ray] and [https://en.wikipedia.org/wiki/LuxRender Luxrender]. POV-Ray is a very old project, and is considered a classical [https://en.wikipedia.org/wiki/Ray_tracing_%28graphics%29 raytracing] engine, while Luxrender is much newer, and is categorized as an [https://en.wikipedia.org/wiki/Unbiased_rendering unbiased] renderer. Both have their strengths and weaknesses, depending on the type of image one wants to render. The best way to know is to look at examples on each engine's website.


Alte instrumente open source de randare sunt create pentru a fi folosite în alte aplicații și vor avea grijă să facă calcule complexe pentru a produce imagini realiste. Prin intermediul lui [[Raytracing_Module|Raytracing Workbench]], FreeCAD poate utiliza două dintre aceste instrumente de randare: [https://en.wikipedia.org/wiki/POV-Ray POV-Ray] și [https://en.wikipedia.org/wiki/LuxRender Luxrender]. POV-Ray
=== Installation ===
este un proiect foarte vechi și este considerat clasic [https://en.wikipedia.org/wiki/Ray_tracing_%28graphics%29 raytracing] engine, pe când Luxrender este mult mai recent, și este catalogat ca fiind un instrumente de randare [https://en.wikipedia.org/wiki/Unbiased_rendering unbiased]. Analiza SWOT arată că zmbele au punctele forte și punctele slabe, în funcție de tipul de imagine pe care vreți să o realizați. Cea mai bună modalitate de a le cunoaște este să examinați exemplele de pe site-urile ambelor motoare.


=== Instalare ===
Before being able to use the Raytracing Workbench in FreeCAD, one of these two rendering applications needs to be installed on your system. This is usually very straightforward. They both provide installers for many platforms or are usually included in the software repositories of most Linux distributions.


Înainte de a putea utiliza Raytracing Workbench în FreeCAD, una dintre aceste două aplicații de randare trebuie instalată pe sistemul dvs.This is usually very straightforward. They both provide installers for many platforms or are usually included in the software repositories of most Linux distributions.
Once POV-Ray or Luxrender is installed, we need to set the path to their main executable in the FreeCAD preferences. This is usually only required on Windows and Mac. On Linux, FreeCAD will pick it from the standard locations. The location of the povray or luxrender executables can be found by searching your system for files named povray (or povray.exe on Windows) and luxrender (or luxrender.exe on Windows).

Odată POV-Ray ori Luxrender este instalat, trebuie să setăm calea spre executabilul lor principal în preferințele FreeCAD. Acest lucru este de obicei necesar numai în Windows și Mac. Pe Linux, FreeCAD o va alege din locațiile standard. Locația executabililor de tip povray sau luxrender poate fi găsită prin căutarea în sistemul dvs. pentru fișiere numite povray (sau povray.exe pe Windows) și luxrender (sau luxrender.exe pe Windows).


[[Image:Exercise_raytracing_01.jpg]]
[[Image:Exercise_raytracing_01.jpg]]


În acest ecran de preferințe putem seta dimensiunea dorită a imaginii pe care dorim să o producem.
In this preferences screen we can also set the desired image size we want to produce.


=== Rendering with PovRay ===
=== Randarea cu PovRay ===


We will use the table we have been modelling in the [[Manual:Traditional modeling, the CSG way|traditional modeling]] chapter to produce renderings with PovRay and Luxrender.
Vom folosi tabela pe care am modelat-o în capitolul [[Manual: Modeling Traditional, CSG way|traditional modeling]] pentru a produce randări cu PovRay și Luxrender.


* Start by loading the table.FCStd file that we modelled earlier or from the link at the bottom of this chapter.
* Start by loading the table.FCStd file that we modelled earlier or from the link at the bottom of this chapter.
Line 28: Line 31:
* A warning message might appear telling you that the current 3D view is not in perspective mode and the rendering will therefore differ. Correct this by choosing '''No''', choosing menu '''View->Perspective view''' and choosing the RadiosityNormal template again.
* A warning message might appear telling you that the current 3D view is not in perspective mode and the rendering will therefore differ. Correct this by choosing '''No''', choosing menu '''View->Perspective view''' and choosing the RadiosityNormal template again.
* You can also try other templates after you create a new project, simply by editing its '''Template''' property.
* You can also try other templates after you create a new project, simply by editing its '''Template''' property.
* A new project has now been created:
* Un nou proiect a fost acum creat:


[[Image:Exercise_raytracing_02.jpg]]
[[Image:Exercise_raytracing_02.jpg]]


* The new project has adopted the point of view of the 3D view as it was at the moment we pressed the button. We can change the view, and update the view position stored in the Povray project anytime, by pressing the [[Image:Raytracing_ResetCamera.png|16px]] [[Raytracing_ResetCamera|Reset camera]] button.
* The new project has adopted the point of view of the 3D view as it was at the moment we pressed the button. We can change the view, and update the view position stored in the Povray project anytime, by pressing the [[Image:Raytracing_ResetCamera.png|16px]] [[Raytracing_ResetCamera|Reset camera]] button.
* The Raytracing Workbench works the same way as the [[Drawing_Module|Drawing Workbench]]: Once a project folder is created, we must add '''Views''' of our objects to it. We can now do that by selecting all the objects that compose the table, and press the [[Image:Raytracing_InsertPart.png|16px]] [[Raytracing_InsertPart|Insert part]] button:
* Atelierul de Raytracing funcționează în același mod ca [[Drawing_Module|Drawing Workbench]]: Odată ce a fost creat un folder pentru proiect, trebuie adăugăm '''Views''' a obiectelor noastre la el.
Acum putem face acest lucru prin selectarea tuturor obiectelor care compun masa și apăsați pe butonul [[Image:Raytracing_InsertPart.png|16px]] [[Raytracing_InsertPart|Insert part]] :


[[Image:Exercise_raytracing_03.jpg]]
[[Image:Exercise_raytracing_03.jpg]]
Line 45: Line 49:
* You will be asked to give a file name and path for the .png image that will be saved by Povray.
* You will be asked to give a file name and path for the .png image that will be saved by Povray.
* Povray will then open and calculate the image.
* Povray will then open and calculate the image.
* După ce faceți acest lucru, dați clic pe imagine pentru a închide fereastra Povray. Imaginea rezultată va fi încărcată în FreeCAD:
* When this is done, click the image to close the Povray window. The resulting image will be loaded in FreeCAD:


[[Image:Exercise_raytracing_04.jpg]]
[[Image:Exercise_raytracing_04.jpg]]


=== Rendering with LuxRender ===
=== Randarea cu LuxRender ===


* Rendering with Luxrender works almost the same way. We can leave our file open and create a new Luxrender project in the same file, or reload it to start from scratch.
* Rendering cu Luxrender funcționează aproape în același mod. Putem lăsa fișierul nostru deschis și creați un nou proiect Luxrender în același fișier sau îl reîncărcați pentru a începe de la zero.
* Press the little down arrow next to the [[Image:Raytracing_Lux.png|16px]] [[Raytracing_Lux|New Luxrender project]] button and choose the '''LuxOutdoor''' template.
* Press the little down arrow next to the [[Image:Raytracing_Lux.png|16px]] [[Raytracing_Lux|New Luxrender project]] button and choose the '''LuxOutdoor''' template.
* Select all the components of the table. If you still have the Povray project in your document, be sure to also select the Luxrender project itself, so the views created in the next step won't go in the wrong project by mistake.
* Select all the components of the table. If you still have the Povray project in your document, be sure to also select the Luxrender project itself, so the views created in the next step won't go in the wrong project by mistake.
Line 62: Line 66:
* If you leave that window open, Luxrender will continue calculating and rendering forever, progressively refining the image. It is up to you to decide when the image has reached a sufficient quality for your needs, and stop the render.
* If you leave that window open, Luxrender will continue calculating and rendering forever, progressively refining the image. It is up to you to decide when the image has reached a sufficient quality for your needs, and stop the render.
* There are also many controls to play with, on the left panel. All these controls will change the aspect of the image being rendered on the fly, without stopping the rendering.
* There are also many controls to play with, on the left panel. All these controls will change the aspect of the image being rendered on the fly, without stopping the rendering.
* When you feel the quality is good enough, press '''Render->stop''', and then '''File->Export to image->Tonemapped low dynamic range''' to save the rendered image to a png file.
* Atunci când ajungeți la concluzia avem o calitate suficient de bună, apăsați'''Render->stop''', și apoi '''File->Export to image->Tonemapped low dynamic range''' pentru a salva imaginea randată îîntr-un fișier png .


You can greatly extend the rendering possibilities of FreeCAD by creating new templates for Povray or Luxrender. This is explained in the [[Raytracing_Module|Raytracing Workbench documentation]].
Puteți extinde foarte mult posibilitățile de randare ale FreeCAD, creând noi șabloane pentru Povray sau Luxrender. Acest lucru este explicat în [[Raytracing_Module|Raytracing Workbench documentation]].


'''Downloads'''
'''Fişiere de descărcat'''


* The table model: https://github.com/yorikvanhavre/FreeCAD-manual/blob/master/files/table.FCStd
* Modelul de tabel: https://github.com/yorikvanhavre/FreeCAD-manual/blob/master/files/table.FCStd
* The file produced during this exercise: https://github.com/yorikvanhavre/FreeCAD-manual/blob/master/files/render.FCStd
* Fișierul produs pe durat aacestui exercițiu se află la: https://github.com/yorikvanhavre/FreeCAD-manual/blob/master/files/render.FCStd


'''De citit în plus'''
'''De citit în plus'''
Line 78: Line 82:
* [http://www.luxrender.net Luxrender]
* [http://www.luxrender.net Luxrender]


[[Category:Tutorials]]
[[Category:Tutorials/ro]]

{{Docnav|[[Manual:Creating FEM analyses|Creating FEM analyses]]|[[Manual:A gentle introduction|A gentle introduction]]|[[Manual:Introduction|Manual start]]|IconC=Crystal Clear manual.png}}

Revision as of 11:03, 30 March 2019

In limbajul computerului, cuvântul rendering este utilizat pentru a descrie o imagine frumoasă produsă de către un model 3D. Desigur, am putea spune că ceea ce vedem într-o vizualizarea 3D FreeCAD este deja ceva plăcut. Cu toate acestea, oricine a văzut un film recent de la Hollywood, știe că este posibil să se producă imagini cu un computer aproape că nu pot fi deosebite de o fotografie.

Desigur, producerea de imagini foto realiste necesită o mulțime de lucruri, în plus față de o aplicație 3D care oferă instrumente specifice în acest scop, precum controale precise pentru materiale și iluminat. Deoarece FreeCAD este o aplicație orientată mai mult spre modelarea tehnică, nu conține niciun fel de instrumente avansate de randare.

+Fortunately, lumea open source oferă numeroase aplicații pentru a produce imagini realiste. Cea mai faimoasă este probabil Blender, care este foarte popular și utilizat pe scară largă în industria cinematografică și de jocuri. Modelele 3D pot fi exportate cu ușurință și cu fidelitate din FreeCAD și importate în Blender, unde puteți adăuga materiale realiste și iluminare și puteți produce imagini finale sau chiar animații.

Alte instrumente open source de randare sunt create pentru a fi folosite în alte aplicații și vor avea grijă să facă calcule complexe pentru a produce imagini realiste. Prin intermediul lui Raytracing Workbench, FreeCAD poate utiliza două dintre aceste instrumente de randare: POV-Ray și Luxrender. POV-Ray este un proiect foarte vechi și este considerat clasic raytracing engine, pe când Luxrender este mult mai recent, și este catalogat ca fiind un instrumente de randare unbiased. Analiza SWOT arată că zmbele au punctele forte și punctele slabe, în funcție de tipul de imagine pe care vreți să o realizați. Cea mai bună modalitate de a le cunoaște este să examinați exemplele de pe site-urile ambelor motoare.

Instalare

Înainte de a putea utiliza Raytracing Workbench în FreeCAD, una dintre aceste două aplicații de randare trebuie instalată pe sistemul dvs.This is usually very straightforward. They both provide installers for many platforms or are usually included in the software repositories of most Linux distributions.

Odată POV-Ray ori Luxrender este instalat, trebuie să setăm calea spre executabilul lor principal în preferințele FreeCAD. Acest lucru este de obicei necesar numai în Windows și Mac. Pe Linux, FreeCAD o va alege din locațiile standard. Locația executabililor de tip povray sau luxrender poate fi găsită prin căutarea în sistemul dvs. pentru fișiere numite povray (sau povray.exe pe Windows) și luxrender (sau luxrender.exe pe Windows).

În acest ecran de preferințe putem seta dimensiunea dorită a imaginii pe care dorim să o producem.

Randarea cu PovRay

Vom folosi tabela pe care am modelat-o în capitolul traditional modeling pentru a produce randări cu PovRay și Luxrender.

  • Start by loading the table.FCStd file that we modelled earlier or from the link at the bottom of this chapter.
  • Press the small down arrow next to the New Povray project button, and choose the RadiosityNormal template
  • A warning message might appear telling you that the current 3D view is not in perspective mode and the rendering will therefore differ. Correct this by choosing No, choosing menu View->Perspective view and choosing the RadiosityNormal template again.
  • You can also try other templates after you create a new project, simply by editing its Template property.
  • Un nou proiect a fost acum creat:

  • The new project has adopted the point of view of the 3D view as it was at the moment we pressed the button. We can change the view, and update the view position stored in the Povray project anytime, by pressing the Reset camera button.
  • Atelierul de Raytracing funcționează în același mod ca Drawing Workbench: Odată ce a fost creat un folder pentru proiect, trebuie să adăugăm Views a obiectelor noastre la el.

Acum putem face acest lucru prin selectarea tuturor obiectelor care compun masa și apăsați pe butonul Insert part :

  • The views have taken the color and transparency values from their original parts, but you can change that in the properties of each individual view if you wish.
  • We are now ready to produce our first Povray render. Press the Render button.
  • Note for windows users: when receiving (in Povray) a warning saying "I/O restrictions prohibit write access ..."
    • open Povray
    • choose "Options > Script I/O Restrictions" and make sure it is set to "No Restrictions"
    • retry render
  • You will be asked to give a file name and path for the .png image that will be saved by Povray.
  • Povray will then open and calculate the image.
  • După ce faceți acest lucru, dați clic pe imagine pentru a închide fereastra Povray. Imaginea rezultată va fi încărcată în FreeCAD:

Randarea cu LuxRender

  • Rendering cu Luxrender funcționează aproape în același mod. Putem lăsa fișierul nostru deschis și să creați un nou proiect Luxrender în același fișier sau să îl reîncărcați pentru a începe de la zero.
  • Press the little down arrow next to the New Luxrender project button and choose the LuxOutdoor template.
  • Select all the components of the table. If you still have the Povray project in your document, be sure to also select the Luxrender project itself, so the views created in the next step won't go in the wrong project by mistake.
  • Press the Insert part button.
  • Select the Luxrender project, and press the Render button.
  • Luxrender works differently to Povray. When you start the render, the Luxrender application will open and immediately start rendering:

  • If you leave that window open, Luxrender will continue calculating and rendering forever, progressively refining the image. It is up to you to decide when the image has reached a sufficient quality for your needs, and stop the render.
  • There are also many controls to play with, on the left panel. All these controls will change the aspect of the image being rendered on the fly, without stopping the rendering.
  • Atunci când ajungeți la concluzia că avem o calitate suficient de bună, apăsațiRender->stop, și apoi File->Export to image->Tonemapped low dynamic range pentru a salva imaginea randată îîntr-un fișier png .

Puteți extinde foarte mult posibilitățile de randare ale FreeCAD, creând noi șabloane pentru Povray sau Luxrender. Acest lucru este explicat în Raytracing Workbench documentation.

Fişiere de descărcat

De citit în plus