Frictional Games Forum (read-only)
Strange problem with model editor - 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: Strange problem with model editor (/thread-10776.html)

Pages: 1 2


Strange problem with model editor - eliasfrost - 10-16-2011

Ok, so I'm making a room for Amnesia. The room is made in Blender, I followed the tutorial on the wiki, it's correctly UV mapped and exported. When I use the model editor, it works fine, I can load my material and apply it to the model BUT when I deselect the model and reselect it, the material is gone from the properties sidebar, also I can't change the name of the entity, I click on the text field assigned to the name property but I can't write anything. Is this normal? I doubt it is.

Also, when I do save the entity and try to open it in model viewer, the viewer crashes. Any suggestions?



RE: Strange problem with model editor - Your Computer - 10-16-2011

(10-16-2011, 01:05 AM)nackidno Wrote: BUT when I deselect the model and reselect it, the material is gone from the properties sidebar

That's normal.

(10-16-2011, 01:05 AM)nackidno Wrote: also I can't change the name of the entity, I click on the text field assigned to the name property but I can't write anything. Is this normal?

To add names for the meshes, see here: http://wiki.frictionalgames.com/hpl2/third_party_tools/3d/blender#notes_on_blender_25

(10-16-2011, 01:05 AM)nackidno Wrote: Also, when I do save the entity and try to open it in model viewer, the viewer crashes. Any suggestions?

It's weird that it would load into the model editor and not the viewer. What did you model in Blender?


RE: Strange problem with model editor - eliasfrost - 10-16-2011

Quote:To add names for the meshes, see here: http://wiki.frictionalgames.com/hpl2/thi...blender_25
I just saw that, I'm looking through the .dae file just now Smile

Quote:It's weird that it would load into the model editor and not the viewer. What did you model in Blender?
Just a room, I have some experience with modeling in Blender, so I'm pretty sure the model itself is fine, it might just be an export error. Hopefully the above workaround will fix this, I'll be back in a few minutes. Smile

Thanks Smile



RE: Strange problem with model editor - Your Computer - 10-16-2011

(10-16-2011, 01:18 AM)nackidno Wrote: Just a room, I have some experience with modeling in Blender, so I'm pretty sure the model itself is fine, it might just be an export error. Hopefully the above workaround will fix this, I'll be back in a few minutes. Smile

If it's just a room, then you don't need to import it into the model editor (unless you want the room to have interactive properties that entities are capable of).

Random thought: lol, a room of type grunt.


RE: Strange problem with model editor - eliasfrost - 10-16-2011

UPD: Nope, it didn't change a thing. Also, I just read that you should be able to directly view the model from the viewer:
Quote:[*]
Click the “…” button by the Export file: path and export the file as “filename.dae” in a folder within HPL2, for testing do it in the same folder as the texture you selected. [*]
Using the model viewer you can now view the newly created good looking cube
At least I'm assuming they mean the .dae file. The thing is though that I can't even open the .dae file with the model viewer.

Quote:If it's just a room, then you don't need to import it into the model editor (unless you want the room to have interactive properties that entities are capable of).
Oh, I see. how is collision handled then? Isn't the "shape" used for detection collision areas?
I tried to put the model into the map editor, but it doesn't have texture, it's just a wireframe.



RE: Strange problem with model editor - Your Computer - 10-16-2011

(10-16-2011, 01:27 AM)nackidno Wrote: UPD: Nope, it didn't change a thing. Also, I just read that you should be able to directly view the model from the viewer:

At least I'm assuming they mean the .dae file. The thing is though that I can't even open the .dae file with the model viewer.

The model viewer is only useful when you want the materials to be generated automatically. I have heard that the model editor is more stable when it comes to viewing your creations.

Quote:Oh, I see. how is collision handled then? Isn't the "shape" used for detection collision areas?
I tried to put the model into the map editor, but it doesn't have texture, it's just a wireframe.

Collision for static objects is based off of the normals (faces) of the object itself. If you just see a wireframe, that means you don't have a material file in the same directory that the model is in that references the textures that the model uses.


RE: Strange problem with model editor - eliasfrost - 10-16-2011

Quote: The model viewer is only useful when you want the materials to be generated automatically. I have heard that the model editor is more stable when it comes to viewing your creations.
I see, thanks!
Quote:If you just see a wireframe, that means you don't have a material file in the same directory that the model is in that references the textures that the model uses.
But the material file is in the same directory :/ Still doesn't work >.<



RE: Strange problem with model editor - Your Computer - 10-16-2011

(10-16-2011, 01:50 AM)nackidno Wrote: But the material file is in the same directory :/ Still doesn't work >.<

Maybe the .mat file needs the same file name as the model (i.e. without the .dae extension, of course), or maybe the image format you're using for your texture(s) is unsupported. It may also be possible that you used multiple textures for the same one mesh (IIRC, only one texture per mesh is supported). This, assuming you didn't pick "decal" for the material type.


RE: Strange problem with model editor - Acies - 10-16-2011

Have you checked that the .mat file actually references to your diffuse file? 50% of the models I load needs manual editing of the .mat files.


RE: Strange problem with model editor - eliasfrost - 10-16-2011

The room uses a single texture (a .dds file with the res of 512x512) Also, the material type is soliddiffuse. Both files have the same filename (Walls.mat and Walls.dae)

@Acies, I'll check that out, thanks. Smile Yes, it does refer to the correct file.