Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
/ PyM3G Public archive

Python library for working with JSR 184 .m3g files

Notifications You must be signed in to change notification settings

Zi9/PyM3G

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyM3G

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

This repo is archived. For the latest code check out this fork

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

Contributors 2

  •  
  •  

Languages