mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 06:18:44 +08:00
3D Viewer Displays cameras' Chosen Names (#920)
3D viewer displays cameras' chosen names
This commit is contained in:
1 parent
28b86f8718
commit
c325e90a8e
1 file changed
+6
-2
@@ -617,8 +617,12 @@ export default function CameraPanel(props) {
|
|||||||
|
|
||||||
const labelDiv = document.createElement('div');
|
const labelDiv = document.createElement('div');
|
||||||
labelDiv.className = 'label';
|
labelDiv.className = 'label';
|
||||||
labelDiv.textContent = i;
|
labelDiv.textContent = camera.properties.get('NAME');
|
||||||
labelDiv.style.color = 'black';
|
labelDiv.style.color = 'black';
|
||||||
|
labelDiv.style.backgroundColor = "rgba(255, 255, 255, 0.61)";
|
||||||
|
labelDiv.style.backdropFilter = 'blur(5px)';
|
||||||
|
labelDiv.style.padding = '6px';
|
||||||
|
labelDiv.style.borderRadius = '6px';
|
||||||
labelDiv.style.visibility = 'visible';
|
labelDiv.style.visibility = 'visible';
|
||||||
const camera_label = new CSS2DObject(labelDiv);
|
const camera_label = new CSS2DObject(labelDiv);
|
||||||
camera_label.position.set(0, -0.1, -0.1);
|
camera_label.position.set(0, -0.1, -0.1);
|
||||||
@@ -636,7 +640,7 @@ export default function CameraPanel(props) {
|
|||||||
camera_helper,
|
camera_helper,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, [cameras, render_width, render_height]);
|
}, [cameras, cameraProperties, render_width, render_height]);
|
||||||
|
|
||||||
// update the camera curve
|
// update the camera curve
|
||||||
const curve_object = get_curve_object_from_cameras(
|
const curve_object = get_curve_object_from_cameras(
|
||||||
|
|||||||
Reference in new issue
Block a user