Can I tint an Image texture with a colour?

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
benecosse
Posts: 165
Joined: Thu Apr 15, 2010 11:56 pm

Can I tint an Image texture with a colour?

Post by benecosse »

I've got a vector shape with an image texture of paper filled in it.
I'm wanting to find a way to tint this paper a colour. I've tried creating 2 styles, one with the image texture, the other with a red colour that is semi transparent. Then I apply the two styles to the shape (the transparent red on top of the paper texture).

However this doesn't seem to work.

Is this possible in AS or do I have to colour all the textures in photoshop?
I will have a lot of different colours in my character all with paper texture and I want to find a quick way to do it within AS.
User avatar
Imago
Posts: 698
Joined: Wed Dec 10, 2008 9:48 am
Location: Sardinia

Post by Imago »

Try to use two identical shapes with different fills and put them one above the other.
Sorry for my bad english... Q_Q
benecosse
Posts: 165
Joined: Thu Apr 15, 2010 11:56 pm

Post by benecosse »

I'm to be using lots of coloured textures in several rigged and animated characters so I don't want to have duplicate every shapes for every part. Seems like it would be too fiddly if I did it that way.

I guess I'll have to create all the textures before I get to that stage if 'styles' can achieve this. Maybe there is a way of bringing in a semi transparent texture file?
User avatar
slowtiger
Posts: 6255
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post by slowtiger »

http://www.slowtiger.de/examples/luftschiffe_bunt.mov
What I did here may work in most cases:

- put the to be colored image (preferrably b/w) into a group/bone layer
- set that layer to "hide all"
- set the image layer to "add to mask"
- create a layer with just a big rectangle in colour on top of that
- set this to "mask this layer"
- set this layer mode to "multiply"
- play with colour and layer opacity until it looks right (in the render)

It's up to you to decide wether this is less work than creating correctly coloured textures in PS.
benecosse
Posts: 165
Joined: Thu Apr 15, 2010 11:56 pm

Post by benecosse »

Cheers, Slowtiger.
The only thing is, I am wanting to moving the texture with the bones as if it was part of the character so it morph/stetches along with it.
I've now discovered that if I make my paper texture B/W in photoshop and then make it transparent where the white is (ie create an Alpha).
Then save it as a PNG. I can now add add it to my colour style as a texture effect and it shows up over the colour I have select.
Obviously, in this case I can't use Multiply layer effect but I think this will do for this job.
Thanks for your help
User avatar
slowtiger
Posts: 6255
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post by slowtiger »

A texture with alpha works? Interesting, haven't ever tried that.

Whatever works, works.
benecosse
Posts: 165
Joined: Thu Apr 15, 2010 11:56 pm

Post by benecosse »

yeah, I was surprised too.
I'm using AS7 so it might have something to do with that.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Post by chucky »

Yes texture works with alpha, works ok (if it doesn't cause ASPRO to crash)
It would be nice if there was a transparency setting for the texture, though, as it would be more adjustable, predictable and wouldn't require multiple textures for tonal/colour shifts.
Post Reply