Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another polygon found ! (0x14) #24

Open
aybe opened this issue Nov 11, 2015 · 1 comment
Open

Another polygon found ! (0x14) #24

aybe opened this issue Nov 11, 2015 · 1 comment

Comments

@aybe
Copy link

aybe commented Nov 11, 2015

These were pretty easy to figure out: camera paths

newplot
newplot 1
newplot 2
newplot 3
newplot 4
newplot 5
newplot 6

Will post the details by tomorrow ...

Good night 馃拑

@aybe
Copy link
Author

aybe commented Nov 12, 2015

Here's the struct:

                case PrmPolygonType.Camera: // 0x14
                    var i1 = reader.ReadInt32BEs(4);
                    var i2 = reader.ReadInt32BEs(4);
                    var i3 = reader.ReadInt32BEs(4);
                    var unk = reader.ReadInt32BE();
                    var camPolygon = new CamPolygon()
                    {
                        Header = header,
                        Vec1 = new Vec3I32(i1[0], i1[1], i1[2]),
                        Name1 = i1[3],
                        Vec2 = new Vec3I32(i2[0], i2[1], i2[2]),
                        Name2 = i2[3],
                        Vec3 = new Vec3I32(i3[0], i3[1], i3[2]),
                        Name3 = i3[3],
                        Unknown = unk
                    };
                    return camPolygon;

All vectors are identical, names are most of the time either garbage or non-alphanumeric chars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant