Texturing edits

This commit is contained in:
Richard Milewski
2025-06-23 13:25:12 -07:00
parent fd82d27a18
commit bc88f7c7d8
3 changed files with 6 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

BIN
images/globe_animation.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@@ -3695,7 +3695,12 @@ function associate_vertices(polygons, split, curpoly=0) =
// up(7)fwd(-3)right(15)cyl(d=10,h=15,texture=vnf_triangulate(tex), tex_reps=[4,2],tex_samples=5,rounding=2); // up(7)fwd(-3)right(15)cyl(d=10,h=15,texture=vnf_triangulate(tex), tex_reps=[4,2],tex_samples=5,rounding=2);
// //
// Subsection: Textures from Graphic Images // Subsection: Textures from Graphic Images
// In additional to creating textured surfaces, the texturing feature of BOSL2 can be used to place relief images onto objects,
// using a single repetition of a very large texture array. In order to do this, you'll need a way to import your image into OpenSCAD.
//.
// The BOSL2 scripts folder contains three scripts for creating texture arrays from graphic images. // The BOSL2 scripts folder contains three scripts for creating texture arrays from graphic images.
// Right-click the links below to download the scripts to your local system. Run the python scripts from the command line,
// and use the **File** menu of your browser to open img2scad.html.
// . // .
// - [**img2scad.py**](https://raw.githubusercontent.com/BelfrySCAD/BOSL2/master/scripts/img2scad.py) // - [**img2scad.py**](https://raw.githubusercontent.com/BelfrySCAD/BOSL2/master/scripts/img2scad.py)
// is a python script that creates a texture array from most common raster image formats, including gif, png, jpeg. // is a python script that creates a texture array from most common raster image formats, including gif, png, jpeg.
@@ -3706,7 +3711,7 @@ function associate_vertices(polygons, split, curpoly=0) =
// - [**geotiff2scad.py**](https://raw.githubusercontent.com/BelfrySCAD/BOSL2/master/scripts/geotiff2scad.py) // - [**geotiff2scad.py**](https://raw.githubusercontent.com/BelfrySCAD/BOSL2/master/scripts/geotiff2scad.py)
// is a python script creates a texture array from geotiff depth maps. // is a python script creates a texture array from geotiff depth maps.
// . // .
// Each of these scripts places a named array in an .scad file with names specified at run time. Use include<> to add the array to your model. // Each of these scripts places a named array in an .scad file with names specified at run time. Use include<> to add the array to your model.
// . // .
// Both **img2scad.py** and **img2scad.html** provide similar capabilities, but the html script has a few additional capabilities // Both **img2scad.py** and **img2scad.html** provide similar capabilities, but the html script has a few additional capabilities
// and it provides a graphical user interface.. // and it provides a graphical user interface..