Frictional Games Forum (read-only)
modify .mat files and blood stain help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: modify .mat files and blood stain help (/thread-19112.html)



modify .mat files and blood stain help - tonitoni1998 - 11-06-2012

hey guys im working on my first costum map "Corridors" but im abeginner and i have problems by putting blood on the floor where the player starts. there is only "blood_pool_01.mat" with only one stain on the texture. and these would look all the same.

so how can i pick up only once of the stains from "blood_smear_01.mat" or others without modifying the .mat file or how do i modify the .mat files (which program)

thanks alot.

(by the way, do you know how to introdruce into the game like in "Justine" or "The Dark Descent"? with bured view and all that stuff...)


RE: modify .mat files and blood stain help - johnbox - 11-06-2012

hey,
I don't have much time to answer you, so I can only help you with a fast link, sry. I have a meeting in 1 hour ._.

It's for your second question, how to "wake up", maybe it'll help you.
If you have problems doing it, then just post it. Wink


have a nice day ^^

edit: i forgot the link, I'm genius ! :3
http://www.frictionalgames.com/forum/thread-18805.html?highlight=wake+up


RE: modify .mat files and blood stain help - xxxxxxxxxxxxxxxx - 11-06-2012

Quote: so how can i pick up only once of the stains from "blood_smear_01.mat" or others without modifying the .mat file or how do i modify the .mat files (which program)
You would have to open the texture file (should be a .dds file with the same name as the material) with a program like Photoshop or Gimp. There you can cut out the stains you need and save them as a new image (make sure the pixel length and width is a power of 2! 128, 256, 512 or 1024...)

Then you need to create a new material for it. You can probably copy the original stain .mat file and rename it, then open with the material editor. There you simply put in your new texture in the diffuse slot and the specular map (if you have one) in the specular slot, etc....


RE: modify .mat files and blood stain help - Kreekakon - 11-06-2012

Here's a much easier way for you to use only one of the four images in decals like "blood_smear_01.mat". In the decal settings you should see a setting which says UV SubDivisions. Set that to "2x2", and the UseSubDiv setting next to it to "Random".

The decal you are using should now randomly choose one of the four images when you place it.


RE: modify .mat files and blood stain help - tonitoni1998 - 11-06-2012

thanks a lot to you guys!


RE: modify .mat files and blood stain help - FlawlessHappiness - 11-06-2012

With blood i would suggest choosing which bloodstains look nice, instead of just randomly placing blood. Also think about how much blood there is in a human body