Appearance
Foreground Neural Radiance Fields
This jade bunny came from the native SVPT scene. Open its saved field to try the lighting and shadow controls, then use the steps below to make your own.

Download a field (675,141 bytes each) · SVPT jade · RC Manix · NS Manix
Medical volumes from held-out views
The native volume render is on the left and the neural radiance field on the right. Both use a camera position held out from training, with the same exposure and crop for both images. Compare the gaps between the teeth, the red rim around the yellow MRI region, and the opening between the vessel branches. View full size (1200 × 782).
Capture a model while rendering
- Open the bundled RC / Manix-EA scene in a build with
CRYSTAL_ENABLE_NEURAL_RENDERING=ON. Frame the whole head, then set the transfer function and lighting to the appearance you want to keep. Look for a clear air–tissue boundary. An opaque low-intensity band will teach the field the outline of the scan box. - In the render window, open Data generation → DeepLearning Data → Foreground radiance field and select Learn while rendering. The foreground observation counter should increase as native frames finish. If it stays at zero, bring visible tissue into the frame and check the opacity curve. Viewing an empty region supplies no object color.
- Orbit slowly around the head. Stop at the sides and back and include views from above and below. The counter measures accepted samples, including repeats. A large count from one stationary camera still leaves the back of the skull undersampled.
- Pause by clearing the checkbox. Use Refine field to spend another 128 optimizer steps on observations already collected. If the ear disappears on rotation, turn learning back on and show that side to the renderer. Extra steps at a fixed pose cannot supply the missing geometry. Save a version before editing the material or original lights.
- Choose Save field… and give the model a fresh
.crnffilename. A bundled Demo suggests the application'sSavedirectory. The file contains the field domain, source exposure, occupied-cell mask and neural weights. It can be opened on its own. The in-memory sample history and optimizer state last for the current capture session.

The live SVPT insect-amber session has recorded 1,883 foreground observations.
Refine a medical scene in the local web workbench
Use the native renderer to define the appearance first. In the brain MRI example, a registered mask colors three regions on a cut through the scan. Before training, orbit the native scene until you can see the yellow core, its thin red rim and the adjacent cyan branches. Save the scene with this cut, mask, transfer function, exposure and lighting. The training target is the appearance you see from each angle.
- On the Windows machine with the scene and a CUDA-enabled Crystal build, run
Support/GS3D/Start_CrystalGS_GUI.batfrom the Crystal checkout. Leave its console open. Choose Neural radiance field in the browser. You can also enterhttp://127.0.0.1:8765/?workflow=radianceafter the service starts. If using another Release build, set theCRYSTAL_CMDenvironment variable to its absoluteCrystalCmd.exepath before starting. This workflow uses your local GPU. - Browse to the saved XML or JSON and an existing output folder outside the bundled examples. Leave Continue from a model empty for a new capture. This creates a seed by orbiting the native scene automatically. Alternatively, select a
.crnfyou saved with Learn while rendering. That seed contains the regions captured by your own camera movements. Check its back and cut surfaces before reusing it. The XML must describe the same object coordinates, visible tissues, transfer function, lights and exposure. The file header alone cannot establish that match. - Choose Preview to check the framing and paths, or Medical to start fitting anatomical detail. The controls below describe the final pass. In a fresh Medical or Fine detail run with a final edge above 160 pixels, the workbench first fits a 160-pixel capture, then repeats at the selected resolution. Supplying a seed runs the selected final pass directly.
| Preset | Views | Square edge | Native samples per pixel | Optimizer steps |
|---|---|---|---|---|
| Preview | 16 | 96 px | 4 | 800 |
| Medical | 90 | 320 px | 48 | 19,200 |
| Fine detail | 128 | 384 px | 96 | 24,000 |
- Click Train radiance field. During capture, each native pixel supplies an object-space ray, its foreground color in linear light and its coverage. During refinement, Crystal composites the field along these rays and adjusts color and opacity to match the native pixels. Watch the current pass and stage in the monitor. Capture counts native samples and refinement counts optimizer steps. Check the native log when a stage stops with an error.
- Choose Download model or open
refined.crnfin the newly created job folder. Drop it onto the Crystal home window. Start at 0 EV with relighting off. View the MRI from the opposite side and at an oblique angle. If a visible red border has become a broad orange band, increase capture resolution or add views that expose it. If highlights change randomly in the native renders, increase native samples per pixel first. A region that is completely absent from the seed's occupied cells needs a fresh seed with better coverage. - For a further pass, choose Use as starting model and change one setting. This starts a new job with the saved weights and a new capture.
training.jsonrecords the scene, seed and pass settings. A completed run also hasresult.json; a fresh run retainsseed.crnfonce seed capture finishes. After cancelling or restarting the service, select a completed checkpoint to continue in a new job.
Reproduce the brain MRI study
The measured study used a custom three-stage recipe. To reproduce it with the local medical example pack, run the following in PowerShell from the pack directory, replacing both paths with your own.
python Tools/reproduce.py BraTS-MRI/recipe.json --release D:/Crystal/Release --output D:/Cases/BraTS-run-01The script requires a fresh output directory. It captures a seed from 384 views at 192 px, with 18 steps per view and 2,200 final seed steps. It then refines on 56 views at 160 px and 8 SPP for 6,500 steps, followed by 90 views at 320 px and 8 SPP for 14,000 steps. Each pass starts from the preceding checkpoint. The script writes final.crnf. The workbench Medical preset above has its own default sampling budget.
For a visual check, render a fresh pair of native reference views with the same camera, display exposure and relighting settings as the field. In this study the two reserved yaw/elevation pairs were 19.25°/7.75° and −161.5°/2.25°. Each native foreground reference used 384 × 384 pixels and 128 SPP. The following measurements use the packaged model and the unrefined seed.
| Measurement | Seed, view 1 / view 2 | Final field, view 1 / view 2 |
|---|---|---|
| Foreground display RGB mean absolute error (0–1) | 0.060 / 0.064 | 0.014 / 0.013 |
| Silhouette intersection over union | 0.972 / 0.970 | 0.993 / 0.992 |
| Colored-region intersection over union | 0.702 / 0.649 | 0.941 / 0.937 |
| Thin red region intersection over union | 0.085 / 0.000 | 0.824 / 0.561 |
The seed captured the outer contour while its colors spread across neighboring labels. After refinement, the yellow core and cyan branches separated in both views. The thin red rim was still smoother at the second angle. RGB error compares premultiplied display colors inside the native foreground. Silhouette IoU uses a 0.5 coverage threshold. Colored-region IoU compares warm and cyan pixels classified by the same display-color thresholds in both images. These values measure reproduction of the rendered overlays. To inspect the original segmentation, open its mask in the source scene.
Inspect geometry, lighting and shadows
Recording a camera trajectory or replaying a training project temporarily pauses field capture. Return to normal rendering to continue learning.
Open View → Neural radiance field viewer on the Crystal home screen or drop a .crnf onto the home window. Left-drag to orbit, right-drag to pan, and scroll to zoom. Reset view fits the domain again. Start with the original appearance and Exposure (EV) at zero. Inspect the silhouette from the sides as well as the front.
Enable Show field bounds to see how much of the capture domain the subject occupies. For a thin missing structure, orbit to the relevant surface in the source scene and collect more hits. The grid has 96 cells per axis. Sufficiently small structures and features sharing one cell can remain unresolved.
Select Relight foreground, then change Light azimuth while holding Light elevation steady. Watch a curved part of the skull: the new diffuse contribution follows its learned normal. Toggle the control off to inspect the captured lighting again. Move Exposure (EV) separately to compare the same lighting at different brightness levels. Specular highlights and illumination already present in the captured radiance remain visible. To reproduce a physically different light rig, change the native lights and capture a new field.
Select Ground and projected shadow. At a low elevation the shadow stretches away from the light. Increase elevation to draw it closer under the subject. Projection integrates the field's opacity toward the light from points on the viewer's ground plane. The plane, orbit guides and display background are created during playback.
| Captured appearance | Show field bounds |
|---|---|
![]() | ![]() |
| Directional light and shadow | Orbit to another viewpoint |
|---|---|
![]() | ![]() |
Reproduce the bundled example
Run from the Release directory. Use a fresh destination outside Resources. The four numbers select camera views, square native film edge, optimizer steps per view and final refinement steps.
.\CrystalCmd.exe --radiance-field Resources/Examples-Demo/RC/Manix-EA-Scene.xml manix.crnf 144 192 16 1000This command distributes views over a sphere and trains through the same foreground session as the desktop. Increasing view count improves coverage. Increasing optimizer steps helps fit the observed colors and normals. The observation plane samples at most 192 positions along the longer film dimension. Increasing the film size beyond this value changes the sampling stride.
For the bundled NS skull, use NS/Manix-KM-Scene.xml in place of RC/Manix-EA-Scene.xml. For translucent jade, use SVPT/Jade-Bunny-SVPT-Scene.xml. Keep the Resources/Examples-Demo/ prefix and choose a different output filename for each. To compare a material or a light rig, save separate captures under distinct filenames.
What is learned
Each native observation pairs a 3D position and direction to the camera with linear foreground radiance, a normal and coverage. Direct views of the background, the SVPT display ground and visible light geometry contribute no foreground color. Environment illumination reflected by the subject contributes to its appearance. A 3D multiresolution hash encoding supplies spatial features to two small networks. One predicts opacity and normals from position. The other also takes the view direction, encoded with spherical harmonics, and predicts color. The occupied-cell mask keeps unseen empty cells transparent during field evaluation.
Crystal trains from measurements made inside its own renderer. Deterministic ray casting associates composited coverage with a representative position. At sampled volume collisions that carry a local extinction coefficient, the trainer converts extinction to opacity over the field's reference length. It averages nearby foreground observations in linear light before compressing HDR values. Coarse neighborhoods stabilize sparsely observed directions and finer neighborhoods retain local variation.
The result approximates the appearance and support of the observed object. A single projected observation cannot recover the original tissue extinction profile, dielectric interfaces or the complete transport of light through an amber inclusion. The separate .nfield workflow learns RGB images over a small camera orbit, including their original composition. The multiresolution encoding follows Müller et al., Instant Neural Graphics Primitives.
Check a held-out view
All three downloadable fields used the 144-view recipe above. Two additional cameras at yaw/pitch 19.25°/7.75° and −161.5°/2.25° were compared with native foreground observations rendered at 192 × 192 and 96 SPP. Each pair below follows that camera order. Silhouette IoU measures overlap at 0.5 coverage, with 1 meaning full agreement. RGB error is the mean absolute 0–1 display-color error over native foreground pixels composited over black. Smaller values mean closer agreement.
| Scene | Silhouette IoU | Foreground RGB error |
|---|---|---|
| RC Manix | 0.873 / 0.886 | 0.057 / 0.053 |
| NS Manix | 0.950 / 0.905 | 0.118 / 0.109 |
| SVPT jade | 0.950 / 0.943 | 0.174 / 0.178 |
| Native NS foreground | Radiance field at the same pose |
|---|---|
![]() | ![]() |
The field softens fine structures near the supports and eye sockets. The jade outline agrees closely with the native reference, while its translucent interior has a larger appearance error. Orbit to the opposite side to check the silhouette and use the native renderer to inspect detailed anatomy.






