mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 10:34:29 +08:00
3D Viewer Displays cameras' Chosen Names (#920)
3D viewer displays cameras' chosen names
This commit is contained in:
parent
28b86f8718
commit
c325e90a8e
@ -617,8 +617,12 @@ export default function CameraPanel(props) {
|
||||
|
||||
const labelDiv = document.createElement('div');
|
||||
labelDiv.className = 'label';
|
||||
labelDiv.textContent = i;
|
||||
labelDiv.textContent = camera.properties.get('NAME');
|
||||
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';
|
||||
const camera_label = new CSS2DObject(labelDiv);
|
||||
camera_label.position.set(0, -0.1, -0.1);
|
||||
@ -636,7 +640,7 @@ export default function CameraPanel(props) {
|
||||
camera_helper,
|
||||
);
|
||||
}
|
||||
}, [cameras, render_width, render_height]);
|
||||
}, [cameras, cameraProperties, render_width, render_height]);
|
||||
|
||||
// update the camera curve
|
||||
const curve_object = get_curve_object_from_cameras(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user