M3GToolkit: m3g utilities

Hi, i had started to develop a set of utilities for M3G files.
For now i had almost finished the core for save M3G and a small api for read ASE files.
I have not so much time lately, so only I had can do 2 simple samples to convert “m3g code” to m3g, and another to convert ase to m3g.
Its open sourced, so if anyone wish help doing some exporter for other formats, is wellcome :slight_smile:

The url for download is:

http://www.java4ever.com/index.php?section=j2me&project=m3gtoolkit&menu=main

Thanks!

[quote]Hi, i had started to develop a set of utilities for M3G files.
For now i had almost finished the core for save M3G and a small api for read ASE files.
I have not so much time lately, so only I had can do 2 simple samples to convert “m3g code” to m3g, and another to convert ase to m3g.
Its open sourced, so if anyone wish help doing some exporter for other formats, is wellcome :slight_smile:
[/quote]
Muchas gracias !!!

Well VRML will be a useful format … and there are probally things done java3d side …

I will have a look at it … soon

BTW: is GPL the best licence to use ?
What about a less restrictive one such as LGPL …

Stay tuned

Thanks, if u have a bit of time will be great u look and if u wish start to do some exporter :slight_smile:

Im thinking more it as application than a library, so i think GPL is a good option.
The interesting is the m3g file it generate, and it can be used for commercial products too.

Hi, We have released a M3G converter called Juinness available at http://sourceforge.net/projects/juinness/

[quote]Hi, i had started to develop a set of utilities for M3G files.
[/quote]
I’ve found a couple of bug , where can i bugreport them ?
before the project go to a FLOSS place - http://gna.org is my favorite

I use this place to log them :


// Fix m3gtoolkit-0.1
// -------------------------------------------------------------------------------------------------------

public Texture2D(Image2D image)
{
blending=FUNC_MODULATE; // <= fix here
// -------------------------------------------------------------------------------------------------------
protected Transformable()
{
orientation=new float[3]; // orientation axis is 3 != 4

// -------------------------------------------------------------------------------------------------------
public abstract class M3GObject
{
public static int byte EXTERNAL_REFERENCE = 0xFF; // byte=-1; !=255 ?128 …

  // byte type= (byte) is.readByte(); // orig // confusion on signed byte
   int type= is.readByte(); //! Object type in int not byte

// -------------------------------------------------------------------------------------------------------
//file:M3GFile

  private Vector buildReferenceTable()
  {
    // ...
  •            ExternalReference[] refs = externalReferencesSection.getExternalReferences();
    
  •            for (int i=0;i< externalReferencesSection.getExternalReferenceCount(); i++)
    

{

  •                refs[i].buildReferenceTable( table );
      // ...