PDA

View Full Version : Bodypaint, textures and alphas


MarcCG
08-27-2008, 08:00 PM
I once played around with a demo called texture maker - and it has a really cool feature for painting with stickers - one that I thought would have made it into bodypaint by now (as of r11 demo)

Stickers are basically an image alpha with a corresponding image, for instance a leaf, which you can see here. And it has all the rotation, jitter, spacing options as does BP. A cool thing is that you can vary the hue & saturation - technically, it modifies the saturation etc of the image as you drag the cursor, while laying down the image...

http://www.texturemaker.com/cgi-bin/forum/YaBB.pl?board=news;action=display;num=1195408137

Its very easy to use, and produces great results for the artistically challenged like myself.

I had a go at duplicating this feature in BP, but couldn't quite get it to work, the texture kept drifting from the alpha, but BP doesn't layer the texture on top of itself after the last position, so you get black outlines all around the texture - the only way to do it is to paint one click at a time using the 'Mouse hit' option

Perhaps it is possible, does anyone know how?

Per-Anders
08-27-2008, 08:18 PM
You can use a combination of the brush set to "Bitmap" mode with the alpha in that, and in the colors manager use the color in texture paint, then make sure the brush size is correct, and the rotation/size controls are the same as in the "Scale" and "Rot" settings in the Texture paint, also set the source x/y to be in the middle of your bitmap, and the Dest X/Y to be "Brush Pos.", unfortunately there's no color variation contorl currently in Bodypaint, and this method wont work if you use "Random" as the driver for rotation/size, due to each having a seperate random value.

MarcCG
08-27-2008, 08:30 PM
yes, thats what im doing - I editted my first post while you were replying...

the problem is, that BP 'tiles' the texture as I move the cursor around - so in effect its like flood filling the entire canvas with the texture, when what I want it to do is keep applying the texture under the mouse position - with the alpha

[edit] OK, scrub that, I didn't have Brush POsition set properly, however the problem is that when I have "tile U" and "tile V" set to operate, when my brush goes off one side, it has drifted from the alpha when it appears on the other side of the texture.

Per-Anders
08-27-2008, 08:47 PM
As I said you need to set the texture destination offset x/y to "Brush Pos.", doing that will make the texture sit at the current brush position as the texture moves and will be "stamped" by the brush.

MarcCG
08-27-2008, 08:51 PM
OK, yeah I didn't have Brush POsition set properly,

however the problem is that when I have "tile U" and "tile V" set to operate, when my brush goes off one side, it has drifted from the alpha where it appears on the other side of the texture, thus leaving big black gaps around my texture

Any ideas?

Per-Anders
08-27-2008, 08:57 PM
Well that looks like a bug to me, I'll report it to Maxon.

MarcCG
08-27-2008, 08:59 PM
Ok, I have found the cause of this 'bug'

When the canvas size is set to an integer multiplication of the size of the texture I am painting with, the drifting that occurs when using tile U & V and painting off the edges goes away!

MarcCG
08-27-2008, 09:03 PM
Well that looks like a bug to me, I'll report it to Maxon.

Nice! And if you could ask them to modulate to a 'user-defined degree' of hue, saturation, "linked randomness" and sizing, you'll be my best friend!

Also, a cool thing on texture maker is that you can cycle through a set of Alpha's and corresponding textures, which are all part of a single brush, thus allowing you to say, paint a series of different sized pebbles all in one stroke!

Get that done, and i'll send you a crate of beer of your choice ;)

CGTalk Moderation
08-27-2008, 09:03 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.