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

Pages: [1]
1
Support / Re: Problems with 10-inch tablet
« on: July 01, 2016, 05:33:23 pm »
I fixed the error.
Not sure why it failed, but the solution has been deleted from the cache the cparam_cache.db file.

Thanks for the help

2
Support / Re: Problems with 10-inch tablet
« on: June 29, 2016, 05:23:31 pm »
I could see an object. I drew in the z -400 point . In the smartphone it is drawn at the point 0 ...
But it is very strange because the 3D object is a child of trackableObject but follows the camera , not the trackableObject ... In the smartphone works well .

3
Support / Re: Problems with 10-inch tablet
« on: June 29, 2016, 01:01:37 pm »
smartphone: getPosition = (0.0, 0.0 , -20.02002) getDirection = (0.0021968328,-0.004591274,-0.9999871)

tablet:  getPosition = (0.0, 0.0, -20.02002) getDirection = (0.0.-1.1897111E-7,-1.0)

4
Support / Re: Problems with 10-inch tablet
« on: June 29, 2016, 12:11:51 pm »
I think yes, they are physically on the screen.
I've done it from getTransformedCenter ().
Approximately:
Tablet : ( 8f , -7F , -37f )
Smartphone ( 28f 12f -450f )
The values ​​change when I move the camera.

the value of z is suspicious right?

5
Support / Re: Problems with 10-inch tablet
« on: June 28, 2016, 11:31:33 pm »
The tablet is Samsung Galaxy Tab 3 GT-P5210 10.1"

My code extends a library https://github.com/plattysoft/ArToolKitJpctBaseLib

The library integrates jpct with ARToolKit .

My main class extends ArJpctActivity:

Code: [Select]
public class MainClass extends ArJpctActivity
https://github.com/plattysoft/ArToolKitJpctBaseLib/blob/master/ArJpctBaseLib/src/main/java/org/artoolkit/ar/jpct/ArJpctActivity.java

The ArJpctActivity extends ArActivity and creates the render
https://github.com/plattysoft/ArToolKitJpctBaseLib/blob/master/ArJpctBaseLib/src/main/java/org/artoolkit/ar/base/ARActivity.java

ArJpctRender extends ArRender
https://github.com/plattysoft/ArToolKitJpctBaseLib/blob/master/ArJpctBaseLib/src/main/java/org/artoolkit/ar/jpct/ArJcptRenderer.java

ARRender
https://github.com/plattysoft/ArToolKitJpctBaseLib/blob/master/ArJpctBaseLib/src/main/java/org/artoolkit/ar/base/rendering/ARRenderer.java



The main problem is that the code works perfectly on the smartphone but not on the tablet.

Objects are created correctly ( I think).

Android Monitor:
Code: [Select]
...
06-28 23:32:38.173 I/jPCT-AE: Subobject of object 25/caja9 compiled to flat fixed point data using 546/546 vertices in 4ms!
06-28 23:32:38.173 I/jPCT-AE: Object 25/caja9 compiled to 1 subobjects in 6ms!
06-28 23:32:38.183 I/jPCT-AE: Subobject of object 28/caja10 compiled to flat fixed point data using 546/546 vertices in 4ms!
06-28 23:32:38.183  I/jPCT-AE: Object 28/caja10 compiled to 1 subobjects in 9ms!
06-28 23:32:38.193  I/jPCT-AE: Subobject of object 31/caja11 compiled to flat fixed point data using 546/546 vertices in 4ms!
06-28 23:32:38.193 I/jPCT-AE: Object 31/caja11 compiled to 1 subobjects in 8ms!
06-28 23:32:38.203  I/jPCT-AE: Subobject of object 34/caja12 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.203 I/jPCT-AE: Object 34/caja12 compiled to 1 subobjects in 14ms!
06-28 23:32:38.213 I/jPCT-AE: Subobject of object 37/caja13 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.213 I/jPCT-AE: Object 37/caja13 compiled to 1 subobjects in 5ms!
06-28 23:32:38.223 I/jPCT-AE: Subobject of object 40/caja14 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.223 I/jPCT-AE: Object 40/caja14 compiled to 1 subobjects in 8ms!
06-28 23:32:38.223  I/jPCT-AE: Subobject of object 43/caja15 compiled to flat fixed point data using 546/546 vertices in 4ms!
06-28 23:32:38.223  I/jPCT-AE: Object 43/caja15 compiled to 1 subobjects in 7ms!
06-28 23:32:38.233  I/jPCT-AE: Subobject of object 46/caja16 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.233  I/jPCT-AE: Object 46/caja16 compiled to 1 subobjects in 8ms!
06-28 23:32:38.243  I/jPCT-AE: Subobject of object 49/caja17 compiled to flat fixed point data using 546/546 vertices in 4ms!
06-28 23:32:38.243  I/jPCT-AE: Object 49/caja17 compiled to 1 subobjects in 7ms!
06-28 23:32:38.253 I/jPCT-AE: Subobject of object 52/caja18 compiled to flat fixed point data using 546/546 vertices in 8ms!
06-28 23:32:38.253 I/jPCT-AE: Object 52/caja18 compiled to 1 subobjects in 11ms!
06-28 23:32:38.263  I/jPCT-AE: Subobject of object 55/caja19 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.263  I/jPCT-AE: Object 55/caja19 compiled to 1 subobjects in 8ms!
06-28 23:32:38.273  I/jPCT-AE: Subobject of object 58/caja20 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.273 I/jPCT-AE: Object 58/caja20 compiled to 1 subobjects in 9ms!
06-28 23:32:38.273 I/jPCT-AE: Subobject of object 61/caja21 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.273 I/jPCT-AE: Object 61/caja21 compiled to 1 subobjects in 6ms!
06-28 23:32:38.283 I/jPCT-AE: Subobject of object 64/caja22 compiled to flat fixed point data using 546/546 vertices in 6ms!
06-28 23:32:38.283  I/jPCT-AE: Object 64/caja22 compiled to 1 subobjects in 12ms!
06-28 23:32:38.293 I/jPCT-AE: Subobject of object 67/caja23 compiled to flat fixed point data using 546/546 vertices in 3ms!
06-28 23:32:38.293  I/jPCT-AE: Object 67/caja23 compiled to 1 subobjects in 6ms!
06-28 23:32:38.303  I/jPCT-AE: Subobject of object 70/caja24 compiled to flat fixed point data using 546/546 vertices in 2ms!
06-28 23:32:38.303 I/jPCT-AE: Object 70/caja24 compiled to 1 subobjects in 5ms!
...

6
Support / Problems with 10-inch tablet
« on: June 28, 2016, 10:54:06 pm »

Hello,
I made an application that draws several 3d models following a marker ARToolKit .
My problem is that in a 4.5-inch smartphone works perfectly, but the same code in a 10-inch tablet does not draw 3D objects on the screen.
Notes:
- The 3D objects are compiled well .
- Once it worked by chance on the tablet.
-The Marker detects Well, that's not a problem.

Smartphone 4.5 inch:


Tablet 10 inch: t shows nothing


What do you think?

7
Support / Re: Touch 3D object ArToolKitJpctBaseLib
« on: June 22, 2016, 12:20:12 am »
Solved !
I spent many hours but I finally got what I wanted.
Draw several 3D objects on a ARToolKit(Android) marker and then click on each of them.

Thanks for the help

8
Support / Touch 3D object ArToolKitJpctBaseLib
« on: June 17, 2016, 11:10:59 am »
Hello,

I found an adaptation of ARToolKit + jpct + android:

https://github.com/plattysoft/ArToolKitJpctBaseLib

I've got draw various 3D objects on the screen.
But now I have the problem: I need to touch them
I saw this tutorial: http://www.jpct.net/wiki/index.php?title=Picking
But my class is something different, is very abstracted and simple and I'm a newbie ..

This is the mainClass, I don't found my framebuffer... :'(

Code: [Select]
import android.os.Bundle;
import android.view.MotionEvent;
import android.widget.FrameLayout;
import android.widget.Toast;


import com.threed.jpct.Loader;
import com.threed.jpct.Object3D;
import com.threed.jpct.Primitives;
import com.threed.jpct.SimpleVector;
import com.threed.jpct.Texture;
import com.threed.jpct.TextureManager;
import com.threed.jpct.World;

import org.artoolkit.ar.jpct.ArJpctActivity;
import org.artoolkit.ar.jpct.TrackableLight;
import org.artoolkit.ar.jpct.TrackableObject3d;

import java.io.IOException;
import java.util.List;

public class RealidadAumentada extends ArJpctActivity{
        private Object3D astronauta = null;
        private TrackableObject3d cubo = null;

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);

        }

    /**
     * Use the FrameLayout in this Activity's UI.
     */
    @Override
    protected FrameLayout supplyFrameLayout() {
        return (FrameLayout)this.findViewById(R.id.mainLayout);
    }

    public void configureWorld(World world) {
        world.setAmbientLight(150, 150, 150);

    }

    protected void populateTrackableObjects(List<TrackableObject3d> list) {
        Object3D astronauta2 = null;

        try {
            cubo = new TrackableObject3d("single;Data/patt.hiro;80", getCube());
            //astronauta2 = getAstronauta2());
            astronauta = getAstronauta();
            astronauta.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
        } catch (IOException e) {
            e.printStackTrace();
        }

        TrackableLight light = new TrackableLight();
        light.setIntensity(0, 0, 255);
        light.setPosition(new SimpleVector(0, 0, 100));
        cubo.addLight(light);

        cubo.addChild(astronauta);

        list.add(cubo);

    }

    private Object3D getCube() throws IOException {
        int scale = 40;
        Object3D object3D = Primitives.getCube(scale);
        // Cubes in jpct are rotated by 45 degrees when created.
        object3D.rotateY((float) Math.PI / 4);
        object3D.setOrigin(new SimpleVector(0, 0, scale));
        return  object3D;
    }

        private Object3D getAstronauta() throws IOException {
            int scale = 40;
            Object3D[] astronaut = Loader.load3DS(getAssets().open("astronaut1.3ds"), 5);
            astronaut[0].setOrigin(new SimpleVector(0, 0, 270));

            return  astronaut[0];
        }


        This method doesnt work
        public boolean onTouchEvent(MotionEvent me) {
            if (me.getAction() == MotionEvent.ACTION_DOWN) {
                Toast.makeText(this, cubo.getXAxis().toString()+" "+String.valueOf(me.getX()),2000).show();
               // Toast.makeText(this,String.valueOf(cubo.getCenter()),2000).show();
                return true;
            }
              ....
}




Thank you

Pages: [1]