Home Gallery Resources The Team Rules chat Login Register
Pages: [1]
Author Topic: best way to change stage collisions after rotating a stage model?  (Read 1881 times)
0 Members and 2 Guests are viewing this topic.
drspaceman
Intermediate Kitten
**
Offline Offline

Posts: 17


View Profile Awards
« on: May 09, 2012, 06:38:42 PM »


so I've been messing around with the new brawlbox, and have been playing with the x,y, and z rotations of a stage just for fun. the problem is when i do this it of course changes the position of the stage model, so the collision data (floor and stuff) is usually messed up. i know how to change collision data, but how would i view the position of the model with the newly changed x y and z values?
Logged

SomeKindOfMetroid
Expert Kitten
****
Offline Offline

Posts: 89


View Profile Awards
« Reply #1 on: May 10, 2012, 09:53:51 AM »


If you rotate a model, there are probably ways to make the collision data match (and there definitely are for StagePosition stuff). But if you rotate a model and its z-position changes, you'll need to use a code to change z-axis movement or characters will fall anywhere there isn't a collision at z = 0. Characters only move in the x and y directions normally, and their z-coordinate is always 0, so...

For one thing, BrawlBox doesn't really allow collision editing in three dimensions. There's probably a way to just edit values in the collision data, but in the program's collision editor, you'll notice there's no way to bring collisions towards or away from the screen.

So I guess what I'm saying is, it's probably not worth it. For example, if you spun Battlefield so the left edge faces the screen, and then did the absurd amount of work needed to make the collisions fit... You could achieve the same affect by just angling the camera!

Unless... Well, if you were saying you want to rotate the model and then make new collisions along z = 0, then you could do that. But that's pretty obvious and I don't think you were asking about that.
« Last Edit: May 10, 2012, 09:59:11 AM by SomeKindOfMetroid » Logged

drspaceman
Intermediate Kitten
**
Offline Offline

Posts: 17


View Profile Awards
« Reply #2 on: May 10, 2012, 03:46:22 PM »


ah, thank you for the reply! i thought id add some pictures to show you what i mean


this is opassa beach by br3compactor. I really like the idea of the stage but i was gonna try to add some stuff to it. but first of all i was gonna rotate the model a bit so u can see the sides as well as the sea


this is after i modified the CHR file in brawlbox. basically i just changed the y rotation and x rotation a bit. i didnt touch the z. but as you can see in the pic the floor collision doesnt match the model anymore. I was hoping there was an easier way than just editing the collision trial by error style
« Last Edit: May 10, 2012, 03:47:40 PM by drspaceman » Logged

SomeKindOfMetroid
Expert Kitten
****
Offline Offline

Posts: 89


View Profile Awards
« Reply #3 on: May 10, 2012, 05:53:45 PM »


And now you want to sort of "match" collisions to the stage? Unfortunately, that isn't really possible. It's a little hard to explain, but basically, with this new perspective you have on the model, there's no way that the original collisions can simply be transformed/moved/flipped/whatever to fit it.
Logged

drspaceman
Intermediate Kitten
**
Offline Offline

Posts: 17


View Profile Awards
« Reply #4 on: May 10, 2012, 05:55:21 PM »


ah thanks for the help. im gonna just hafta suck it up and get the collisions right the ol fashioned way

EDIT: well i figured out what i was looking for basically. I'm posting this in case anyone else has trouble. if you change something in the chr file (rotating a stage a bit) find the bone in the model that corresponds to the chr data (it should be named the same) and make its values the same as the ones in the modified chr. For example, in the opassa beach stage, in the chr file of nw4r root (the model i wanted to rotate) i changed the y rotation from 180 to 230. now if you dont do anything else and u go into the collision editor the camera will focus on where it was before. to change this, preview the model mdl0 file and expand the bones and animation tabs. find the bone that corresponds to the one you modified in the chr then simply paste the new coordinates in the animation tab for the bone (should be named the same as the chr file, in my case they were both named nw4r root). now the camera will focus on the new stage position instead of what it was before! if anyone is confused just post or pm me, im really new to this but im happy to help.
« Last Edit: May 10, 2012, 07:39:16 PM by drspaceman » Logged

Pages: [1]
Print
Jump to: