Frictional Games Forum (read-only)
Using Multiple Textures on a Single Entity - 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: Using Multiple Textures on a Single Entity (/thread-11543.html)



Using Multiple Textures on a Single Entity - Krymtel - 11-27-2011

Hi guys,

I've been wondering whether or not HPL2 can handle multiple textures on a single entity. At the wiki, I read some tutorials that stated it's not supported by HPL2, however when I look at some of the games entities I can clearly see some of them using multiple textures. The best example of this is the Grunt and how it is one entity with two textures, one of them being its hair and the other being the rest of its body. It would be great to hear what you all know Smile


RE: Using Multiple Textures on a Single Entity - Acies - 11-27-2011

You can use one texture for one mesh. Depending on what you're making you may export several meshes; all with different textures. It doesn't matter that much though, since you may have all types of "materials" - wood, metal etc. in one texture and then differentiate them with different exposures on the specular map.

1. What are you trying to make?
2. Do you know your way around modeling? :>


RE: Using Multiple Textures on a Single Entity - Your Computer - 11-27-2011

If you notice, the grunt's hair is actually a separate mesh from the grunt's body mesh, not two textures on one mesh but one texture per mesh.


RE: Using Multiple Textures on a Single Entity - Krymtel - 11-27-2011

(11-27-2011, 06:19 PM)Acies Wrote: You can use one texture for one mesh. Depending on what you're making you may export several meshes; all with different textures. It doesn't matter that much though, since you may have all types of "materials" - wood, metal etc. in one texture and then differentiate them with different exposures on the specular map.

1. What are you trying to make?
2. Do you know your way around modeling? :>


I'm just curious about the whole thing just in case I run into a situation where I need to use two textures for a single entity. I'm still a beginner at modelling. All I can really model are simple things.
(11-27-2011, 07:20 PM)Your Computer Wrote: If you notice, the grunt's hair is actually a separate mesh from the grunt's body mesh, not two textures on one mesh but one texture per mesh.
Well, the thing is, I've experimented with things like this and I can't manage to get them to work in Amnesia. For example, a mans arm is one mesh and a flashlight is another, if I export that as a single .dae file, I won't be able to have one texture for the arm and one for the flashlight. I've tried that before with disastrous results Confused


RE: Using Multiple Textures on a Single Entity - Acies - 11-27-2011

(11-27-2011, 07:57 PM)Krymtel Wrote:
(11-27-2011, 06:19 PM)Acies Wrote: You can use one texture for one mesh. Depending on what you're making you may export several meshes; all with different textures. It doesn't matter that much though, since you may have all types of "materials" - wood, metal etc. in one texture and then differentiate them with different exposures on the specular map.



1. What are you trying to make?

2. Do you know your way around modeling? :>





I'm just curious about the whole thing just in case I run into a situation where I need to use two textures for a single entity. I'm still a beginner at modelling. All I can really model are simple things.
In that case it might be interesting for you to look at the three basic guides I've made:
Modeling, texturing and animating.

You can find them in the "guides section". Smile


RE: Using Multiple Textures on a Single Entity - MrBigzy - 11-27-2011

Even if a game supported multiple textures, it's not good practice (except maybe for some sorts of complex animated textures).

Models seem to have separate textures because they are distinguished by UV's. For these models, the texture itself is one photo with a bunch of different textures lined up against each other. The UV coordinates are used to tell the model where the texture goes on specific parts of the model, and which part of the photo the model will use for that part.



RE: Using Multiple Textures on a Single Entity - Krymtel - 11-28-2011

(11-27-2011, 09:45 PM)MrBigzy Wrote: Even if a game supported multiple textures, it's not good practice (except maybe for some sorts of complex animated textures).

Models seem to have separate textures because they are distinguished by UV's. For these models, the texture itself is one photo with a bunch of different textures lined up against each other. The UV coordinates are used to tell the model where the texture goes on specific parts of the model, and which part of the photo the model will use for that part.
I know that, but I was just wondering how to do it. It's actually done often in most modern games BTW.


RE: Using Multiple Textures on a Single Entity - Krymtel - 11-28-2011

(11-27-2011, 09:22 PM)Acies Wrote:
(11-27-2011, 07:57 PM)Krymtel Wrote:
(11-27-2011, 06:19 PM)Acies Wrote: You can use one texture for one mesh. Depending on what you're making you may export several meshes; all with different textures. It doesn't matter that much though, since you may have all types of "materials" - wood, metal etc. in one texture and then differentiate them with different exposures on the specular map.



1. What are you trying to make?

2. Do you know your way around modeling? :>





I'm just curious about the whole thing just in case I run into a situation where I need to use two textures for a single entity. I'm still a beginner at modelling. All I can really model are simple things.
In that case it might be interesting for you to look at the three basic guides I've made:
Modeling, texturing and animating.

You can find them in the "guides section". Smile


Alright, cool Big Grin