Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Combining different meshes?
FailedExperiment Offline
Junior Member

Posts: 29
Threads: 6
Joined: Mar 2015
Reputation: 1
#1
[SOLVED] Combining different meshes?

I've recently downloaded some .obj files which I have exported to collada format (.dae), and I have all the UVs laid out with the specific images I need wrapped around each item. A problem I have is that I have exported several different meshes to create the same object, such as the body of the character, specific eyes, teeth, etc... for extra manipulation, but I don't know how to combine each mesh into one model. I imported each mesh into the model editor, but once I try to import a second one to connect the meshes, it opens the new mesh. I am having no trouble whatsoever with specific UV layouts or textures, but how do I combine two or more meshes together to form only one (.ent) file?
(This post was last modified: 06-23-2015, 02:47 AM by FailedExperiment.)
06-18-2015, 03:20 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Combining different meshes?

An ent file uses only 1 dae file. You need to combine whatever meshes you have into 1 object before exporting it.

(This post was last modified: 06-18-2015, 07:41 AM by Mudbill.)
06-18-2015, 07:41 AM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#3
RE: Combining different meshes?

Wrooooooooooong forum, moved.

And yeah, you'll have to combine the meshes in your modeling suite, can't do it in HPL.
06-19-2015, 04:15 PM
Find
FailedExperiment Offline
Junior Member

Posts: 29
Threads: 6
Joined: Mar 2015
Reputation: 1
#4
RE: Combining different meshes?

I've solved the problem, but a greater error has occured. The model is now invisible in Amnesia. It does crash in the modelview, and I know why. I've seen custom models and their .dae files automatically have the textures loaded. In the model editor, my mesh is invisible, but I am able to wrap images around them in the model editor (material), however, the figure is invisible in game. So is this another thing I will have to re-export with textures already in the mesh (.dae) file?
06-21-2015, 08:40 AM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#5
RE: Combining different meshes?

Look up some of the modeling tutorials here on the forum, they cover how to export your meshes properly and how to set up a material file.
06-21-2015, 01:13 PM
Find
Catalyst Offline
Member

Posts: 213
Threads: 32
Joined: Aug 2014
Reputation: 3
#6
RE: Combining different meshes?

(06-21-2015, 08:40 AM)FailedExperiment Wrote: I've solved the problem, but a greater error has occured. The model is now invisible in Amnesia. It does crash in the modelview, and I know why. I've seen custom models and their .dae files automatically have the textures loaded. In the model editor, my mesh is invisible, but I am able to wrap images around them in the model editor (material), however, the figure is invisible in game. So is this another thing I will have to re-export with textures already in the mesh (.dae) file?

You cannot simply combine all meshes in one, sure it's posible, in renders as Maya or Cinema 4D, but Amnesia does not support multi textured lambert (every mesh is divided in multi parts called lamberts, every lambert supports a texture, if you will combine all lamberts in one, then lambert would be multitextured, and it's crashing Amnesia when model is loaded), only one texture per mesh.

About invisible textures, there are many ways to solve it. I've encountered a issue like this, you could try re-export model, properly textured, and make sure that those textures are in local mesh search directory, (for example : wall.dae or wall.ent, after loading mesh in ModelWiewer, a mat file is generated, then open it with notepad, and see if texture directory are correct, if it's wrong, try to write a proper path, I've solved an issue some time ago) make sure that texture format is DDS or TGA. JPG is invisible, and most of times, when a mesh is being loaded in editor with jpg format, editor is crashing, or mesh is invisible.

If you need some help, please PM me, I can solve it Smile

Rolleyes Good luck. Shy

Egypt CS
[Image: 27003.png]
(This post was last modified: 06-21-2015, 08:30 PM by Catalyst.)
06-21-2015, 08:27 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#7
RE: Combining different meshes?

That's not really true Catalyst, one mesh can use several different materials. I can not recall exactla what the limit is, but it is possible. I've done it myself before.
06-22-2015, 01:59 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#8
RE: Combining different meshes?

I've only been able to apply 1 lambert to a mesh. Adding another would replace it. Of course I could add more lamberts to other meshes in the model when I keep them separate, but I could never (at least casually) add two lamberts to the same object.

06-22-2015, 04:38 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#9
RE: Combining different meshes?

Yeah the meshes themselves need to be separate objects in the file, but they can share .dae

Take a look at Alexander and his hair for example
06-22-2015, 05:44 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#10
RE: Combining different meshes?

Yeah. Another example is the window assets. 1 model > 2 objects > 2 lamberts, one solid and one transparent, simply because HPL doesn't do both in the same material.

06-22-2015, 06:07 PM
Find




Users browsing this thread: 1 Guest(s)