Kuribo64
Views: 14,036,556 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
04-06-21 12:43 AM
Guest:

0 users reading Intro Cameras | 1 bot

Main - Archived forums - SMG documentations and tutorials - Intro Cameras New reply

Pages: 1 2
shibboleet
Posted on 01-16-13 07:07 PM (rev. 2 of 01-16-13 07:07 PM) Link | #6456
It seems that the Intro Cameras are different than any other. They operate differently, and can only be edited by hex, not like anarchy, plain hex.

The file format is canm and the coordinates (Possibly, this can be it. But, I can be wrong) would be shown by changing the view to view the numbers as Float, and making it organize it as Big Endian u32 (4 bytes)

[image]
Now, in order to prove this, I have to literally edit a camera in this, and test to see if the camera works.

Also, to not confuse stuff, we already know how the coordinates and scales are done, so I know what to edit.

____________________
a

MK7tester
Posted on 01-17-13 09:50 PM Link | #6704
Are you talking about the Fly-In Camera or the Star Select introduction camera?

shibboleet
Posted on 01-17-13 09:50 PM Link | #6705
Star select introduction camera.

____________________
a

MK7tester
Posted on 01-17-13 09:52 PM (rev. 2 of 01-17-13 09:52 PM) Link | #6706
Ah, those, i've always wanted to edit those, nice find.

But it'll be tricky to edit.

shibboleet
Posted on 01-17-13 09:58 PM Link | #6708
Yeah, knowing that there is no hex pattern worth shit.

It still can be seen a coordinates, but if you edit them, crash.

____________________
a

MK7tester
Posted on 01-17-13 10:00 PM Link | #6709
;_;

Well then that's too bad, we cant even edit them? Bummer. :sob:

shibboleet
Posted on 01-17-13 10:27 PM Link | #6717
Yes we can, I probably just didn't do it right.

____________________
a

MK7tester
Posted on 01-18-13 12:11 PM Link | #6773
It would be good if Whitehole could attain a capability for editing this kind of stuff.

NWPlayer123
Posted on 01-18-13 01:29 PM Link | #6788
Yes however even anarchy doesn't support it since it's not a BCSV so it crashes/doesnt load
So....we would have to parse this manually once we figure out how it works in the first place

____________________
"I hate playing musical chats" ~ Quote of the month

Phantom Wings
Posted on 01-18-13 08:30 PM (rev. 3 of 01-18-13 09:10 PM) Link | #6913
It's a keyframe setup. The header is size 0x20 with constant values. Following that are keyframe indexers. Listed in order, they are:

0x20 x_pos
0x2C y_pos
0x38 z_pos
0x44 dir_x
0x50 dir_y
0x5C dir_z
0x68 unknown
0x74 unknown

Each keyframe indexer is size 0xC

keyframe_indexer:
0x00 element_count
0x04 table_start_index
0x08 blank

If element_count is 1, then the camera will use only 1 float value for that field throughout the intro. Otherwise, if element count is greater than 1, then the camera will use multiple keyframes which are 3 floats each:

keyframe:
0x00 time
0x04 value initial_value
0x08 transition_speed velocity


The value table is at 0x80. It starts with a uint value for its size and then lists the table values as floats. It seems to always end with the floating point values 0.1, 1E+9 and NAN.

shibboleet
Posted on 01-18-13 08:31 PM Link | #6914
oh wow, that's a ton of help you just showed there. Thanks!

Is there anything else?

____________________
a

Phantom Wings
Posted on 01-18-13 08:34 PM Link | #6916
I think that's it for the .canm files. There's just the two unknown values which might be worth messing around with.

shibboleet
Posted on 01-18-13 08:35 PM Link | #6917
Yeah, I could look into those for a bit.

But really, so it's not coordinates that make it move? Or is what's listed above controls the camera and what it does.

____________________
a

NWPlayer123
Posted on 01-18-13 08:38 PM Link | #6924
Ohgod, keyframes. That should be SPLEDNIFOROUS (bad spelling) >.<

____________________
"I hate playing musical chats" ~ Quote of the month

shibboleet
Posted on 01-18-13 08:39 PM Link | #6925
Yeah, it will be a pain to edit ;-;

____________________
a

NWPlayer123
Posted on 01-18-13 08:40 PM Link | #6926
I know how much of a pain keyframes are just by working with flash. And this is in 3D too, so there's a whole new axis

____________________
"I hate playing musical chats" ~ Quote of the month

shibboleet
Posted on 01-18-13 08:40 PM Link | #6928
Plus, have the coordinates even been found? Or are they just not used, and we have to go to the pain-in-the-ass part.

____________________
a

NWPlayer123
Posted on 01-18-13 08:45 PM Link | #6931
I can *try* making a reader to parse it.

____________________
"I hate playing musical chats" ~ Quote of the month

shibboleet
Posted on 01-18-13 08:46 PM Link | #6932
Anything is welcome to help with this.
You can try, and I hope it works :P

____________________
a

Phantom Wings
Posted on 01-18-13 08:48 PM Link | #6933
The file still stores the coordinates, they just aren't stored as 3D Vectors. Instead they are broken up into single values that can be animated individually. Each coordinate is then interpolated according to the keyframe time, value and transition_speed fields. Imagine one individual graph for each of the x_pos, y_pos and z_pos values. Each graph is plotted with its value over time. The curves of the graph are controlled by the transition_speed.
Pages: 1 2

Main - Archived forums - SMG documentations and tutorials - Intro Cameras New reply

Page rendered in 0.035 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 235/235, time: 0.028 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.