Difference between revisions of "RTPreview"

From Bakery GPU Lightmapper: Wiki
Jump to navigation Jump to search
(Running)
Line 4: Line 4:
  
 
RTPreview is not a production renderer, but a "how lightmapper sees your scene" kind of view. What you will see is what every traced ray sees in Bakery, meaning its main purpose is fine-tuning lighting and making sure your geometry and materials are properly represented.
 
RTPreview is not a production renderer, but a "how lightmapper sees your scene" kind of view. What you will see is what every traced ray sees in Bakery, meaning its main purpose is fine-tuning lighting and making sure your geometry and materials are properly represented.
 +
 +
Similar to Bakery itself, RTPreview will take advantage of RTX hardware to render faster.
  
 
= Installing =
 
= Installing =

Revision as of 21:31, 11 March 2020

Video

RTPreview is a real-time ray tracing plugin for Bakery Lightmapper that makes it possible to quickly visualize and tweak lighting for future lightmaps before baking them.

RTPreview is not a production renderer, but a "how lightmapper sees your scene" kind of view. What you will see is what every traced ray sees in Bakery, meaning its main purpose is fine-tuning lighting and making sure your geometry and materials are properly represented.

Similar to Bakery itself, RTPreview will take advantage of RTX hardware to render faster.

Installing

You need to have Bakery installed first. Then download RTPreview package and just install it on top.

Running

Click Bakery -> Preview. Then you have two options:

  • Disable Render In Scene View. Type desired width/height of the window. Click Open Preview. Preview will be shown in its own window.
  • Enable Render In Scene View. Click Open Preview. Preview will be rendered directly in Scene View.

In both cases preview camera will follow editor camera.

Click Close Preview to close the window or stop rendering to Scene View.

Export geometry and maps checkbox controls if scene geometry/materials will be exported to Bakery. Must be enabled if running for the first time or if there were any changes to them.

Tweaking

Any Direct Light, Sky Light, Point Light and Light Mesh can be changed interactively while preview is running.

Additionally, global GI bounce count, Indirect boost, Backface GI and Emissive boost can be modified.

Exposure value can be tweaked to control HDR brightness of the image.

Limitations

  • You shouldn't expect materials to look as they do in engine. Bakery uses Unity's Meta Pass to gather albedo/emission information, meaning surface textures will have the same resolution as lightmaps (probably on the low side). However, a benefit of this approach is that any procedurally computed color coming from custom shaders will be visible. Another benefit is being able to see future lightmap resolution from textures and making sure they didn't leak any wrong color during mip-mapping. Meta Pass does not provide specular information, so there will be no specular highlights or reflection in preview.
  • Any resolution-related settings only affect Meta Pass, but not lighting. Lighting in preview is calculated for every screen pixel.
  • Any sample count settings (GI samples, shadow samples for various lights) have no effect on preview. Preview uses infinite, progressively increasing sample count for everything. One special case that is taken into account is setting shadow samples to 0 for Direct and Point lights in order to disable their shadows completely.
  • Scene geometry (including Light Mesh geometry) and materials can not be changed while preview is running. To apply these changes you must close and open preview again with "Export geometry and maps" option enabled.
  • Objects set to not cast any shadows are not visible in preview. This is actually how Bakery works: objects not casting shadows can gather lighting lighting around them but are transparent for rays.
  • Bitmasks are currently not respected in preview.
  • Direct light's texture projection is currently not respected.
  • Very large scenes (or scenes with too many high resolution lightmaps) can cause an "Out of memory" error, even if they can be baked. This is because preview has to share video memory with Unity running the same scene, while baking makes it possible to unload them from engine.