Giter Site home page Giter Site logo

mph-viewer's People

Contributors

arrowcase avatar hackyourlife avatar nonegiven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nonegiven

mph-viewer's Issues

Entity info

I started going through the entity types to figure out a few fields. Haven't got too deep into it, and before I do I wondered, can you share the format info you mentioned for other entity types? If you've already got just the format I can put together a list of the model IDs for platforms, objects, etc.

Here's what little I have so far -- you may already have all this.

  • All the structs start with the 4-byte header and the 12-byte position vector
  • Type 2 is a player spawn point (single-player and multiplayer)
  • Type 6 is a spawner for enemies, keys, etc.
  • Type 11 is a camera position, e.g. for side views of Morph Ball puzzles, maybe also spectator cam

And a few properties for the type 3 - door format (total size 104):

Offset Type Description
0x00 Header (4)
0x04 Vector3Fx (12) Position
0x1C Vector3Fx (12) Facing direction (unit vector)
0x38 uint (4) Some ID
0x3C uint (4) Model ID
0x48 string (32) Name
Model ID Model
0 AlimbicDoor
1 AlimbicMorphBallDoor
2 AlimbicBossDoor
3 AlimbicThinDoor

I made a toggle in my viewer (not in master yet) to render unknown entities with the unused pick_wpn_missile model in different colors -- looks pretty nice.

01

02

rooms.c data source

I'm finally back to poking around with MPH formats. I wrote a model viewer of my own that's basically just an improved dsgraph, with some export features (including COLLADA export copied from mph-model-viewer) and a lot of format info copied from your repo.

I'll probably have several questions at some point in time, especially about animations, if you don't mind. But for right now a simpler question: Was the information in rooms.c (fog and light settings, for example) extracted from the game somewhere, and if so where?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.