r/OpenPythonSCAD • • Jul 02 '25

Texture function?

There was a "Texture" function where a pixel image was wrapped around an object --- how usable is that? Could it be used to either make a different appearance for previewing? (say to make a part look as if it was made of brass?) or to apply an actual physical texture for manufacture (say fake woodgrain).

Has anyone given any thought to working up a technique to impart a different appearance for previewing? (my current project is brass and bamboo and Richlite, so achieving something like to the appearance of those materials would be awesome)

A quick search of the Tutorial area comes up empty and it's not on the Examples page....

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/gadget3D Jul 02 '25

I wished, my baby was a slicer. Slicers are not bound to the requirement to create manifold data. they just create slices and they can easily be offset with some bitmap patterns.

On the other hand: slicers dont have the ability to create per-face textures.

If you have a concise understanding, how to add textures to a solids in a manifold way, i am happy to implement.

BTW: I can very well vision yoru gcodepreview with some textures, but unless you take very old version of pythonscad, thats not possible.

I am forced to sync to recent versions of openscad to minimize for the friction betweeen the differences of openscad and pythonscad. and of course i am very interested in inheriting latest features and bugfixes of openscad.

2

u/WillAdams Jul 02 '25

My idea is to basically model a tree trunk's growth rings as different cylinders of different colours, then slice a board out of it to get the appearance of wood.

For metal/plastics/composites I guess it'll just be different colours.