Camera Clipping settings not transferring to Radiance (Blender 5.0)

8 views
Skip to first unread message

Pius Jung

unread,
Nov 25, 2025, 12:08:54 PM (12 days ago) Nov 25
to VI-Suite
Dear Dr Southall,

It seems like camera clipping settings in Blender are not transferred correctly to Radiance, when using Preview and Image in the LiVi Simulation and LiVi Image Nodes. A fix that I tested on Blender 5.0 was to add `-va` and `-vo` parameters to the `rvu` command.

It might be worth integrating this into the master branch. However, if I simply used the tool incorrectly and there is already a better way to achieve this result without code changes, please let me know.

The lines I changed were:

**1. In `vi_operators.py`, Line 1259+:**

```python
            rvucmd = 'rvu -w {11} {12} {9} -n {0} -vv {1:.3f} -vh {2:.3f} -vd {3[0]:.3f} {3[1]:.3f} {3[2]:.3f} -vp {4[0]:.3f} {4[1]:.3f} {4[2]:.3f} -vo {13:.3f} -va {14:.3f} -vu {10[0]:.3f} {10[1]:.3f} {10[2]:.3f} {5} "{6}-{7}.oct"'.format(
                    svp["viparams"]["wnproc"],
                    vv,
                    cang,
                    vd,
                    cam.location,
                    self.simnode["rvuparams"],
                    svp["viparams"]["filebase"],
                    scene.frame_current,
                    "{}-{}.gpm".format(svp["viparams"]["filebase"], frame),
                    cpfileentry,
                    cam.matrix_world.to_quaternion() @ mathutils.Vector((0, 1, 0)),
                    ("", "-i")[self.simnode.illu],
                    gpfileentry,
                    cam.data.clip_start,
                    cam.data.clip_end
                )

        else:
            rvucmd = 'rvu -w {9} -n {0} -vv {1:.3f} -vh {2:.3f} -vd {3[0]:.3f} {3[1]:.3f} {3[2]:.3f} -vp {4[0]:.3f} {4[1]:.3f} {4[2]:.3f} -vo {10:.3f} -va {11:.3f} -vu {8[0]:.3f} {8[1]:.3f} {8[2]:.3f} {5} "{6}-{7}.oct"'.format(
                    svp["viparams"]["wnproc"],
                    vv,
                    cang,
                    vd,
                    cam.location,
                    self.simnode["rvuparams"],
                    svp["viparams"]["filebase"],
                    scene.frame_current,
                    cam.matrix_world.to_quaternion() @ mathutils.Vector((0, 1, 0)),
                    ("", "-i")[self.simnode.illu],
                    cam.data.clip_start,
                    cam.data.clip_end
                )
```

**2. In `vi_node.py` in class `No_Li_Im(Node, ViNodes)`, Line 1086+:**

```python
            self['viewparams'][sf]['-vo'] = '{:.3f}'.format(cam.data.clip_start)
            self['viewparams'][sf]['-va'] = '{:.3f}'.format(cam.data.clip_end)
```

The attached screenshot illustrates the result of this fix. The inside of the house is visible because the Camera Clip Start is set to 37.8m. Without these code changes, only the roof would be visible, as the clipping settings were not previously transferring from Blender to Radiance.

screenshot_blender_camera_clip.jpg

Let me know if you have any questions.

We have been using VI-Suite in our teaching at Biberach University of Applied Science to great effect—thank you very much for your hard work!

Regards
Pius Jung

VI-Suite

unread,
Dec 3, 2025, 6:15:54 AM (4 days ago) Dec 3
to VI-Suite
Oh, that's good.
I had forgotten rvu could do that, if I even ever knew. I might add that in future.
Cheers
Ryan

Reply all
Reply to author
Forward
0 new messages