×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    1

    [M3G]Sprite3D's Bug??!!

    Hi all, I am developing a M3G game, the Sprite3D is too hateful~ I created a Sprite3D by code, in S65 emulator it can be displayed but can't work correctly,;but when I copyed the app into the phone the Sprite3D can't be displayed. I used Sprite3D.isRenderingEnabled() method, the result is false. Here is the code to create Sprite3D

    private void createEnemy()
    {
    try{
    imgEnemy = new Image2D(Image2D.RGB,Image.createImage("/enemy.png"));
    appEnemy = new Appearance();
    matEnemy = new Material();
    appEnemy.setMaterial(matEnemy);
    sprEnemy = new Sprite3D(false,imgEnemy,appEnemy);
    sprEnemy.setCrop(0,0,64,128);
    sprEnemy.setTranslation(10.0f,-30.f,10.0f);
    myWorld.addChild(sprEnemy);
    sprEnemy.getTranslation(wxyz); //return {0.0f,0.0f,0.0f}
    sprEnemy.setRenderingEnable(true);
    isRB = sprEnemy.isRenderingEnabled())? 1:0; //return false
    }catch(Exception e){
    System.out.println("Create Enemy Error!");
    }
    }




    Then I tried to create Sprite in 3DMax, but both in emulator and phone it can't initialize.

    That's a bug? And who can post up some example code about how to use Sprite3D?

    Thanks a lot.
    Last edited by pilgrim_cn; 2005-05-09 at 10:15.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×