View Full Version : AO Texturing
jhapprich
07-25-12, 07:48 AM
Does anyone know how to put a specular map or just a greyscaled diffuse map into the alpha channel of the AO map? i read the tutorials on this forum , but so far i could not figure it out. i am using GIMP and paint.net.
i am having artifacts of my ao map showing up on the hull of the model, and tried to delete the ao alpha channel, but still the sub is too glossy and i want to use a real specular map. best regards jh
http://img528.imageshack.us/img528/702/24131242.pnghttp://img825.imageshack.us/img825/874/65753305.png
stanger
07-25-12, 10:45 AM
Take a look how it is done with stock sh4 textures. There is black&white diffuse map in AO alpha channel. So, take your ships texture, make it black and white, adjust it with the "curves" option (in Photoshop), so it lt looks dirty, then copy it and paste to AO map alpha channel.
I dont know how to do it in paint.net, you cant probably, but it should be possible in gimp.
(Get Photoshop cs6 30-day trial + nvidia dds plugins and you will do it in 1 minute, that gimp is piece of ... something rotten :D
jhapprich
07-25-12, 02:58 PM
well... thanks but i could use some more detailed answers.besides, gimp is great.thanks for the effort anyway.
stanger
07-25-12, 05:38 PM
Sorry, can't help you much with Gimp. I don't understand how it manages alpha channels. For example: in photoshop you can simply select the channel and do whatever you want to do (and we want to do some basic stuff like copy or paste), but in Gimp - it wont let me paste into alpha channel. Maybe it requires to delete existing channel and create new? And try to hide an alpha channel - you wont see RGB channels as well. (Unnecessary obstacles, just like Blender :O: ) Another thing: it displays AO map alpha channel inverted, and I know its not inverted, because I just reworked one of O01 textures just couple of minutes ago in PS, so not sure how you should proceed in Gimp: invert or not. But anyway, you, maybe, know Gimp better, so I will write how I do it:
1) open your ships texture (don't load mip maps), make it black and white (colors > desaturate) then adjust it with curves (colors > curves), so it looks similar to this:
https://hnmfrq.blu.livefilestore.com/y1pDW-uiwxAE5SeRa8fQhOqACKjt-fOh-Bah7Jxkr9Np4CLD6fSjNLsttbK_iplbSXIGE7mBG0u5J2bp3dC xVSgeicoyX_ZszEV/curves.jpg?psid=1
Try not to leave too much white or grey areas, the more detail the better it will cover AO tex, the less shininess on your sub.
2) Once done, select all, copy; open AO tex, select or create alpha channel, paste. Both textures should be of the same size.
3) Save as (or export in gimp) dds (dxt5 (bacause of alpha channel), generate mip maps).
You may also want to use xnview as image viewer, you hit ctrl+h, and can show or hide alpha channel.
https://public.blu.livefilestore.com/y1puk3EknMVqEJrCDXmP00C5Uj3EP2UkDKrovTCxrZs89oG-gyUWZ0-HqCCSXMV-40nLyxfteGGwfEC7qq8JuJW0w/AOs.png?psid=1
jhapprich
07-26-12, 02:36 AM
Stanger, that`s great! some tutorial you made! ive downloaded photoshop and the plugin and will give it a try asap! the possibility to select and edit single chanels sounds great, gimp cant do that! once aain a BIG THANK YOU!
jhapprich
07-26-12, 05:03 AM
ok , i tried the following: 1. Black&white to the ships T01, adjusting the curves-> there is a curve-mask in the channel list below RGB and the seperate R-G-B-channels. i copy and open my O01. i select the alfa-channel in the channel list and desect the rgb. i paste the textur and the channel turns all white. i tried the same with the Tambor`s texture you used and it is also white. am i missing something?
stanger
07-26-12, 06:24 AM
Look at this:
http://youtu.be/CuW7K-mEGmw
(sorry for poor quality, I recorded it with half the size of desktop res, and youtube made it even worse)
Don't follow me with the curves option, I was trying to be quick with it, and its turned out very bad, but thats not the point here. To edit diffuse map you can use curves, exposure and\or shadows\highlights. This is vital to do it right. For example: on the video Ive posted, after curves edit, most of the texture was too black, so once pasted into AO and saved you will see that its covers too much, and is too solid. So, do it better than me :) There is also other method. If I remember correctly, danlisa in his tutorial was suggesting to ctrl+click on blue channel, then copy and past to alpha, but that leaves out all those darker areas... but you can try this too, maybe you will get better results than me.
If you are using your own ao tex, it may be different in that it may be in alpha channel; in that case copy the content of alpha channel to rgb, and then proceed with above (diffuse map to alpha channel).
jhapprich
07-26-12, 06:40 AM
http://img577.imageshack.us/img577/8596/98229760.pngi got it,stanger,my installation of PS was corrupted.reinstalled-now it works!:up:
best regards JH
now thats some rusting soviet beast in the bright sun! maybe i`ll try to add some more contrast to it,but so far i find it not bad for the first test!
stanger
07-26-12, 07:45 AM
The difference is striking.
Some subs in sh4 have a lot of difference between hull and conning tower (Tambor\Gar stands out the most) , I think it can be balanced by editing ao tex alpha channel (just a note for myself :D ).
jhapprich
07-26-12, 08:05 AM
jap. i know what you mean. so now i guess the Echo class is ready to defend the motherland against the imperialist aggressor! youll be in the credits for your help! again thanks alot :salute:
stanger
07-26-12, 08:22 AM
A Pole helping with a Soviet sub :hmmm:
:haha:
Glad to be of any help.
Tempest555
07-26-12, 10:58 PM
Well as they say in Facebook "it's complicated."
:yep:
http://m.ruvr.ru/data/2012/04/06/1303328951/4RIA-401737-Preview.jpg
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.