Page 1 of 1

Object created in MilkShape 3d partially shown [Solved]

Posted: Fri Oct 20, 2006 4:42 pm
by DarkHelmet
Hi all

I've just started learning and using milkshape.
(No, this is not gonna be a noob question)

Just to start easy i created a small tunnel, skinned it and exported it using bconstructor.
I used an odf of a prop.

In ZE it looks fine.
In game only 1 wall is visible. The other wall, the ceiling and the floor have disappeared.
I fall through the floor as well and bullets go throught the disappeared wall. So it not just invisible.

I got no errors when exporting.
When munging there was a "no collision found, creating default collision"-error (or something).
In the PC_mungelog.txt i got "Error 80040154" several times.

screendump from ZE
Image

screendump in game
Image

my odf
[GameObjectClass]
ClassLabel = "prop"
GeometryName = "corridor.msh"


[Properties]
GeometryName = "corridor"
FoleyFXGroup = "metal_foley"
Has anyone got an idea what went wrong and how to fix this?


thnx

DH

RE: created object partially shown

Posted: Fri Oct 20, 2006 5:49 pm
by t551
Did you triangulate the mesh before you exported? The game sometimes has trouble handling polygons.

RE: created object partially shown

Posted: Fri Oct 20, 2006 6:39 pm
by minilogoguy18
he used ms3d it seems and ms3d doesnt draw anything higher than a triangle, triangulation has nothing to do with it btw, all polygons are converted to triangles when exported, if theres missing polygons its cause theyre flipped and no game eninge in existance renders backfaces unless you make a shader to tell it to 2-side cull it.

Posted: Sat Oct 21, 2006 11:33 am
by DarkHelmet
What i did was to create a box, stretched it in the Z-direction, extruded in in X- and Y-direction to form a tunnel (i know this can be done more efficient).
The vertices of the first box are welded the those of the last (extruded) box.
I don't think any of the faces are backwards. Especially those of the 1st box. The visible wall isn't part of the 1st box.

A screendump of milkshape. The 1st box i started from is selected.
Image


As a test i selected a few faces of each wall and floor and ceiling and reversed the vertex order.
In game 1 part of the visible wall is shown from 1 side, the other part from the other side.
The disappered wall and the floor and ceiling stay disappeared.

Screenshot from game. On the right the original tunnel, on the left the same but with parts of the wall with the reversed vertex order.
Image


in ZE you can see which faces i reversed.
Image

It looks like something else is causing this problem.

created object partially shown (solved)

Posted: Tue Oct 24, 2006 3:00 pm
by DarkHelmet
I found the problem.

When i build an other object again1 part was showing in the game.
Then i realised what was causing the problem.
I followed the tutorial http://www.tutorialguide.net/skinning_a ... orial.html (good site btw).
I had grouped several faces (a wall group, ceiling group) and skinned them individually.

Only the first group i skinned was rendered in the game (although ZE rendered them all).
I selected every face and regrouped them as 1, reapplied the skin and now everything is rendered.

Problem solved.