Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, Nymphodora, Quad, TipmyPip, Imhotep), 852 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
multiple breakable items #149216
08/20/07 17:12
08/20/07 17:12
Joined: Aug 2007
Posts: 27
M
Memphis Offline OP
Newbie
Memphis  Offline OP
Newbie
M

Joined: Aug 2007
Posts: 27
hi, wasnt too sure whether to post here, but anyhow... i've a couple of questions i didnt find answers to here in the forums...

i'd like to be able to create shattering glass.. ie windows and shelving... but also the other question is multiple objects, if for example there is 5 boxes on top of glass shelves, and the shelves are shattered, what is the best way of simulating gravity... baring in mind, there could be 20 shelves with maybe 30+ boxes in total....

any advice, and help would be appreciated, thanks in advance...


Meka][Meka || TeamElite Owner Meka-Meka Programmers
Re: multiple breakable items [Re: Memphis] #149217
08/20/07 17:23
08/20/07 17:23
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
There are several ways to simulate shattering glass. It all depends on the degree of realism you are looking for. I will explain one method which is easy to do and looks still good:

  • create your table (or window) as two seperate entities: the table itself and the glass plate as seperate model. Arrange them in WED so that they fit together.
  • Take the glassplate and save it as seperate file. Cut the glass plate into pieces, but keep them together (just slice the polygons)
  • there is a explosion plugin in Milkshape, which can shatter polygons away. Load the slice glas plate into Milkshape (or any other modeler which supports such a feature) and play with the values (explosion point, flying direction, speed, rotation, etc.). The plugin will create an animation for you. The more frames you will use, it will look smoother and more realistic
  • save the animated file as MDL file
  • when it comes the time to shatter glass, morph the glassplate into the sliced and animated glassplate
  • play the animation and start other effects. Maybe you can add/spawn glass shatters under the table
  • make the animated plate passable so that the boxes can pass through the table (make the table polygoncollision enabled)
  • you can script the box physics, use newton or the A6 physics engine or fully script the box behaviour (prescripted)


I hope this gets you started

Ciao - Christian

Re: multiple breakable items [Re: HeelX] #149218
08/20/07 18:02
08/20/07 18:02
Joined: Aug 2007
Posts: 27
M
Memphis Offline OP
Newbie
Memphis  Offline OP
Newbie
M

Joined: Aug 2007
Posts: 27
hi, thanks for that, interesting technique

is there a way of removing surfaces of the window, ie deleting polygons from the window?

i'm not to worried about the animation as of yet.... thanks again


Meka][Meka || TeamElite Owner Meka-Meka Programmers
Re: multiple breakable items [Re: Memphis] #149219
08/22/07 14:16
08/22/07 14:16
Joined: Aug 2007
Posts: 27
M
Memphis Offline OP
Newbie
Memphis  Offline OP
Newbie
M

Joined: Aug 2007
Posts: 27
anyone with any ideas if it is possible to remove single polygons from models?


Meka][Meka || TeamElite Owner Meka-Meka Programmers
Re: multiple breakable items [Re: Memphis] #149220
08/22/07 16:57
08/22/07 16:57
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Quote:

anyone with any ideas if it is possible to remove single polygons from models?




This is not possible.

Re: multiple breakable items [Re: HeelX] #149221
08/22/07 17:40
08/22/07 17:40
Joined: Aug 2007
Posts: 27
M
Memphis Offline OP
Newbie
Memphis  Offline OP
Newbie
M

Joined: Aug 2007
Posts: 27
ok thanks, maybe i will jus have to use the method you posted thanks, unless there is any other ways of removing parts of the window, ie such effects like in half life 2 games, shooting out glass... thanks anyways


Meka][Meka || TeamElite Owner Meka-Meka Programmers
Re: multiple breakable items [Re: Memphis] #149222
08/30/07 05:26
08/30/07 05:26
Joined: Nov 2005
Posts: 149
Vienna, Austria
E
Edgecrusher Offline
Member
Edgecrusher  Offline
Member
E

Joined: Nov 2005
Posts: 149
Vienna, Austria
Quote:

anyone with any ideas if it is possible to remove single polygons from models?




Speaking of this reminds me of the glass in Half Life 2. Anyone got a clue how they did that?


A6 Commercial A7 Commercial
Re: multiple breakable items [Re: Edgecrusher] #149223
08/30/07 16:37
08/30/07 16:37
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
Perhaps by writing black holes in the alphachannel of glass model

Re: multiple breakable items [Re: Shadow969] #149224
08/31/07 07:24
08/31/07 07:24
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline
Junior Member
Metal_Man  Offline
Junior Member
M

Joined: Mar 2007
Posts: 75
when hit, the large panel of glass could be replaced by several entities that are square pieces of glass that as a matrix form the window. Then, the glass pieces at the point of collision are removed and the surrounding squares change their textures to have jagged, shattered, broken edges.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1