Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions assets/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"account.storage_unavailable": "Storage unavailable",
"account.the_server_did_not_sign_out": "The server did not sign out.",
"account.use_https_or_http_on_localhost_for_development": "Use HTTPS, or HTTP on localhost for development.",
"app.show_or_hide_the_printer_or_tool_volume": "Show or hide the reference volume",
"app.the_model_is_outside_the_printer_or_tool_volume": "The model extends beyond the reference volume.",
"agent_link.activity.batch": "Applying a batch of changes",
"agent_link.activity.checking": "Checking the model",
"agent_link.activity.creating": "Creating geometry",
Expand Down Expand Up @@ -1350,6 +1352,7 @@
"realtime.websocket_disconnected_2": "WebSocket disconnected: {e}",
"realtime.websocket_host_missing": "WebSocket host missing",
"realtime.websocket_unavailable": "WebSocket unavailable",
"reference_volume.show": "Show reference volume",
"release_notes.format": "•",
"release_notes.latest": " · Latest",
"release_notes.newer": "Newer",
Expand Down Expand Up @@ -1472,6 +1475,12 @@
"router.suspended": "Routing on edge #{id} suspended: {error}",
"router.width": "Width",
"section_gizmo.drag_section_along_its_axis_esc_to_cancel": "Drag section {} along its axis · Esc to cancel. When viewed along the axis, drag up/down.",
"settings.printer_and_tool_volume": "Reference volume",
"settings.a_locked_reference_box_for_a_printer_s_build": "A fixed reference box for checking whether objects fit within a chosen space.",
"settings.width_x": "Width (X)",
"settings.depth_y": "Depth (Y)",
"settings.height_z": "Height (Z)",
"settings.clear_the_toggle_shortcut": "Clear the reference volume shortcut.",
"settings.adjust_mouse_and_trackpad_navigation_sensitivity": "Adjust mouse and trackpad navigation sensitivity.",
"settings.automatically_group_new_shapes": "Automatically group new shapes",
"settings.automatically_size_grid_when_zooming": "Automatically size grid when zooming",
Expand Down Expand Up @@ -1519,6 +1528,7 @@
"settings.snap_to_grid": "Snap to grid",
"settings.spacing_controls_both_grid_lines_and_grid_snapping": "Spacing controls both grid lines and grid snapping. Every fifth line is emphasized.",
"settings.system": "System",
"settings.toggle_reference_volume": "Toggle reference volume",
"settings.tool": "Tool",
"settings.tools": "Tools",
"settings.tools_for_checking_performance_and_troubleshooting": "Tools for checking performance and troubleshooting.",
Expand Down
10 changes: 10 additions & 0 deletions assets/i18n/es_419.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"account.storage_unavailable": "Almacenamiento no disponible",
"account.the_server_did_not_sign_out": "El servidor no cerró la sesión.",
"account.use_https_or_http_on_localhost_for_development": "Usa HTTPS, o HTTP en localhost para desarrollo.",
"app.show_or_hide_the_printer_or_tool_volume": "Mostrar u ocultar el volumen de referencia",
"app.the_model_is_outside_the_printer_or_tool_volume": "El modelo se extiende más allá del volumen de referencia.",
"agent_link.activity.batch": "Aplicando un lote de cambios",
"agent_link.activity.checking": "Revisando el modelo",
"agent_link.activity.creating": "Creando geometría",
Expand Down Expand Up @@ -1345,6 +1347,7 @@
"realtime.websocket_disconnected_2": "WebSocket desconectado: {e}",
"realtime.websocket_host_missing": "Falta el host de WebSocket",
"realtime.websocket_unavailable": "WebSocket no disponible",
"reference_volume.show": "Mostrar volumen de referencia",
"release_notes.format": "•",
"release_notes.latest": " · Última",
"release_notes.newer": "Más recientes",
Expand Down Expand Up @@ -1467,6 +1470,12 @@
"router.suspended": "Fresado de la arista #{id} suspendido: {error}",
"router.width": "Ancho",
"section_gizmo.drag_section_along_its_axis_esc_to_cancel": "Arrastra la sección {} a lo largo de su eje · Esc para cancelar. Si se ve a lo largo del eje, arrastra hacia arriba/abajo.",
"settings.printer_and_tool_volume": "Volumen de referencia",
"settings.a_locked_reference_box_for_a_printer_s_build": "Una caja de referencia fija para comprobar si los objetos caben en un espacio definido.",
"settings.width_x": "Ancho (X)",
"settings.depth_y": "Profundidad (Y)",
"settings.height_z": "Altura (Z)",
"settings.clear_the_toggle_shortcut": "Borrar el atajo de volumen de referencia.",
"settings.adjust_mouse_and_trackpad_navigation_sensitivity": "Ajusta la sensibilidad de la navegación con el mouse y el trackpad.",
"settings.automatically_group_new_shapes": "Agrupar automáticamente las formas nuevas",
"settings.automatically_size_grid_when_zooming": "Ajustar automáticamente el tamaño de la cuadrícula al hacer zoom",
Expand Down Expand Up @@ -1514,6 +1523,7 @@
"settings.snap_to_grid": "Ajustar a la cuadrícula",
"settings.spacing_controls_both_grid_lines_and_grid_snapping": "El espaciado controla tanto las líneas de la cuadrícula como el ajuste a la cuadrícula. Cada quinta línea aparece resaltada.",
"settings.system": "Sistema",
"settings.toggle_reference_volume": "Alternar volumen de referencia",
"settings.tool": "Herramienta",
"settings.tools": "Herramientas",
"settings.tools_for_checking_performance_and_troubleshooting": "Herramientas para comprobar el rendimiento y solucionar problemas.",
Expand Down
10 changes: 10 additions & 0 deletions assets/i18n/it_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"account.storage_unavailable": "Archiviazione non disponibile",
"account.the_server_did_not_sign_out": "Il server non ha effettuato la disconnessione.",
"account.use_https_or_http_on_localhost_for_development": "Usa HTTPS, oppure HTTP su localhost per lo sviluppo.",
"app.show_or_hide_the_printer_or_tool_volume": "Mostra o nascondi il volume di riferimento",
"app.the_model_is_outside_the_printer_or_tool_volume": "Il modello si estende oltre il volume di riferimento.",
"agent_link.activity.batch": "Applicazione di un gruppo di modifiche",
"agent_link.activity.checking": "Verifica del modello",
"agent_link.activity.creating": "Creazione della geometria",
Expand Down Expand Up @@ -1350,6 +1352,7 @@
"realtime.websocket_disconnected_2": "WebSocket disconnesso: {e}",
"realtime.websocket_host_missing": "Host WebSocket mancante",
"realtime.websocket_unavailable": "WebSocket non disponibile",
"reference_volume.show": "Mostra volume di riferimento",
"release_notes.format": "•",
"release_notes.latest": " · Ultima",
"release_notes.newer": "Più recenti",
Expand Down Expand Up @@ -1472,6 +1475,12 @@
"router.suspended": "Fresatura sullo spigolo #{id} sospesa: {error}",
"router.width": "Larghezza",
"section_gizmo.drag_section_along_its_axis_esc_to_cancel": "Trascina la sezione {} lungo il suo asse · Esc per annullare. Se visto lungo l'asse, trascina su/giù.",
"settings.printer_and_tool_volume": "Volume di riferimento",
"settings.a_locked_reference_box_for_a_printer_s_build": "Un riquadro di riferimento fisso per verificare se gli oggetti rientrano in uno spazio definito.",
"settings.width_x": "Larghezza (X)",
"settings.depth_y": "Profondità (Y)",
"settings.height_z": "Altezza (Z)",
"settings.clear_the_toggle_shortcut": "Cancella la scorciatoia del volume di riferimento.",
"settings.adjust_mouse_and_trackpad_navigation_sensitivity": "Regola la sensibilità di navigazione di mouse e trackpad.",
"settings.automatically_group_new_shapes": "Raggruppa automaticamente le nuove forme",
"settings.automatically_size_grid_when_zooming": "Ridimensiona automaticamente la griglia con lo zoom",
Expand Down Expand Up @@ -1519,6 +1528,7 @@
"settings.snap_to_grid": "Aggancia alla griglia",
"settings.spacing_controls_both_grid_lines_and_grid_snapping": "La spaziatura controlla sia le linee della griglia sia l'aggancio. Ogni quinta linea è evidenziata.",
"settings.system": "Sistema",
"settings.toggle_reference_volume": "Attiva/disattiva volume di riferimento",
"settings.tool": "Strumento",
"settings.tools": "Strumenti",
"settings.tools_for_checking_performance_and_troubleshooting": "Strumenti per controllare le prestazioni e risolvere i problemi.",
Expand Down
10 changes: 10 additions & 0 deletions assets/i18n/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"account.storage_unavailable": "Armazenamento indisponível",
"account.the_server_did_not_sign_out": "O servidor não encerrou a sessão.",
"account.use_https_or_http_on_localhost_for_development": "Use HTTPS, ou HTTP no localhost para desenvolvimento.",
"app.show_or_hide_the_printer_or_tool_volume": "Mostrar ou ocultar o volume de referência",
"app.the_model_is_outside_the_printer_or_tool_volume": "O modelo ultrapassa o volume de referência.",
"agent_link.activity.batch": "Aplicando um lote de alterações",
"agent_link.activity.checking": "Verificando o modelo",
"agent_link.activity.creating": "Criando geometria",
Expand Down Expand Up @@ -1348,6 +1350,7 @@
"realtime.websocket_disconnected_2": "WebSocket desconectado: {e}",
"realtime.websocket_host_missing": "Host do WebSocket ausente",
"realtime.websocket_unavailable": "WebSocket indisponível",
"reference_volume.show": "Mostrar volume de referência",
"release_notes.format": "•",
"release_notes.latest": " · Mais recente",
"release_notes.newer": "Mais nova",
Expand Down Expand Up @@ -1470,6 +1473,12 @@
"router.suspended": "Tupia na aresta #{id} suspensa: {error}",
"router.width": "Largura",
"section_gizmo.drag_section_along_its_axis_esc_to_cancel": "Arraste a seção {} ao longo do eixo · Esc para cancelar. Quando visto ao longo do eixo, arraste para cima/baixo.",
"settings.printer_and_tool_volume": "Volume de referência",
"settings.a_locked_reference_box_for_a_printer_s_build": "Uma caixa de referência fixa para verificar se os objetos cabem em um espaço definido.",
"settings.width_x": "Largura (X)",
"settings.depth_y": "Profundidade (Y)",
"settings.height_z": "Altura (Z)",
"settings.clear_the_toggle_shortcut": "Limpar o atalho do volume de referência.",
"settings.adjust_mouse_and_trackpad_navigation_sensitivity": "Ajuste a sensibilidade de navegação do mouse e do trackpad.",
"settings.automatically_group_new_shapes": "Agrupar novas formas automaticamente",
"settings.automatically_size_grid_when_zooming": "Ajustar o tamanho da grade automaticamente ao dar zoom",
Expand Down Expand Up @@ -1517,6 +1526,7 @@
"settings.snap_to_grid": "Encaixar na grade",
"settings.spacing_controls_both_grid_lines_and_grid_snapping": "O espaçamento controla as linhas da grade e o encaixe automático na grade. A cada cinco linhas, uma é destacada.",
"settings.system": "Sistema",
"settings.toggle_reference_volume": "Alternar volume de referência",
"settings.tool": "Ferramenta",
"settings.tools": "Ferramentas",
"settings.tools_for_checking_performance_and_troubleshooting": "Ferramentas para verificar o desempenho e solucionar problemas.",
Expand Down
10 changes: 10 additions & 0 deletions assets/i18n/vi_VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"account.storage_unavailable": "Không có bộ nhớ",
"account.the_server_did_not_sign_out": "Máy chủ không đăng xuất.",
"account.use_https_or_http_on_localhost_for_development": "Sử dụng HTTPS hoặc HTTP trên localhost để phát triển.",
"app.show_or_hide_the_printer_or_tool_volume": "Hiện hoặc ẩn khối tham chiếu",
"app.the_model_is_outside_the_printer_or_tool_volume": "Mô hình vượt ra ngoài khối tham chiếu.",
"agent_link.activity.batch": "Đang áp dụng một loạt thay đổi",
"agent_link.activity.checking": "Đang kiểm tra mô hình",
"agent_link.activity.creating": "Đang tạo hình học",
Expand Down Expand Up @@ -1345,6 +1347,7 @@
"realtime.websocket_disconnected_2": "WebSocket đã bị ngắt kết nối: {e}",
"realtime.websocket_host_missing": "WebSocket",
"realtime.websocket_unavailable": "WebSocket không có sẵn",
"reference_volume.show": "Hiện khối tham chiếu",
"release_notes.format": "•",
"release_notes.latest": " · Mới nhất",
"release_notes.newer": "Mới hơn",
Expand Down Expand Up @@ -1467,6 +1470,12 @@
"router.suspended": "Định tuyến trên cạnh #{id} bị tạm dừng: {error}",
"router.width": "Chiều rộng",
"section_gizmo.drag_section_along_its_axis_esc_to_cancel": "Kéo mặt cắt {} dọc theo trục · Esc để hủy. Khi nhìn dọc theo trục, hãy kéo lên/xuống.",
"settings.printer_and_tool_volume": "Khối tham chiếu",
"settings.a_locked_reference_box_for_a_printer_s_build": "Một khung tham chiếu cố định để kiểm tra xem đối tượng có vừa trong không gian đã chọn hay không.",
"settings.width_x": "Chiều rộng (X)",
"settings.depth_y": "Chiều sâu (Y)",
"settings.height_z": "Chiều cao (Z)",
"settings.clear_the_toggle_shortcut": "Xóa phím tắt của khối tham chiếu.",
"settings.adjust_mouse_and_trackpad_navigation_sensitivity": "Điều chỉnh độ nhạy điều hướng bằng chuột và bàn di chuột.",
"settings.automatically_group_new_shapes": "Tự động nhóm các hình mới",
"settings.automatically_size_grid_when_zooming": "Tự điều chỉnh kích thước lưới khi thu phóng",
Expand Down Expand Up @@ -1514,6 +1523,7 @@
"settings.snap_to_grid": "Bắt theo lưới",
"settings.spacing_controls_both_grid_lines_and_grid_snapping": "Khoảng cách điều khiển cả đường lưới và thao tác bắt lưới. Mỗi đường thứ năm được làm nổi bật.",
"settings.system": "Hệ thống",
"settings.toggle_reference_volume": "Bật/tắt khối tham chiếu",
"settings.tool": "Công cụ",
"settings.tools": "Công cụ",
"settings.tools_for_checking_performance_and_troubleshooting": "Công cụ kiểm tra hiệu năng và khắc phục sự cố.",
Expand Down
10 changes: 10 additions & 0 deletions assets/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"account.storage_unavailable": "存储不可用",
"account.the_server_did_not_sign_out": "服务器未执行退出登录。",
"account.use_https_or_http_on_localhost_for_development": "开发时请使用 HTTPS,或在 localhost 上使用 HTTP。",
"app.show_or_hide_the_printer_or_tool_volume": "显示或隐藏参考空间",
"app.the_model_is_outside_the_printer_or_tool_volume": "模型超出了参考空间。",
"agent_link.activity.batch": "正在批量应用更改",
"agent_link.activity.checking": "正在检查模型",
"agent_link.activity.creating": "正在创建几何体",
Expand Down Expand Up @@ -1350,6 +1352,7 @@
"realtime.websocket_disconnected_2": "WebSocket 已断开:{e}",
"realtime.websocket_host_missing": "缺少 WebSocket 主机",
"realtime.websocket_unavailable": "WebSocket 不可用",
"reference_volume.show": "显示参考空间",
"release_notes.format": "•",
"release_notes.latest": " · 最新",
"release_notes.newer": "较新",
Expand Down Expand Up @@ -1472,6 +1475,12 @@
"router.suspended": "在边 #{id} 上的铣削操作已暂停:{error}",
"router.width": "宽度",
"section_gizmo.drag_section_along_its_axis_esc_to_cancel": "沿其轴拖动剖切面 {} · 按 Esc 取消。沿轴方向观察时,请上下拖动。",
"settings.printer_and_tool_volume": "参考空间",
"settings.a_locked_reference_box_for_a_printer_s_build": "用于检查对象是否适合指定空间的固定参考框。",
"settings.width_x": "宽度 (X)",
"settings.depth_y": "深度 (Y)",
"settings.height_z": "高度 (Z)",
"settings.clear_the_toggle_shortcut": "清除参考空间快捷键。",
"settings.adjust_mouse_and_trackpad_navigation_sensitivity": "调整鼠标和触控板的导航灵敏度。",
"settings.automatically_group_new_shapes": "自动为新形状分组",
"settings.automatically_size_grid_when_zooming": "缩放时自动调整网格尺寸",
Expand Down Expand Up @@ -1519,6 +1528,7 @@
"settings.snap_to_grid": "捕捉到网格",
"settings.spacing_controls_both_grid_lines_and_grid_snapping": "间距同时控制网格线和网格捕捉。每第五条线会加粗显示。",
"settings.system": "系统",
"settings.toggle_reference_volume": "切换参考空间",
"settings.tool": "工具",
"settings.tools": "工具",
"settings.tools_for_checking_performance_and_troubleshooting": "用于检查性能和排查问题的工具。",
Expand Down
19 changes: 13 additions & 6 deletions crates/benchup-app/src/agent_effects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,14 @@ impl Drop for Draw {
}
struct TargetSrgb(bool);

// Precision renderer packets share their retained geometry across animation
// frames. Each pane owns its uniform, so split views cannot overwrite cameras.
// Precision renderer packets share retained geometry across animation and
// volume-bound changes. Each pane owns its uniform and projection.
#[repr(C)]
#[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)]
struct ProjectedUniform {
parameters: [f32; 4],
size: [f32; 4],
volume: reference_volume::Parameters,
}
pub(super) struct Projected {
uniform: ProjectedUniform,
Expand All @@ -632,6 +633,7 @@ struct ProjectedPipelines {
edges: wgpu::RenderPipeline,
empty: wgpu::TextureView,
sampler: wgpu::Sampler,
srgb: bool,
}
pub(super) fn projected_layout(device: &wgpu::Device) -> wgpu::BindGroupLayout {
device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -712,11 +714,13 @@ pub(super) fn install_projected(
edges: pipeline(PipelinePass::Edges),
empty,
sampler: device.create_sampler(&Default::default()),
srgb: format.is_srgb(),
});
}
impl Projected {
pub(super) fn new(frame: &Frame, camera: &Camera, rect: Rect) -> Option<Self> {
frame.animated().then(|| Self {
pub(super) fn new(frame: &Frame, camera: &Camera, rect: Rect,
volume: Option<(DVec3, DVec3)>, projection: (glam::DMat4, [f32; 4])) -> Option<Self> {
(frame.animated() || volume.is_some()).then(|| Self {
uniform: ProjectedUniform {
parameters: frame.parameters(camera, rect),
size: [
Expand All @@ -725,6 +729,7 @@ impl Projected {
if frame.starts.is_empty() { 0. } else { 1. },
0.,
],
volume: reference_volume::Parameters::new(volume, projection),
},
gpu: OnceLock::new(),
})
Expand All @@ -737,9 +742,11 @@ impl Projected {
) {
if let Some(pipelines) = resources.get::<ProjectedPipelines>() {
self.gpu.get_or_init(|| {
let mut uniform = self.uniform;
uniform.size[3] = if pipelines.srgb { 1. } else { 0. };
let buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
label: Some("Agent precision scene animation"),
contents: bytemuck::bytes_of(&self.uniform),
label: Some("Precision scene effects"),
contents: bytemuck::bytes_of(&uniform),
usage: wgpu::BufferUsages::UNIFORM,
});
let view = scene
Expand Down
Loading
Loading