Mesh Editor

This forum is currently in read-only mode.
From the Asset Store
mesh 3D objects "hemisphere, oval, tunnel and other various shapes."
  • i really appreciate the new feature, and i was wondering if it was possible to edit the meshes in any other editor, since i've never heard of the .mesh format before.

    if that's not possible, i'd be interested in the rationale behind inventing another 'proprietary' format versus rolling with any of the existing, widespread & readable ones...

  • because all it is is coordinates for distort maps

    it isn't an actual 3d mesh that you can rotate

    it also is much more trouble writing a plugin to interpret an existing format than to just make one up

    at least in this case

  • It's not really a format, it's more a piece of functionality which has no reason or compelling way to be compatible with any other application.

  • I just made up the .mesh format purely for the purposes of saving from the mesh editor and importing in to games. It's very simple, just a list of points essentially. I can't see how it would be useful to use another format, I'm sure nearly every other editor in the world has much more advanced features which can't be reproduced in a simple sprite mesh. Also, it's not a proprietary format, the Sprite object and its .mesh reading/writing code is all open source and I'd be happy to detail the format to anyone who wants to write format converters or anything like that.

  • well, the beauty (& potential) of a feature is in the eye of its users :)

    you never know what people might come up with, so i'm a strong advocate of offering as many entry points as possible.

    ashley, it would be very nice if you could spare the time to drop me a note (or wikipage) describing the format; i'd really like to try this, but i'm too much of a scriptkiddie to seriously unravel constructs source code.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • OK, the format of saved meshes in the Sprite object is:

    A 4-byte ASCII string saying 'HSEM' ('MESH' backwards because I'm lazy about endian) to identify the MESH file

    int32: version integer (always 1 right now, reserved for future use)

    int32: horizontal number of points

    int32: vertical number of points

    Then, repeated for each point (number of times = horizontal points x vertical points), in column order:

    float32: x offset (as a fraction of the original image width)

    float32: y offset (as a fraction of the original image height)

    float32: z elevation

    float32: u offset

    float32: v offset

    float32 x 4: a, r, g, b for point opacity and filter, from 0.0 to 1.0.

  • thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)