Cách Sử Dụng (Usage)¶
For example, we will take an existing blend-file that was made for monoscopic rendering and transform it to be stereo 3D ready.
Giới Thiệu (Introduction)¶
Start opening up your project file, in this case turntable.blend
from the Creature Factory 2
Open Movie Workshop series from the Blender Institute by Andy Goralczyk.
Sắp Đặt về Lập Thể (Stereoscopy Setup)¶
Go to the Tính Chất Đầu Ra (Output Properties) and enable "Lập Thể" for this scene.
Ghi chú
When you turn on Stereoscopy in the scene, you get 3D preview in the viewport, as well as multiple panels that are now accessible all over the user interface.
Máy Quay Phim (Camera)¶
To tweak the stereo 3D parameters, select the camera in the Outliner. In the Camera panel go to the Stereoscopy tab and change the Convergence Distance.
The viewport will respond in real-time to those changes allowing you to preview the current depth value of the scene.
Cổng Nhìn (Viewport)¶
Before fine-tuning the camera parameters, you can set the convergence plane in the viewport based in your scene depth layout. Go outside the camera view and you will instantly see the convergence plane in front of the camera.
You can toggle this and other display settings in the Stereoscopy panel of the 3D Viewport's Sidebar. In the following image, the camera's frustum volumes are also visible.
Hiển Thị 3D Lập Thể (Stereo 3D Display)¶
If you have a real 3D display at some point, you can change the 3D display mode in the Window menu, by calling the Stereo 3D operator. Be aware that some modes require a fullscreen editor to work.
Xem Trước trong Cổng Nhìn (Viewport Preview)¶
Before rendering your scene, you can save a Viewport Preview of the animation for testing in the final display. In the Render Output panel you can choose the output Views Format.
The options include individual files per view, top-bottom, anaglyph among others. Pick the one that fits your display requirements.
Kết Xuất và Trình Biên Soạn Hình Ảnh (Rendering and Image Editor)¶
Once you are happy with the results, you can render out the final animation. In the Image Editor you can inspect the individual views and the stereo result.
Định Dạng Hình Ảnh (Image Formats)¶
Your final animation can be saved in more robust formats. In this example we saved as cross-eyed side-by-side stereo 3D.
Một Số Cân Nhắc Cuối Cùng (Final Considerations)¶
As this guide showed, there is more to stereo 3D rendering than just generate two images. The earlier the stereo pipeline is considered the smoother it will get. The following sections are a more in-depth view of the individual components we visited in the workflow.
Hiển Thị Lập Thể 3D trong Cửa Sổ (Window Stereo 3D Display)¶
An essential component of the Stereoscopy pipeline is the ability to display the stereo image in a proper display. Blender supports from high-end 3D displays to simple red-cyan glasses. On top of that, you can set a different display mode for each window.
The display mode can be changed via the Window menu
or if you create your own shortcuts for the wm.set_stereo_3d
operator.
Chế Độ Hiển Thị (Display Mode)¶
- Ảnh Nổi Màu Bổ Sung (Anaglyph)
Render two differently filtered colored images for each eye. Anaglyph glasses are required. We support red-cyan, green-magenta and yellow-blue glasses.
- Xen Kẽ (Interlace)
Render two images for each eye into one interlaced image. A 3D-ready monitor is required. We support Row, Column and Checkerboard Interleaved. An option to Swap Left/Right helps to adjust the image for the screen. This method works better in fullscreen.
- Tuần Tự Thời Gian (Time Sequential)
Render alternate eyes. This method is also known as Page Flip. This requires the graphic card to support Quad Buffer and it only works in fullscreen.
- Bên Kề Bên (Side-by-Side)
Render images for left and right eye side-by-side. There is an option to support Cross-Eye glasses. It works only in fullscreen, and it should be used with the Full Editor operator.
- Đỉnh-Đáy (Top-Bottom)
Render images for left and right eye one above another. It works only in fullscreen, and it should be used with the Full Editor operator.
Ghi chú
Full Screen Stereo 3D Modes
If you have a 3D display most of the time, you will use it to see in stereo 3D, you will have to go to the fullscreen mode. In fact some modes will only work in the full window mode that hides most of the user interface from the work area. In this case it is recommended to work with two monitors, using the 3D screen for visualizing the stereo result while the other screen can be used for the regular Blender work.
Máy Quay Phim Lập Thể 3D (Stereo 3D Camera)¶
When using the Stereo 3D scene view setup, a stereo pair is created on-the-fly and used for rendering and previsualization. For all the purposes this works as two cameras that share most parameters (focal length, clipping, ...). The stereo pair, however, is offset, and can have unique rotation and shift between itself.
- Khoảng Cách Đồng Tử (Interocular Distance)
Set the distance between the camera pair. Although the convergence of a stereo pair can be changed in post-production, different interocular distances will produce different results due to the parts of the scene being occluded from each point of view.
- Khoảng Cách Tới Bình Diện Đồng Quy (Convergence Plane Distance)
The converge point for the stereo cameras. This is often the distance between a projector and the projection screen. You can visualize this in the 3D Viewport.
- Lập Thể Hình Cầu (Spherical Stereo)
Kết xuất các điểm ảnh xoay quanh máy quay phim chừng tâm của khoảng cách giữa hai con mắt.
- Hợp Nhất Cực (Use Pole Merge)
Phai mờ dần khoảng cách giữa hai mắt về 0 sau một giá trị góc giới hạn cho trước nào đó.
- Góc Khởi Đầu Hợp Nhất Cực (Pole Merge Start Angle)
Góc độ mà khoảng cách giữa hai mắt bắt đầu mờ dần về 0.
- Góc Kết Thúc Hợp Nhất Cực (Pole Merge End Angle)
Góc nhìn khi khoảng cách giữa hai mắt bằng 0.
Chế Độ Hội Tụ (Convergence Mode)¶
- Ngoài Trục Ngắm (Off-Axis)
The stereo camera pair is separated by the interocular distance, and shifted inwards so it converges in the convergence plane. This is the ideal format since it is the one closest to how the human vision works.
- Song Song (Parallel)
This method produces two parallel cameras that do not converge. Since this method needs to be manually converged it cannot be used for viewing. This method is common when combining real footage with rendered elements.
- Chụm Vào (Toe-in)
A less common approach is to rotate the cameras instead of shifting their frustum. The Toe-in method is rarely used in modern 3D productions.
- Điểm Tựa (Pivot)
The stereo pair can be constructed around the active camera with a new camera built for each eye (Center Pivot) or using the existing camera and creating (Left or Right). The latter is what is used when only one eye needs to be rendered for an existing mono 2D project.
Cổng Nhìn Lập Thể 3D (Viewport Stereo 3D)¶
When you enable Views in the Render Layer panel, a new area is available in the 3D Viewport Sidebar region. In this panel you can pick whether to see the stereo 3D in the viewport, or which camera to see. It also allow you to see the Cameras, the Plane and the Volume of the stereo cameras.
- Máy Quay Phim (Cameras)
When working with the Stereo 3D Viewports setup, you can inspect what each individual generated camera is looking or the combined result of them. In the Multi-View mode you can see the combined result of the left and right cameras (when available) or the current selected camera.
- Bình Diện (Plane)
The convergence plane represents the screen as it is perceived by the audience. Visualizing it in the 3D Viewport allows you to layout your scene based on your depth script outside the camera view.
- Âm Lượng/Thể Tích (Volume)
The intersection of the stereo cameras frustums helps planning the show by avoiding elements being visible by only one camera. The volume is defined by the camera's start and end clipping distances. The areas that are in the frustum of one camera only are known as retinal rivalry areas. They are tolerated in the negative space (the region from the convergence plane into the image) but are to be avoided at all costs in the positive space (the area from the convergence plane to the camera).
Đọc/Viết Hình Ảnh Đa Góc Nhìn và Lập Thể 3D (Multi-View and Stereo 3D Image I/O)¶
- Đa Góc Nhìn và Lập Thể 3D (Multi-View and Stereo 3D)
Multi-view images can be saved in special formats according to the production requirements. By default the system saves each view as an individual file, thus generating as many files as views to be rendered. In stereo 3D productions, for the final deployment or even intermediary previews it is convenient to save stereo 3D images, that are ready to use with 3D displays or simple anaglyph glasses. The formats supported match the display modes available for the window.
- Các Định Dạng Gây Mất Mát (Lossy-Formats)
Some stereo 3D formats represent a considerable loss of data. For example, the Anaglyph format will cap out entire color channels from the original image. The Top-Bottom compressed will discard half of your vertical resolution data. The Interlace will mash your data considerably. Once you export in those formats, you can still import the image back in Blender, for it to be treated as Stereo 3D. You will need to match the window stereo 3D display mode to the image stereo 3D format though.
- Các Định Dạng Bảo Toàn Chất Lượng (Lossless Formats)
Some formats will preserve the original data, leading to no problems on exporting and importing the files back in Blender. The Individual option will produce separate images that (if saved in a lossless encoding such as
PNG
orOpenEXR
) can be loaded back in production with no loss of data. For the Stereo 3D formats the only lossless options are Top-Bottom and Side-by-Side without the Squeezed Frame option.- OpenEXR Đa Góc Nhìn (Multi-View OpenEXR)
Another option is to use multi-view OpenEXR files. This format can save multiple views in a single file and is backward compatible with old OpenEXR viewers (you see only one view though). Multi-view native support is only available to OpenEXR.
Trình Biên Soạn Hình Ảnh (Image Editor)¶
- Trình Đơn Góc Nhìn (View Menu)
After you render your scene with Stereo 3D you will be able to see the rendered result in the combined stereo 3D or to inspect the individual views. This works for Viewer nodes, render results or opened images.
- Định Dạng các Góc Nhìn (Views Format)
When you drag and drop an image into the Image Editor, Blender will open it as an individual images at first. If your image was saved with one of the Stereo 3D formats, you can change how Blender should interpret the image by switching the mode to Stereo 3D, turning on Use Multi-View and picking the corresponding stereo method.
Trình Tổng Hợp (Compositor)¶
The Compositor works smoothly with multi-view images. The compositing of a view is completed before the remaining views start to be composited. The pipeline is the same as the single-view workflow, with the difference that you can use images, movies or image sequences in any of the supported multi-view formats.
Những góc nhìn để kết xuất là những cái đã được xác định trong các góc nhìn của cảnh hiện tại, tương tự như phương pháp bạn xác định độ phân giải ở đầu ra của quá trình tổng hợp, trong bảng kết xuất cảnh hiện tại, bất kể đến độ phân giải của các nút Hình Ảnh hoặc các Tầng Kết Xuất từ các cảnh khác là thế nào đi nữa.
Ghi chú
Các Hình Ảnh Đơn Góc Nhìn
If the image from an Image node does not have the view you are trying to render, the image will be treated as a single-view image.
- Nút Đổi Góc Nhìn (Switch View Node)
If you need to treat the views separately, you can use the Switch View node to combine the views before an Output node.
Mẹo
Hiệu Suất Thi Hành (Performance)
By default, when compositing and rendering from the user interface all views are rendered and then composited. During test iterations you can disable all but one view from the Scene Views panel, and re-enable it after you get the final look.