Raytracing Workbench/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "Są to narzędzia pomocnicze do ręcznego wykonywania określonych zadań. * 32px Eksport widoku do Povray: Zapisuje ak...")
(Created page with "==Ustawienia==")
Line 53: Line 53:
* [[Obrazek:Raytracing_Part.png|32px]] [[Raytracing_Part|Exksport części do Povray]]: Zapisz wybraną część ''(obiekt)'' jako plik Povray.
* [[Obrazek:Raytracing_Part.png|32px]] [[Raytracing_Part|Exksport części do Povray]]: Zapisz wybraną część ''(obiekt)'' jako plik Povray.


== Preferences ==
==Ustawienia==


* [[Image:Preferences-raytracing.svg|32px]] [[Raytracing_Preferences|Preferences]]: Preferences available in for the Raytracing tools.
* [[Image:Preferences-raytracing.svg|32px]] [[Raytracing_Preferences|Preferences]]: Preferences available in for the Raytracing tools.

Revision as of 17:21, 21 January 2020

Wprowadzenie

Narzędzie Środowisko pracy Raytracing służy do generowania fotorealistycznych obrazów modeli poprzez przetwarzanie ich za pomocą zewnętrznego programu renderującego.

Środowisko pracy Raytracing współpracuje z szablonami, które są plikami projektu definiującymi scenę dla Twojego modelu 3D. Można w nich umieszczać światła i geometrię, takie jak płaszczyzny podłoża, a także zawiera symbole zastępcze dla położenia kamery oraz dla informacji o materiale obiektów w scenie. Projekt może być następnie wyeksportowany do pliku gotowego do dalszej obróbki lub wyrenderowany bezpośrednio w programie FreeCAD.

Obecnie obsługiwane są dwa systemy renderowania: povray i luxrender. Aby móc renderować z poziomu FreeCAD, przynajmniej jeden z tych programów musi być zainstalowany i skonfigurowany w Twoim systemie. Jednakże, jeśli żaden renderer nie jest zainstalowany, nadal będziesz mógł wyeksportować plik projektu, który będzie renderowany w innym czasie.

Nowe Środowisko pracy Render zostało opracowane w celu wsparcia wielu back-endów, takich jak Lux Renderer i Yafaray. Z informacjami dotyczącymi korzystania z wersji deweloperskiej można zapoznać się na stronie Render. Informacje na temat statusu programowania modułu Render można znaleźć w Raytracing project.

Typowy przepływ pracy

Typowy przepływ pracy

  1. Utwórz lub otwórz projekt FreeCAD, dodaj kilka obiektów brył (Part Based lub PartDesign based); siatki nie są obecnie obsługiwane.
  2. Utwórz projekt Raytrackingu (povray lub luxrender).
  3. Wybierz obiekty, które chcesz dodać do projektu Raytracing i dodaj je.
  4. Eksportuj plik projektu lub renderuj go bezpośrednio.



Przepływ pracy Środowiska pracy Raytracing;
Środowisko to przygotowuje plik projektu z danego szablonu, a następnie wywołuje zewnętrzny program w celu wytworzenia rzeczywistego renderingu sceny. Zewnętrzny renderer może być używany niezależnie od FreeCAD.

Narzędzia

Narzędzia projektu

Są to główne narzędzia do eksportowania projektu 3D do zewnętrznych rendererów.

Przydatne narzędzia

Są to narzędzia pomocnicze do ręcznego wykonywania określonych zadań.

Ustawienia

  • Preferences: Preferences available in for the Raytracing tools.

Tutorials

Creating a povray file manually

The utility tools described above allow you 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 "Utilities → Export View..." from the raytracing menu.

You will be asked for a location to save the resulting *.pov file. After that you can open it in Povray and render:

As usual in a renderer you can make big and nice pictures:

Skryptowanie

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

Linki

POVRay

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

Rozwój