Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mownage

Pages: [1]
1
Support / loading animation help
« on: March 13, 2014, 07:44:38 pm »
I am curious to know, how do most people do animation on jPCT-AE?

I have read the wiki guide (http://www.jpct.net/wiki/index.php/Loading_3ds_Keyframes_from_Blender) - using 3ds model keyframes to create an animation. But I am not very good with 3ds and blender.

I downloaded a 3ds model which included animation files in .dae and .fbx format (I believe these are the animation files - correct me if I am wrong) . Is it possible for me to actually directly use these files in my code or will I have to go through another process in order to use it?

2
Support / Out of memory when adding textures
« on: March 10, 2014, 08:49:59 pm »
I am new to Jpct-ae and have looked at some projects created by people and they look amazing. Now I want to create something that is amazing too... :)

I can add objects but when I try add the textures, my program runs of of memory...  :'(

Just a snippet of my code:


Code: [Select]

               
world = new World();
world.setAmbientLight(20, 20, 20);

sun = new Light(world);
sun.setIntensity(250, 250, 250);

           TextureManager.getInstance().addTexture("DLC12_Nightwing_AS_Body_D.png", new
        Texture(context.getApplicationContext().getResources().openRawResource(R.raw.nightwing)));
       
        TextureManager.getInstance().addTexture("Equipment_Resonator_01_D.png", new
        Texture(context.getApplicationContext().getResources().openRawResource(R.raw.equip)));   
        TextureManager.getInstance().addTexture("NightWing_Weapons_Darts_D.png", new
        Texture(context.getApplicationContext().getResources().openRawResource(R.raw.weapon)));         
        TextureManager.getInstance().addTexture("DLC12_Nightwing_AS_Head_D.png", new
        Texture(context.getApplicationContext().getResources().openRawResource(R.raw.head)));     
       
                stream = context.getApplicationContext().getResources().openRawResource(R.raw.nw);
                stream2 = context.getApplicationContext().getResources().openRawResource(R.raw.nw2);
       
                thing = Loader.loadOBJ(stream, stream2, 1f);

                thing[0].build();
                cam = world.getCamera();
          world.addObject(thing[0]);         
       

nw is an .obj file that is 2.63mb,
nw2 is a .mtl file that is 615 bytes,
nightwing.jpg is 717kb,
equip.jpg is 189kb,
weapon.jpg is 245kb,
head.jpg is 225kb.


When I don't include the texture files, I can see the model but there are no textures. When I try add the textures (I have looked at the wiki page and it said that it automatically loads them based on the name of the file) I get out of memory yet I don't see these files being that big? I see some crazy stuff that people have created and their graphics are a lot bigger than mine ;o....

Could anyone see the problem that I am experiencing?

Pages: [1]