Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Merge feat/stencil 9aa8f073: Sculpt > Alpha > Stencil, an image over the view that sculpt brushes and Vertex Paint work through (#155, @kenttumanda123-netizen)
islandmed5aaab3e73eb6
diff --cc CMakeLists.txtindex 02dd47a2,c060d2a1..b40275a3--- a/CMakeLists.txt+++ b/CMakeLists.txt@@@ -414,8 -414,8 +415,9 @@@ if(SCULPTFORGE_BUILD_APPsrc/app/PanelBrushGallery.cppsrc/app/PanelVertexPaint.cppsrc/app/LineGradient.cpp+ src/app/StencilOverlay.cppsrc/app/PanelPacks.cpp+ src/app/PanelBrushSets.cppsrc/app/MemoryConfirm.cppsrc/app/PanelPaintLayers.cppsrc/app/PanelTexture.cppdiff --cc src/app/I18nSimplifiedChinese.cppindex b1398cb3,c5ee1f0d..2c015710--- a/src/app/I18nSimplifiedChinese.cpp+++ b/src/app/I18nSimplifiedChinese.cpp@@@ -4214,35 -4208,53 +4214,82 @@@ constexpr Entry kSimplifiedChinese[] ="工作室模式"},{"Studio build for %s","%s 专用的工作室版本"},+ // Brush sets (#143)+ {"Brush set", "笔刷组"},+ {"Delete brush set", "删除笔刷组"},+ {"Delete this brush set. The brushes and the shelf stay as they are.", "删除这个笔刷组。笔刷和底部工具栏保持不变。"},+ {"Keep the bottom shelf's brushes and their keys as a named set (Wood, Metal, Stone...). Switch between sets in one step from the Brush palette's Brush set menu, the bottom shelf's right-click menu or here.", "将底部工具栏的笔刷及其快捷键保存为命名的笔刷组(金属、石头……)。可在笔刷面板的“笔刷组”菜单、底部工具栏的右键菜单或这里一步切换。"},+ {"Name, e.g. Wood, Metal or Stone", "名称,例如 金属、石头"},+ {"Named bottom shelves with their keys (Wood, Metal, Stone...): pick one to swap the shelf's brushes and their keys in one step. Save keeps the shelf as it is now, with its keys, as a set. Sets live in your brush library; F3 finds them too.", "命名的底部工具栏及其快捷键(金属、石头……):选一个即可一步替换工具栏上的笔刷和快捷键。“保存”会把当前的工具栏连同快捷键存成一组。笔刷组存放在你的笔刷库中;F3 也能找到它们。"},+ {"No brush sets yet", "还没有笔刷组"},+ {"Only the set goes: the brushes and the shelf stay as they are.", "只会删除这个组:笔刷和工具栏保持不变。"},+ {"Save Shelf as Brush Set", "将工具栏保存为笔刷组"},+ {"none yet", "尚无"},+ {"this shelf (not saved)", "当前的工具栏(未保存)"},+ {"%d brush", "%d 个笔刷"},+ {"%d brushes", "%d 个笔刷"},+ {"Save Brush Set", "保存笔刷组"},+ {"Delete Brush Set?", "删除笔刷组?"},+ {"The bottom shelf's %d brushes, in order, and their keys. Switching to the set later puts both back.", "底部工具栏的%d个笔刷(按顺序)及其快捷键。切换到此组时两者都会恢复。"},+ {"Replaces the set %s.", "将替换笔刷组 %s。"},+ {"Delete the brush set %s?", "删除笔刷组 %s?"},+ {"Switch the bottom shelf to this set's brushes and give them the set's keys.", "将底部工具栏换成这个组的笔刷,并应用这个组的快捷键。"},+ {"%d key", "%d 个快捷键"},+ {"%d keys", "%d 个快捷键"},+ {"Brush set: %s (%s, %s)", "笔刷组:%s(%s,%s)"},+ {"Brush set saved: %s (%s, %s)", "已保存笔刷组:%s(%s,%s)"},+ {"Brush set updated: %s (%s, %s)", "已更新笔刷组:%s(%s,%s)"},+ {"Brush set deleted: %s (the shelf stays as it is)", "已删除笔刷组:%s(工具栏保持不变)"},+ {"No brush set called %s", "没有名为 %s 的笔刷组"},+ {"No brush sets yet: Save Shelf as Brush Set makes one", "还没有笔刷组:“将工具栏保存为笔刷组”可创建一个"},+ {"A brush set's name must be 1 to 64 characters", "笔刷组名称须为 1 到 64 个字符"},+ // --- Alpha > Stencil (#155, StencilOverlay.cpp) ---+ {"Stencil",+ "模板"},+ {"Load Stencil...",+ "加载模板..."},+ {"Show Stencil",+ "显示模板"},+ {"Adjust Stencil",+ "调整模板"},+ {"Use alpha",+ "使用 Alpha"},+ {"Tile",+ "平铺"},+ {"Paint its colours",+ "绘制其颜色"},+ {"Hide while navigating",+ "导航时隐藏"},+ {"Reset placement",+ "重置位置"},+ {"Lay an image over the view and sculpt or paint through it: the sculpt brushes take its brightness (white = full effect), Vertex Paint its colours, only where it covers the model.",+ "在视图上放一张图片,透过它雕刻或绘制:雕刻笔刷取其亮度(白色 = 完整效果),顶点绘制取其颜色,只在它覆盖模型的地方。"},+ {"Hidden, the Stencil is off: the brushes work as if it weren't there.",+ "隐藏时模板关闭:笔刷如同没有它一样工作。"},+ {"Handles on the Stencil: drag inside it to move it, a corner to scale it, the round handle to turn it (Shift: 15 degree steps). Arrow keys move it, - and = scale it, comma and period turn it (Shift: finely). Enter or Esc goes back to sculpting.",+ "模板上的控制点:在内部拖动以移动,拖动角落以缩放,拖动圆形控制点以旋转(Shift:15 度一格)。方向键移动,- 和 = 缩放,逗号和句号旋转(Shift:微调)。Enter 或 Esc 回到雕刻。"},+ {"Make the brush's alpha (above, or one from the Library) the Stencil.",+ "将笔刷的 Alpha(上方的,或资源库中的)设为模板。"},+ {"Lay an image over the view, then sculpt or paint through it. Move it and repeat.",+ "在视图上放一张图片,然后透过它雕刻或绘制。移动它并重复。"},+ {"Take the Stencil off the view.",+ "从视图中移除模板。"},+ {"Use the image's negative: black works, white leaves the surface alone.",+ "使用图片的负片:黑色起作用,白色不改变表面。"},+ {"Repeat the image across the whole view, for skin, fabric and other patterns.",+ "在整个视图中重复图片,适用于皮肤、布料和其他图案。"},+ {"Vertex Paint lays the image's own colours. Off, its brightness masks the paint colour instead.",+ "顶点绘制使用图片本身的颜色。关闭时,其亮度遮罩绘制颜色。"},+ {"Fade the Stencil while the view turns, moves or zooms, so you can see the model under it.",+ "在视图旋转、移动或缩放时淡化模板,以便看到下方的模型。"},+ {"How strongly the Stencil shows. The brushes always take all of it.",+ "模板显示的强度。笔刷总是取用全部。"},+ {"The Stencil's height, in percent of the view's height.",+ "模板的高度,以视图高度的百分比表示。"},+ {"Turn the Stencil, in degrees counter-clockwise; Ctrl+click to type.",+ "旋转模板,以逆时针度数表示;Ctrl+点击以输入。"},+ {"Centre the Stencil again, upright, 80% of the view's height.",+ "将模板重新居中、摆正,高度为视图的 80%。"},};} // namespacediff --cc src/app/I18nSpanish.cppindex f8cf612c,ec3f895c..f3518888--- a/src/app/I18nSpanish.cpp+++ b/src/app/I18nSpanish.cpp@@@ -4688,35 -4680,53 +4688,82 @@@ constexpr Entry kSpanish[] ="Modo estudio"},{"Studio build for %s","Versión de estudio para %s"},+ // Brush sets (#143)+ {"Brush set", "Conjunto de pinceles"},+ {"Delete brush set", "Eliminar conjunto de pinceles"},+ {"Delete this brush set. The brushes and the shelf stay as they are.", "Elimina este conjunto de pinceles. Los pinceles y el estante quedan como están."},+ {"Keep the bottom shelf's brushes and their keys as a named set (Wood, Metal, Stone...). Switch between sets in one step from the Brush palette's Brush set menu, the bottom shelf's right-click menu or here.", "Guarda los pinceles del estante inferior y sus teclas como un conjunto con nombre (Madera, Metal, Piedra...). Cambia de conjunto en un paso desde el menú Conjunto de pinceles de la paleta Pincel, el menú del clic derecho del estante inferior o aquí."},+ {"Name, e.g. Wood, Metal or Stone", "Nombre, p. ej. Madera, Metal o Piedra"},+ {"Named bottom shelves with their keys (Wood, Metal, Stone...): pick one to swap the shelf's brushes and their keys in one step. Save keeps the shelf as it is now, with its keys, as a set. Sets live in your brush library; F3 finds them too.", "Estantes inferiores con nombre y sus teclas (Madera, Metal, Piedra...): elige uno para cambiar los pinceles del estante y sus teclas en un paso. Guardar conserva el estante tal como está, con sus teclas, como conjunto. Los conjuntos se guardan en tu biblioteca de pinceles; F3 también los encuentra."},+ {"No brush sets yet", "Aún no hay conjuntos de pinceles"},+ {"Only the set goes: the brushes and the shelf stay as they are.", "Solo se elimina el conjunto: los pinceles y el estante quedan como están."},+ {"Save Shelf as Brush Set", "Guardar estante como conjunto de pinceles"},+ {"none yet", "ninguno todavía"},+ {"this shelf (not saved)", "este estante (sin guardar)"},+ {"%d brush", "%d pincel"},+ {"%d brushes", "%d pinceles"},+ {"Save Brush Set", "Guardar conjunto de pinceles"},+ {"Delete Brush Set?", "¿Eliminar conjunto de pinceles?"},+ {"The bottom shelf's %d brushes, in order, and their keys. Switching to the set later puts both back.", "Los %d pinceles del estante inferior, en orden, y sus teclas. Al cambiar a este conjunto más tarde vuelven ambos."},+ {"Replaces the set %s.", "Reemplaza el conjunto %s."},+ {"Delete the brush set %s?", "¿Eliminar el conjunto de pinceles %s?"},+ {"Switch the bottom shelf to this set's brushes and give them the set's keys.", "Cambia el estante inferior a los pinceles de este conjunto y les da sus teclas."},+ {"%d key", "%d tecla"},+ {"%d keys", "%d teclas"},+ {"Brush set: %s (%s, %s)", "Conjunto de pinceles: %s (%s, %s)"},+ {"Brush set saved: %s (%s, %s)", "Conjunto de pinceles guardado: %s (%s, %s)"},+ {"Brush set updated: %s (%s, %s)", "Conjunto de pinceles actualizado: %s (%s, %s)"},+ {"Brush set deleted: %s (the shelf stays as it is)", "Conjunto de pinceles eliminado: %s (el estante queda como está)"},+ {"No brush set called %s", "No hay ningún conjunto de pinceles llamado %s"},+ {"No brush sets yet: Save Shelf as Brush Set makes one", "Aún no hay conjuntos de pinceles: Guardar estante como conjunto de pinceles crea uno"},+ {"A brush set's name must be 1 to 64 characters", "El nombre de un conjunto de pinceles debe tener de 1 a 64 caracteres"},+ // --- Alpha > Stencil (#155, StencilOverlay.cpp) ---+ {"Stencil",+ "Plantilla"},+ {"Load Stencil...",+ "Cargar plantilla..."},+ {"Show Stencil",+ "Mostrar plantilla"},+ {"Adjust Stencil",+ "Ajustar plantilla"},+ {"Use alpha",+ "Usar alpha"},+ {"Tile",+ "Repetir"},+ {"Paint its colours",+ "Pintar sus colores"},+ {"Hide while navigating",+ "Ocultar al navegar"},+ {"Reset placement",+ "Restablecer posición"},+ {"Lay an image over the view and sculpt or paint through it: the sculpt brushes take its brightness (white = full effect), Vertex Paint its colours, only where it covers the model.",+ "Pon una imagen sobre la vista y esculpe o pinta a través de ella: los pinceles de esculpir toman su brillo (blanco = efecto completo), Pintura de vértices sus colores, solo donde cubre el modelo."},+ {"Hidden, the Stencil is off: the brushes work as if it weren't there.",+ "Oculta, la plantilla está apagada: los pinceles trabajan como si no estuviera."},+ {"Handles on the Stencil: drag inside it to move it, a corner to scale it, the round handle to turn it (Shift: 15 degree steps). Arrow keys move it, - and = scale it, comma and period turn it (Shift: finely). Enter or Esc goes back to sculpting.",+ "Tiradores en la plantilla: arrastra dentro para moverla, una esquina para escalarla, el tirador redondo para girarla (Shift: pasos de 15 grados). Las flechas la mueven, - y = la escalan, coma y punto la giran (Shift: con precisión). Enter o Esc vuelve a esculpir."},+ {"Make the brush's alpha (above, or one from the Library) the Stencil.",+ "Usa el alpha del pincel (arriba, o uno de la Biblioteca) como plantilla."},+ {"Lay an image over the view, then sculpt or paint through it. Move it and repeat.",+ "Pon una imagen sobre la vista y esculpe o pinta a través de ella. Muévela y repite."},+ {"Take the Stencil off the view.",+ "Quita la plantilla de la vista."},+ {"Use the image's negative: black works, white leaves the surface alone.",+ "Usa el negativo de la imagen: el negro trabaja, el blanco deja la superficie como está."},+ {"Repeat the image across the whole view, for skin, fabric and other patterns.",+ "Repite la imagen por toda la vista, para piel, tela y otros patrones."},+ {"Vertex Paint lays the image's own colours. Off, its brightness masks the paint colour instead.",+ "Pintura de vértices pone los colores de la imagen. Desactivado, su brillo enmascara el color de pintura."},+ {"Fade the Stencil while the view turns, moves or zooms, so you can see the model under it.",+ "Atenúa la plantilla mientras la vista gira, se mueve o hace zoom, para ver el modelo debajo."},+ {"How strongly the Stencil shows. The brushes always take all of it.",+ "Cuánto se ve la plantilla. Los pinceles siempre la toman entera."},+ {"The Stencil's height, in percent of the view's height.",+ "La altura de la plantilla, en porcentaje de la altura de la vista."},+ {"Turn the Stencil, in degrees counter-clockwise; Ctrl+click to type.",+ "Gira la plantilla, en grados en sentido antihorario; Ctrl+clic para escribir."},+ {"Centre the Stencil again, upright, 80% of the view's height.",+ "Centra la plantilla de nuevo, derecha, al 80% de la altura de la vista."},};} // namespacediff --cc src/app/I18nTraditionalChinese.cppindex 213fa2ea,fb71513e..0a473df5--- a/src/app/I18nTraditionalChinese.cpp+++ b/src/app/I18nTraditionalChinese.cpp@@@ -4212,35 -4206,53 +4212,82 @@@ constexpr Entry kTraditionalChinese[]"工作室模式"},{"Studio build for %s","%s 專用的工作室版本"},+ // Brush sets (#143)+ {"Brush set", "筆刷組"},+ {"Delete brush set", "刪除筆刷組"},+ {"Delete this brush set. The brushes and the shelf stay as they are.", "刪除這個筆刷組。筆刷和底部工具列保持不變。"},+ {"Keep the bottom shelf's brushes and their keys as a named set (Wood, Metal, Stone...). Switch between sets in one step from the Brush palette's Brush set menu, the bottom shelf's right-click menu or here.", "將底部工具列的筆刷及其快速鍵儲存為具名的筆刷組(金屬、石頭……)。可在筆刷調色盤的「筆刷組」選單、底部工具列的右鍵選單或這裡一步切換。"},+ {"Name, e.g. Wood, Metal or Stone", "名稱,例如 金屬、石頭"},+ {"Named bottom shelves with their keys (Wood, Metal, Stone...): pick one to swap the shelf's brushes and their keys in one step. Save keeps the shelf as it is now, with its keys, as a set. Sets live in your brush library; F3 finds them too.", "具名的底部工具列及其快速鍵(金屬、石頭……):選一個即可一步替換工具列上的筆刷和快速鍵。「儲存」會把目前的工具列連同快速鍵存成一組。筆刷組存放在你的筆刷庫中;F3 也能找到它們。"},+ {"No brush sets yet", "還沒有筆刷組"},+ {"Only the set goes: the brushes and the shelf stay as they are.", "只會刪除這個組:筆刷和工具列保持不變。"},+ {"Save Shelf as Brush Set", "將工具列儲存為筆刷組"},+ {"none yet", "尚無"},+ {"this shelf (not saved)", "目前的工具列(未儲存)"},+ {"%d brush", "%d 個筆刷"},+ {"%d brushes", "%d 個筆刷"},+ {"Save Brush Set", "儲存筆刷組"},+ {"Delete Brush Set?", "刪除筆刷組?"},+ {"The bottom shelf's %d brushes, in order, and their keys. Switching to the set later puts both back.", "底部工具列的%d個筆刷(依順序)及其快速鍵。切換到此組時兩者都會恢復。"},+ {"Replaces the set %s.", "將取代筆刷組 %s。"},+ {"Delete the brush set %s?", "刪除筆刷組 %s?"},+ {"Switch the bottom shelf to this set's brushes and give them the set's keys.", "將底部工具列換成這個組的筆刷,並套用這個組的快速鍵。"},+ {"%d key", "%d 個快速鍵"},+ {"%d keys", "%d 個快速鍵"},+ {"Brush set: %s (%s, %s)", "筆刷組:%s(%s,%s)"},+ {"Brush set saved: %s (%s, %s)", "已儲存筆刷組:%s(%s,%s)"},+ {"Brush set updated: %s (%s, %s)", "已更新筆刷組:%s(%s,%s)"},+ {"Brush set deleted: %s (the shelf stays as it is)", "已刪除筆刷組:%s(工具列保持不變)"},+ {"No brush set called %s", "沒有名為 %s 的筆刷組"},+ {"No brush sets yet: Save Shelf as Brush Set makes one", "還沒有筆刷組:「將工具列儲存為筆刷組」可建立一個"},+ {"A brush set's name must be 1 to 64 characters", "筆刷組名稱須為 1 到 64 個字元"},+ // --- Alpha > Stencil (#155, StencilOverlay.cpp) ---+ {"Stencil",+ "模板"},+ {"Load Stencil...",+ "載入模板..."},+ {"Show Stencil",+ "顯示模板"},+ {"Adjust Stencil",+ "調整模板"},+ {"Use alpha",+ "使用 Alpha"},+ {"Tile",+ "平鋪"},+ {"Paint its colours",+ "繪製其顏色"},+ {"Hide while navigating",+ "導覽時隱藏"},+ {"Reset placement",+ "重設位置"},+ {"Lay an image over the view and sculpt or paint through it: the sculpt brushes take its brightness (white = full effect), Vertex Paint its colours, only where it covers the model.",+ "在視圖上放一張圖片,透過它雕刻或繪製:雕刻筆刷取其亮度(白色 = 完整效果),頂點繪製取其顏色,只在它覆蓋模型的地方。"},+ {"Hidden, the Stencil is off: the brushes work as if it weren't there.",+ "隱藏時模板關閉:筆刷如同沒有它一樣工作。"},+ {"Handles on the Stencil: drag inside it to move it, a corner to scale it, the round handle to turn it (Shift: 15 degree steps). Arrow keys move it, - and = scale it, comma and period turn it (Shift: finely). Enter or Esc goes back to sculpting.",+ "模板上的控制點:在內部拖曳以移動,拖曳角落以縮放,拖曳圓形控制點以旋轉(Shift:15 度一格)。方向鍵移動,- 和 = 縮放,逗號和句號旋轉(Shift:微調)。Enter 或 Esc 回到雕刻。"},+ {"Make the brush's alpha (above, or one from the Library) the Stencil.",+ "將筆刷的 Alpha(上方的,或資源庫中的)設為模板。"},+ {"Lay an image over the view, then sculpt or paint through it. Move it and repeat.",+ "在視圖上放一張圖片,然後透過它雕刻或繪製。移動它並重複。"},+ {"Take the Stencil off the view.",+ "從視圖中移除模板。"},+ {"Use the image's negative: black works, white leaves the surface alone.",+ "使用圖片的負片:黑色起作用,白色不改變表面。"},+ {"Repeat the image across the whole view, for skin, fabric and other patterns.",+ "在整個視圖中重複圖片,適用於皮膚、布料和其他圖案。"},+ {"Vertex Paint lays the image's own colours. Off, its brightness masks the paint colour instead.",+ "頂點繪製使用圖片本身的顏色。關閉時,其亮度遮罩繪製顏色。"},+ {"Fade the Stencil while the view turns, moves or zooms, so you can see the model under it.",+ "在視圖旋轉、移動或縮放時淡化模板,以便看到下方的模型。"},+ {"How strongly the Stencil shows. The brushes always take all of it.",+ "模板顯示的強度。筆刷總是取用全部。"},+ {"The Stencil's height, in percent of the view's height.",+ "模板的高度,以視圖高度的百分比表示。"},+ {"Turn the Stencil, in degrees counter-clockwise; Ctrl+click to type.",+ "旋轉模板,以逆時針度數表示;Ctrl+點擊以輸入。"},+ {"Centre the Stencil again, upright, 80% of the view's height.",+ "將模板重新置中、擺正,高度為視圖的 80%。"},};} // namespace