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

Pages: [1]
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 / 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 / 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]