PDA

View Full Version : Breakable Surfaces?



randreach454
June 6th, 2007, 01:18 PM
I looked in the h2vek help file and couldnt find anything..
I want to create breakable surfaces like glass, and also a trap door... I was wondering if this is done by materials or object naming?

Like how in Zanzi the glass is breakable, or the little posts around the turrets are breakable. Since we cant create scenery as of yet that I know of, is this possible and howso?

thanks

Lightning
June 6th, 2007, 03:49 PM
Make it exactly like in CE.

Name the material with a "%-" on it. (eg: "Glass%-")

That would make a two-sided breakable glass pane.

et_cg
June 6th, 2007, 09:32 PM
Actually since we have Physics now, do it the cool way.

Instanced Geometry.

Look it up in the help file

randreach454
June 6th, 2007, 09:59 PM
ok thanks, so after reading instanced geometry in the help file, i basically just did what lightning said to do, add %- in front of the name of my object..

Im gonna try that out, if its not going too good im gonna try this prefix instead of -

$
Physics Object Prefix

et_cg
June 6th, 2007, 10:12 PM
The help file describes how Zanzibar pulled it off too.

randreach454
June 6th, 2007, 10:21 PM
really? I must have missed that.. will look again, especially since what i just tried didnt work, the %-.....

Lightning
June 6th, 2007, 10:34 PM
You name the material "%-", not the object.

Object: %glass
material: "Glass%-"

et_cg
June 6th, 2007, 10:39 PM
With different permutations.

Roostervier
June 6th, 2007, 11:42 PM
The process is actually really easy! I am uploading a video to youtube of it in my map. All you have to do is what it says in the help file, minus the "g h" crap.

et_cg
June 7th, 2007, 01:38 PM
Yep, nothing impossible.

randreach454
June 7th, 2007, 03:08 PM
foudn your video flyinrooster
http://youtube.com/watch?v=EIvSJ91SX34
Um, if I dont seem to be a pain, could you possibly send me a max file of your damnation port?
I dunno, I usually make the smallest of mistakes and well i still cant get them to work...

Roostervier
June 7th, 2007, 03:24 PM
Do exactly what the help file says, except leave out the "g h" crap. I can't get that to work. Tessellate your glass and mess around with the optimization. Then make 3 to 6 materials. i.e. "dam glass01%-" to "dam glass06%-". Make those shaders, glass01 through glass06. Then in max, select the faces and change its material ID to be in that "group" of glass that breaks when shot. So say you shoot group glass01, then that part is the part that breaks.

randreach454
June 7th, 2007, 08:50 PM
yea but im not even worried about that, I just want it one breakable surface for now, so I dont have to create more materials and tesselate etc..
so I do %- on the material and the actual mesh should have % at the begining of the name or after?
ex
%glass01
or glass01%

Roostervier
June 7th, 2007, 08:53 PM
Object = %glass
Mat = glass%-

Lightning
June 7th, 2007, 11:21 PM
You name the material "%-", not the object.

Object: %glass
material: "Glass%-"


:P

spookers622
July 12th, 2007, 08:58 AM
What do you exactly mean by object? Does the galss have to be in a frame? Is it actually part of the level or a seperte plane or something?

randreach454
July 12th, 2007, 09:32 AM
the glass is instanced geometry. Meaning it is its own model, linked to the b_levelroot(aka frame)
so youd make either a box or a plane, assign it with the name %glass(%means its instanced)
and then create a material with its name as glass%-

spookers622
July 12th, 2007, 09:43 AM
i just tried it and when i shoot it nothing happens... and for some reason th glass is only one sided. also i got this error every time i use tool: http://img459.imageshack.us/my.php?image=toolerror1cf4.jpg

Roostervier
July 12th, 2007, 10:56 AM
That is why you add % in the material name as well. % For an object means instanced geometry. % For a material means double-sided. - In material means breakable surface.

spookers622
July 12th, 2007, 10:59 AM
i did that

armoman92
July 12th, 2007, 11:45 AM
just out of the blue, is making water similar to glass at all. I mean when you make the water, do u make a new plane and link it to your box? do u give it a special name as well (eg. + media). You dont have to elaborate, ayes or no will do... for now.:)

spookers622
July 12th, 2007, 12:08 PM
u dont have 2 link the plane i dont think... maybe thats y my sapien wouldn't load lol

et_cg
July 12th, 2007, 04:12 PM
Yes, you have to link it to the b_levelroot, or else the water will not export.

randreach454
July 12th, 2007, 10:18 PM
did you name the material that, and the diffuse map with the %- or only the material?
If you only did the material good, if you did both, bad and thats why my glass didnt work for the longest time..

spookers622
July 13th, 2007, 08:59 AM
well i made five seperate glass pieces (all different objects) named %glass01,%glass02,etc., the shaders are called glass01, glass02, glass03, glass04, glass05, the bitmap is the dcr_bridge and i named the materials either glass% or glass%- (depending on whether i wanted it breakable or not)

and the glass was floating in mid air

spookers622
July 17th, 2007, 01:09 PM
w8... do the shaders have to have the %-