Frictional Games Forum (read-only)
Help Editing default wall files - 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 Resources (https://www.frictionalgames.com/forum/forum-42.html)
+---- Thread: Help Editing default wall files (/thread-52909.html)



Help Editing default wall files - Sindric - 10-16-2016

I am trying to use CrazyBump on the mansionbase walls. But, I can not figure out how to make it work. I have the color, normal, and spec maps. The only thing I cant figure out is editing the .dae file. Right now, in the level editor the custom wall shows up in the menu, but does not show when created.


RE: Help Editing default wall files - Mudbill - 10-17-2016

If you open the .dae file with a text editor you can change the path to the material file. It's important to make note that the path in the .dae file, even with an extension like .dds or .png will be replaced with a similar path, but with .mat extension instead when loaded in Amnesia. So look for the .mat file as well, copy it, and edit it with the MaterialEditor. That's where you specify which .dds textures are actually used.

PHP Code:
<init_from>file:///C:/Skolarbeten%20och%20diverse%20projekt/3d/projekt/Frictional%20Games/SVN/redist/static_objects/mansionbase/wall/mansionbase.dds</init_from> 

This is in the original mansion base wall .dae file. What's important here is really only the file name itself: mansionbase. The path in here is obviously not actually used, or else this would only work on the computer for the author of this model.

PHP Code:
<init_from>mansionbase.dds</init_from

Make it like so and it will have the same effect.

PHP Code:
<init_from>mansionbase.mat</init_from

This will ALSO have the same effect because the extension is ignored. The .mat file is the important one.

If you don't want to use the MaterialEditor, you can just edit the .mat file specified in the .dae file with a text editor. Here you can change the texture file names (but I still recommend the editor if you're gonna add things like normal maps):

PHP Code:
<Material>
    <
Main DepthTest="True" HeightMapScale="0.05" PhysicsMaterial="Default" Type="SolidDiffuse" />
    <
TextureUnits>
        <
Diffuse AnimFrameTime="" AnimMode="" File="mansionbase.dds" Mipmaps="true" Type="2D" Wrap="Repeat" />
        <
Specular AnimFrameTime="" AnimMode="" File="mansionbase_spec.dds" Mipmaps="true" Type="2D" Wrap="Repeat" />
    </
TextureUnits>
</
Material



RE: Help Editing default wall files - CarnivorousJelly - 12-02-2016

Check out these two tutorials (both in the same post) if you're still struggling

https://www.frictionalgames.com/forum/thread-25796-post-304173.html#pid304173

That face when you realize you responded to a 2 month old post... I love me some necromancy


RE: Help Editing default wall files - Romulator - 12-02-2016

(12-02-2016, 01:58 AM)CarnivorousJelly Wrote: Check out these two tutorials (both in the same post) if you're still struggling

https://www.frictionalgames.com/forum/thread-25796-post-304173.html#pid304173

That face when you realize you responded to a 2 month old post... I love me some necromancy

You're all good fam, but I'm gonna lock the thread for inactivity. Haven't seen OP around since October so I'll reopen it if necessary!