First, thanks for all the help as I was getting up to speed with the syntax and semantics of ZBrush.
Now that I can write ZScripts that have fewer errors than lines, I’m actually getting into solving my problem, which begins with: just bringing in a picture and painting it on the center of the canvas, at a 1:1 pixel scaling.
Bringing in the picture is no problem. The real problem is in getting it painted to the canvas while maintaining correct dimensions. Here are the things I’ve looked at.
-
crop and fill
- no good because the size of the canvas should not change. Also intrusive to the user.
-
fill canvas
- distorts and resizes the image
-
using the simple brush, square alpha, and appropriate brush size, and drag dot stroke, click in the middle of the canvas.
- problem; the image may be too large for the max brush size.
-
use the dragrect stroke, and CanvasClick, to drag the picture out on the canvas.
- problem: dragrect has only a square aspect ratio.
Next try; apply the texture to a 1-quad plane3d and drop it.
-
use dragrect stroke; well, through various settings I can solve the aspect ratio problem, but the edge of the poly does not ‘keep up’ with the cursor position as the drag goes on; a gap develops between them. This means that CanvasClick ends up creating a smaller poly than expected.
-
use dot stroke; again, the size of the stroke can’t be set high enough to draw out picutures at full size…
I’m pretty sure I’ve finally figured out one way to do this, but it’s pretty baroque, and I’d really prefer not to have to use it. Sure there’s a simpler way?
Thanks,
Ken