Aller au contenu

Photo

Creating tint maps


  • Veuillez vous connecter pour répondre
56 réponses à ce sujet

#1
PJ156

PJ156
  • Members
  • 2 982 messages
There's a very nice bottle in the japanese house set that would benifit greatly from being tintable.

How is this achieved. I can't find a tutorial, if someone would point me I would like to give this a try.

PJ

#2
-Semper-

-Semper-
  • Members
  • 2 256 messages
a tint map is basically just a normal texture which uses the 3 base channels red, green and blue as a filter to blend in a color. the blending is controlled via the rgb values - 255 0 0 means that the red channel will blend the chosen color with an opacity of 100%. 0 255 0 for the green channel and 0 0 255 for the blue one. just look at the other tint maps and you will understand the concept behind ;)

for easy identification (dunno if it's also needed by the engine implementation) those tint maps are named with a _t suffix. you have to edit the models with mdb cloner and enter the name of your tint map in the appropriate texture slot to get them to work. it ain't enough to drop them into the override folder.

#3
PJ156

PJ156
  • Members
  • 2 982 messages
Thanks for the reply -Semper-, is there a guide for the process or do i derive the information from other sources. I think I have used mdb cloner in the past but never in anger?

PJ

#4
kamal_

kamal_
  • Members
  • 5 240 messages
Tintmap all the things!

#5
PJ156

PJ156
  • Members
  • 2 982 messages
Not sure I understand you Kamal_ in fact, on reflection, I am certain I have not a bloody clue what you mean :D

PJ

#6
Tchos

Tchos
  • Members
  • 5 042 messages
If you just want to make the whole thing tintable with no separate areas tinted differently, then just open the model in MDB cloner, type the word "red" in the Tint Map field, and save it. Then you can tint it using the first tinting control in the toolset.

#7
PJ156

PJ156
  • Members
  • 2 982 messages
Thankyou, Tchos that seems like something I can cheive :0

PJ

#8
PJ156

PJ156
  • Members
  • 2 982 messages
That did not work,

Sorry for the noobness in this respect but the model is made of two parts. .mdb (the model) and .dds (the texture surface).

I tried Tchos' method but that did not give me access to the .dds?

I gues I could make a series of bottles by copy and renaming the mdb 01 .. 02 etc which is fine if I add them to the placeables 2da but I then need to assoicate the mdb with the new surface dds file in the new colour. How can I do that?

Or is there some trick I have missed in what Tchos recommended?

PJ

#9
PJ156

PJ156
  • Members
  • 2 982 messages
This is not going so well Posted Image

This is what I think I've done. The image below is the base _n and _t dds images.

Posted Image

The _t I made myself from the base image. I did it by simply blocking the colour onto the image where I wanted each tint to be as per a tutorial I found, I then went into .mdb cloner and set the tint file to the _t file I have created. That did not work so I want back into the cloner and checked the alpha transparency box, the mdb model look like this.

Posted Image

Back in the toolset I still cannot tint the model.

The model and tint are in the camapign folder. I am 90% confident I do not have another version of the model in a hak but I am going to check that again.

I think my issue might be that I do not know how to isolate colour channels in paint.net. All I have done is opened a stock tint map and copied those colours acrooa as a block. Did I do wrong?

Help would be greatly appreciated. If I can get this right I can see a whole wold of possibility with come of the stock models.

PJ

#10
Morbane

Morbane
  • Members
  • 1 883 messages
i think bouncy rock put out a tinting tutorial - not very confident though

they have a site - also not sure if it is still up and running

Edit: i think nwn2_ccc_guide.pdf has tinting explaination

Edit/Edit: HEED tinting <----- thats the one! :wizard:



BAH!! link didnt work right see later post without BBC trickery

:devil:

Modifié par Morbane, 28 septembre 2013 - 09:00 .


#11
PJ156

PJ156
  • Members
  • 2 982 messages
Do you have a link morb I found a repost of this tut by Hellfire here:

http://www.rwscreati....php?f=18&t=727

I don't know if the original is more clear. I will look for that guide.

PJ

#12
Morbane

Morbane
  • Members
  • 1 883 messages
look up - lol

edit: fixed link look down

Modifié par Morbane, 28 septembre 2013 - 08:59 .


#13
Morbane

Morbane
  • Members
  • 1 883 messages
https://www.dropbox....EED_Tinting.doc

#14
Morbane

Morbane
  • Members
  • 1 883 messages
i just looked at RWS repost...

not any difference!?

ah well - nothing come without effort eh?

#15
-Semper-

-Semper-
  • Members
  • 2 256 messages

PJ156 wrote...

The model and tint are in the camapign folder. I am 90% confident I do not have another version of the model in a hak but I am going to check that again.


also check that you deleted the alpha channel in the tint map and that you saved your new texture as a .dds file.

I think my issue might be that I do not know how to isolate colour channels in paint.net. All I have done is opened a stock tint map and copied those colours acrooa as a block. Did I do wrong?


you don't need to copy colors. just paint with pure red, green or blue to separate the 3 different tint channels. for example pure red would be 255 0 0 if you select the color through rgb values.

if you've done it right everything should work ;)

Posted Image

#16
PJ156

PJ156
  • Members
  • 2 982 messages
Thank you -Semper-,

What program do you use for file manipulation I have paint.net and GIMP. Paint.net open .dds but the isolation/removal of the alpha channel seems difficult looking at the forum. There is much confusion there as to what the alpha channel is so no clarity for me either :)

Gimp does not open .dds but seems to have the functionality that allows you to remove the alpha channel.

I feel like I am close to this now I just need to undersatnd the alpha channel and what it is

Off to google :)

PJ

#17
-Semper-

-Semper-
  • Members
  • 2 256 messages
personally i use photoshop - but gimp gets the same job done too. whatever you use it's important that there's a .dds plugin to handle textures. regarding the alpha map it seems that you don't have to delete that channel. i looked through some of the vanilla textures and there're also alpha channels included sometimes.

an alpha channel work's in principle like the tint map, but doesn't blend a color but the visibility of the whole texture. it's like a mask where black parts will be blocked.

edit: in case you need a dds plugin for gimp this should do the trick.

Modifié par -Semper-, 28 septembre 2013 - 01:15 .


#18
PJ156

PJ156
  • Members
  • 2 982 messages
Thanks -Semper-, that is useful.

In the interveneing time I have found that paint won't do what I need to but gimp does. I found that plug in but it is not working. I reinstalled gimp as some adivised and I now have four new programs to uninstall and a new web browser home page.

Gimp still does not open .dds files.

I am persevering but I must say that, as a non IT savvy person I find this kind of thing frustrating, not the modding, the fact that sofware loads other software in parallel without giving you a choice. My browers is a bloody christmas tree of adverts and tools that I dont not want or even know what to do with.

Ho Hum back to trying to open a .dds file.

PJ

#19
-Semper-

-Semper-
  • Members
  • 2 256 messages
yeah, on some internet pages you have to be very careful when downloading stuff. nowadays it's common to create custom installers stuffed with tons of adware. to disable that there's a small button hidden somewhere to configure the install routine. guess that crap happened when you re-installed gimp.

btw i downloaded gimp and tested the plugin and it worked without issues. just drop the dds.exe in the plugin folder. after that gimp handles textures just fine.

#20
PJ156

PJ156
  • Members
  • 2 982 messages
Yup, I did not see a way to confrigure it and I think something nasty piggybacked in.

Things are pretty crapped up right now :(

PJ

#21
Tchos

Tchos
  • Members
  • 5 042 messages
Well, a lot has been said between now and what you said before, but I'm curious what did not work about what I suggested?  I didn't say it would give you access to the tint map, just that it would let you tint the entire object as one piece (that would be the glass and the cork in this case).  I didn't know the bottle you were talking about had a cork, of course, so maybe you meant that it just doesn't look good to be tinted in that way. 

When tinting the whole thing at once is adequate for my needs (when I don't need to separate parts), I use the method of putting "red" in the field for the tint map in MDB Cloner, and it works because there is a file called "red.dds" in the stock resources that is nothing but a pure red texture.  (I think Dann pointed that out).  There's also a green.dds and a blue.dds, but those are not suitable because they're not pure green or blue.

It looks like this:
https://dl.dropboxus...cloner tint.jpg

#22
PJ156

PJ156
  • Members
  • 2 982 messages
I'm not sure why t did not work, certainly it would ahve been easier than the pain I ahve been thorugh over the last hour or six.

Mine looked like yours after I was done. I sahll try again with another obeject later on. Now that I have a taste for modding the tint map i am going to do it I think.

I cannot get Gimp to open dds and i dont know why but my wife has photoshop on her PC so i am going to try to take out the alpha map on that.

PJ

#23
PJ156

PJ156
  • Members
  • 2 982 messages
Photo shop 10 won't open the file either for me, I guess I need a plugin or update for that too?

Losing the will to live here !

PJ

#24
PJ156

PJ156
  • Members
  • 2 982 messages
I tried saving as a .png out of .net and the opening in Gimp.

I removed the alpha channel and opened in paint.net a resaved as a .dds.

No luck! Nor did Tchos's fix work on another .mdb.

Is there a macro issue here I am missing. I know these models and textures are not overwritten in .haks ansd are in the campaign folder so they take precedence over the override (not that are there either).

I think I may seek solace in beer.

PJ

[EDIT] - Semper- would you be kind enough to link me that .dds tint map you did and I will try that. If it does not work at this end then I can look elsewhere for the problem.

Modifié par PJ156, 28 septembre 2013 - 06:46 .


#25
Tchos

Tchos
  • Members
  • 5 042 messages
At least in the Photoshop version I have (an older one), to open DDS files you need a plugin, yes.

Can you describe the failure state? When you say it didn't work, what is happening?

Also, if the DDS format is giving you a lot of trouble, you don't actually need to make them DDS files. It will accept TGA (Targa) files. I use DDS files because they're smaller.