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 - great_apple_day

Pages: [1]
1
Support / Loading MD2 - ArrayIndexOutOfBoundsException
« on: July 25, 2012, 07:49:58 pm »
Hey guys,

I'm loading an MD2 file without any sort of animation
but I got "ArrayIndexOutOfBoundsException" while
jPCT is trying to convert the MD2 format to jPCT format.
What could be the problem?

I'm able to open the file in any modeling software easily and
I have tested jPCT with another MD2 and it worked like a charm.
What could be the problem with this particular file?

The MD2 is attached

Thanks in advance.


[attachment deleted by admin]

2
Support / Progress bar when loading an MD2 file?
« on: July 10, 2012, 12:47:23 pm »
Dear guys,

Is there anyway to extract the loading progress when the Loader is loading an MD2 model?

Thanks in advance.

3
Support / Dynamic object loading
« on: May 05, 2012, 11:28:28 am »
Hey guys,

I've got a couple of MD2 files with simple animation. All I want to do is to load the models based on the
AR marker. For instance if the AR tracks an apple picture I want to load the "Apple.md2" and if it changes
to banana picture the model needs to be changed to "Banana.md2".

AFAIK loading all the model at the beginning seems impractical. What is the best approach to load models 
dynamically at runtime?

Should I load all of them at once and try changing the visibility on the fly?

Thanks in advance
Best,

4
Support / Using ModelView Matrix
« on: May 02, 2012, 12:06:58 am »
Hey guys,

I applied the AR ModelView matrix to camera (directly, without any manipulation) by using these codes:

mMatrix.setDump(mModelviewArray);
cam.setBack(mMatrix);

AR toolkit uses Right-Handed coordinate system but magically these lines of codes work and my model
shows up on the target and move accordingly. But the problem is the model is upside down and it lays
on its side. I tried to rotate the camera 90 degree (also -90) around the X axis (also Y,Z) but by doing
that the model disappears.

What could be the problem?

If I rotate the model itself it works fine but I think that is a little ugly.

Thanks in advance
Best,   

Pages: [1]