discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Adding UV mapping...

WT
Wim ten Brink
Tue, Jan 12, 2021 2:19 PM

I created the script called text.scad and it works great!  Text.scad
http://forum.openscad.org/file/t1375/Text.scad
I can call it from the commandline using: openscad.com" -o Wim.stl -D
"phase=3" -D "Text="Wim ten Brink"" "text.scad"
And depending on the phase it will generate an stl file with the text in a
reasonable round way (or flat, if phase==5) and I can use this to do a lot
of automated text generation. Which I want to have.
Yes, it can be improved but for now it works...
...
But my problem is that I have dozens of short texts and I want each text in
all 5 styles and with a basic white JPG file as texture. (Basically just
simple planar mapping of a white square.) And ideally I want them as .obj
files, not .stl files...
So I need to further automate my build process and give them a texture, at
least. Now, I can apply simple textures using some tools, but how do I
automate it as best as possible? Can I tell OpenSCAD to include the UV
texture mapping and related texture in some easy way?


With kind regards,
Wim,
W.A. ten Brink

Sent from: http://forum.openscad.org/

I created the script called text.scad and it works great! Text.scad <http://forum.openscad.org/file/t1375/Text.scad> I can call it from the commandline using: openscad.com" -o Wim.stl -D "phase=3" -D "Text=\"Wim ten Brink\"" "text.scad" And depending on the phase it will generate an stl file with the text in a reasonable round way (or flat, if phase==5) and I can use this to do a lot of automated text generation. Which I want to have. Yes, it can be improved but for now it works... ... But my problem is that I have dozens of short texts and I want each text in all 5 styles and with a basic white JPG file as texture. (Basically just simple planar mapping of a white square.) And ideally I want them as .obj files, not .stl files... So I need to further automate my build process and give them a texture, at least. Now, I can apply simple textures using some tools, but how do I automate it as best as possible? Can I tell OpenSCAD to include the UV texture mapping and related texture in some easy way? ----- With kind regards, Wim, W.A. ten Brink -- Sent from: http://forum.openscad.org/