[OpenSCAD] lighting angle?

Ervan edarnell at kelvinist.com
Sun Oct 2 18:25:35 EDT 2016


Very clever.  This solves the problem of proper lighting on a 2D object as a
work around.  Thanks.

>rotate([-40,0,0]) scale([1,1/cos(40),0.01])children(); 

Only issue I found was that this doesn't work for text, but it can be
prefixed with this:

module unrotate_for_light() {
   scale([1,cos(40),100]) rotate([40,0,0]) children();
}

The command line is a separate problem, but this seems to work:

openscad.com --camera=0,00,00,00,0,0,1000 ....



--
View this message in context: http://forum.openscad.org/lighting-angle-tp1508p18510.html
Sent from the OpenSCAD mailing list archive at Nabble.com.




More information about the Discuss mailing list