From 8c7c0d21c3032b18b4360fa17aa869c37766f483 Mon Sep 17 00:00:00 2001 From: Richard Milewski Date: Thu, 19 Jun 2025 16:21:24 -0700 Subject: [PATCH] Textures from Graphic Images 1 --- skin.scad | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/skin.scad b/skin.scad index 4886971c..30844afd 100644 --- a/skin.scad +++ b/skin.scad @@ -3627,6 +3627,14 @@ function associate_vertices(polygons, split, curpoly=0) = // tex = texture("bricks_vnf"); // cyl(d=10,h=15,texture=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 +// The BOSL2 scripts folder contains three scripts for creating texture arrays from graphic images. +// **img2scad.py is a python script that creates a texture array from most common raster image formats, including gif, png, jpeg. +// **img2scad.html** contains a javascript creates a texture array from any image your browser can render. +// **geotiff2scad.py** is a python script creates a texture array from geotiff depth maps. +// . +// All three of these scripts place a named array in an .scad file with names specified at run time. These files should be included in your model. +// // Function: texture()