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.

Messages - loongy

Pages: [1]
Support / Re: projecting rays into the screen
« on: April 04, 2011, 11:38:11 am »
no its okay i found out how to do it.
i followed the method for object picking and it didnt really work.
i sat down and re did it all and now it works so i guess there was something simple that i just overlooked.
thanks all!

Support / Re: projecting rays into the screen
« on: April 04, 2011, 11:18:08 am »
that won't work for this situation.
i started this thread because none of the other threads seem to work when i implemented their code.
i am trying to touch the screen (2d co-ordinates) and then cast a ray into the 3d world perpendicular to the screen.
its similar to the method of 2d to 3d object picking except i am now trying to move the object i have picked by clicking the screen

Support / projecting rays into the screen
« on: April 03, 2011, 05:01:42 pm »
i want to project a ray into the 3d world by touching the screen and using those 3d co ordinates.
i am not trying to select objects, but i want to move an object to the projected position.
i know the y component of the resulting projected vector (cuz the object must always be at a specific y height)

any ideas?

Support / Multiple Textures on One Object
« on: March 31, 2011, 09:25:07 am »
I have a single 3ds model (made from several objects) and when i load it into jPCT-AE it renders fine but when i load the textures only one shows up.
there are 6 textures in the 3ds model and i add them in as per the instructions at but for some reason only the first texture actually appears on the model.
any ideas??

Support / Re: 3D Animation with 3DS from Blender
« on: March 16, 2011, 07:12:21 am »
This doesn't work. LogCat gives me:

RunTimeException - ERROR: The sizes of the Animations Meshes (16) and the object's Mesh (8) don't match!

what does this mean? and why is it happening?

Support / 3D Animation with 3DS from Blender
« on: March 15, 2011, 03:51:25 pm »
I have 3ds model exported from blender and when i put it into jpct ae no errors came out but it didnt animate? i followed code to the word from other posts and cannot figure out what is wrong?
i then decided to export each animation individually and ended up with several different 3ds models and when i used their meshes as animation keyframes and applied all the key frames etc still no result? the object just sits there without animating.
Code: [Select]
animationArray.add(Loader.load3DS(getAssets().open("test1.3ds"), 15.0f)[0]);
animationArray.add(Loader.load3DS(getAssets().open("test2.3ds"), 15.0f)[0]);
animationArray.add(Loader.load3DS(getAssets().open("test3.3ds"), 15.0f)[0]);
man = new WorldObject(animationArray.get(1));
man.setOrigin(new SimpleVector(0, 0, 0));;

Animation anim = new Animation(animationArray.size());
for (int i = 0; i < animationArray.size(); i++) {
System.out.println("adding keyframe number " + i);
Object3D obj = animationArray.get(i);;
Mesh msh = obj.getMesh().cloneMesh(true);

and then the animation called every frame. this is inside and extended class of Object3D (thus the this.animate(ind, an));

Code: [Select]
public void runAnimation() {
            ind += 0.02f;
            if (ind > 1f) {
                ind -= 1f;
            this.animate(ind, an);
}catch(Exception e){
System.err.println("MoveTest::checkAnimate3DS() " + e.getMessage());

Support / Re: 2D Images in 3D Space
« on: March 15, 2011, 03:45:53 pm »
Thanks guys. all good now

Support / 2D Images in 3D Space
« on: March 14, 2011, 12:48:50 am »
I'm a designer in a new 3d project for android and i need to create a 2d image and be able to move it around in 3d space.
is this possible with jpct-ae?
i have had a look at the frame buffer's blit method but it doesn't seem to be able to accomplish this.
i saw something that looked like what i wanted to acheive in the 3dbenchmark video on jpct-ae website.

Pages: [1]