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
Help Editing default wall files
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Help Editing default wall files

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: (Select All)
<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: (Select All)
<init_from>mansionbase.dds</init_from

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

PHP Code: (Select All)
<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: (Select All)
<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

(This post was last modified: 10-17-2016, 12:21 AM by Mudbill.)
10-17-2016, 12:08 AM
Find


Messages In This Thread
Help Editing default wall files - by Sindric - 10-16-2016, 11:10 PM
RE: Help Editing default wall files - by Mudbill - 10-17-2016, 12:08 AM



Users browsing this thread: 1 Guest(s)