Skip to content
forked from Zi9/PyM3G

Python library for working with JSR 184 .m3g files

Notifications You must be signed in to change notification settings

BaalNetbek/PyM3G

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyM3G

A small library to parse JSR 184 format .m3g files. These files are mostly used in J2ME mobile games.

Example usage


Included is a small demo utility to print out all the properties of a .m3g file when the module is called directly:

$ python -m PyM3G testfiles/vrally/car_subaru.m3g
(0) Header:
        Version: 1.0
        Has external references: False
        Total file size: 6277
        Approximate content size: 6277
        Authoring field text: ''

(1) VertexArray:
        Component Size: 2
        Component Count: 3
        Encoding: 0
        Vertex Count: 339
        Vertices: Array of 339 items

(2) VertexArray:
        Component Size: 1
        Component Count: 3
        Encoding: 0
        Vertex Count: 339
        Vertices: Array of 339 items

(3) VertexArray:
        Component Size: 1
........

About

Python library for working with JSR 184 .m3g files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%