Page 1 of 1

Tutorial Request: Breakable glass - HaloCE

Posted: Sat Feb 05, 2005 6:18 pm
by picklebro
anyone have a tutorial for breakable glass? I found one here for destructible scenery.

I might be able extrapolate how to make breakable glass after some tinkering but I thought one of you expert gurus would be willing to post some sort of tutorial about how to do specifically breakable glass.

If you are willing to do so, Thanks in advance!!!

Apologies if this is in the wrong forum.

Posted: Sat Feb 05, 2005 7:44 pm
by hitmanbob
its basicly destructible scenery but with a model animation for when it dies

Posted: Sat Feb 05, 2005 8:00 pm
by picklebro
thanks, that helps - if anyone would like to be more specific with some how-to that would be awesome, but thanks again hitmanbob, that does at least get me pointed in the right direction.

Posted: Sun Feb 06, 2005 8:13 am
by dr. funk
hey hey! basically, I always lose tutorials on this site too, so I always copy them to a notepad file and save them in my Tutorials folder.... very helppful! I have a bunch there concerning all models, physics, and sounds, and also Glass! It was something I was searvhing for for a very long time! I honetsly can't remember who wrote it, but, here you go:

"Ok, I have breakable glass in my map I'm working on, so I should be able to help you here. It is best not to make it scenery, b/c if you use too much of it, the game begins to slow down and lag. So, as someone above me posted, you have to put a "-" (w/o quotes) at the end of the material name of the material you are going to use for the glass. That will make it breakable. Now, make extra faces covering the gaps you want to be filled with glass (following the sealed world rules and creating them using the vertexes of the "window frame"), then separate them into a separate object, named whatever you like, but I reccomend the simple name "Glass" . Then apply the material to all of those faces, UVW map them, and you should be set. As for the varying levels of breakableness....I'm not sure if that's possible....but then again, everyone always thought that the UI would never be moddable, and now Kornman's coded a prog that allows new UI widgets to be created.....so I guess anything's possible somehow....I just don't know how to do it yet.



Probably didn't work b/c you didn't have the double-sided symbol on the material name...forgot to mention that has to be there too for it to work right (I think). So the material name would look like "glass%-" (w/o quotes, replacing "glass" with the material name you're using), the % for double sided, and the - for breakable. It's weird how it would give me open edges until I made it double-sided, then it all worked fine as I described.

Anyways, hope that helped clarify things a bit. "

So basically, the glass sheet has to be square, the frame has to be larger than the glass of course (so the sheet fits snuggly in the frame), and you have to name your texture with "%-" at the end, so the compiler recognizes it as glass and gives it the destructible properties with the correct animation.

Hope that helped! :)

Posted: Sun Feb 06, 2005 9:54 am
by picklebro
"Sweet jibbley giblets!", as Sarge of RvB would say! Thanks!!! I too save tutorials- no sense in losing a bit of wisdom I figure.