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 - nima.sh23

Pages: [1]
1
Support / Could not load perfectly elements
« on: October 25, 2015, 12:46:40 pm »
I'm trying to load some elements (one scene) in JPCT, every elements are loaded on the my world but when I move my camera some elements(like bed on the first photo and on the second photo floor texture doesn't loaded) could not load perfectly, I changed clipping plan, but unfortunately doesn't different.
How can I fix this problem?

2
Support / Static collision render
« on: October 19, 2015, 06:10:43 pm »
Is there a way to fix rendering problem which is shown on picture?

3
Support / Jpct unit setup
« on: October 14, 2015, 09:20:26 am »
Is there a way to setup world units?
for example change length unit to millimeter.

4
Support / write shader
« on: October 07, 2015, 11:07:52 am »
I try to use texture splatting, I create a 3d file on blender, set textures and materials on object, export 3d object and shader( by GLSL ), for each material I have shader.
Is it wrong way for use shader on jpct?
How can I write shader for my 3d object?

5
Support / Projection Matrix jpct+Vuforia
« on: September 21, 2015, 10:18:19 am »
I using Jpct-AE and Vuforia for make AR application.
For render 2D and Video I don't have any problem but for render 3D file (using Jpct-AE) I have a problem with Projection Matrix.
I know Jpct doesn't set projection matrix:
http://www.jpct.net/forum2/index.php/topic,2368.msg17437.html#msg17437
But I need a solution for solve this.
In Open GL I can use of projection Matrix but in jpct I don't know how can I use...!!!
In this words point of this:
 "The projection matrix is implicitly created by the engine based on the current fov settings and the far and near clipping plane."
How can I use of "Fov" for solve that.
In this link say good thing about this but I really don't understand about that:
http://paulbourke.net/miscellaneous/lens/
Thanks

6
Support / IRenderer cannot be resolved to a variable
« on: August 26, 2015, 07:25:08 am »
Hello
I use of last jpct library for android project.
I want use of Texture splatting,but I have some problem.
I can't use IRenderer Interface for "IRenderer.RENDERER_SOFTWARE" and "IRenderer.RENDERER_OPENGL" and also framebuffer does not has  SAMPLINGMODE_HARDWARE_ONLY property.
Thanks

7
Support / show layout after detected object
« on: June 30, 2015, 10:42:29 am »
Hi there
I use of vuforia and jpct.
I need when my object detected show a small layout on screen.
how can i do that?
help me please.

8
Support / Load multiple texture in cube(Object3D)
« on: May 20, 2015, 07:37:54 am »
How can I load multiple textures in cube?

9
Support / Fatal Error
« on: May 12, 2015, 02:10:48 pm »
Hello there
what's " Fatal signal 11 (SIGSEGV) at 0x6d6f637c (code=1), thread 16085 (Thread-4241) " Error?
Help me please.

10
Support / Load large obj file
« on: May 03, 2015, 10:35:47 am »
Hello there
how can I load a large obj or 3DS file from assets into inputstream.
I searched about that,I find this link:
http://www.jpct.net/forum2/index.php?topic=2168.0
I compress my obj file,but it's lager 1mg.
help me please.

11
Support / draw text in jpct-vuforia
« on: April 07, 2015, 11:54:35 am »
Hi
I use of jpct for draw 3D model,2D model and text,I can complete 2D and 3D but in the draw a text i have a problem:
I use of this Link for tutorial
https://primalpond.wordpress.com/2013/02/26/rendering-text-in-opengl-2-0-es-on-android/
and this link for download project:
https://github.com/d3kod/Texample2
i set text in camera but i want when vuforia detect marker draw text,i don't know how can i calc matrix 4*4.

       GLES20.glEnable(GLES20.GL_BLEND);
      GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA);

      Matrix.multiplyMM(mVPMatrix, 0, mProjMatrix, 0, mVMatrix, 0);
      
      mVMatrix=modelViewMat;
         
      glText = new GLText(mActivity.getAssets());
      
      glText.load( "Roboto-Regular.ttf", 14, 2, 2 );
      
      // TEST: render the entire font texture
      glText.drawTexture( width/2, height/2, mVMatrix);            // Draw the Entire Texture
      
      glText.begin( 0.0f, 0.0f, 1.0f, 1.0f, mVMatrix );         // Begin Text Rendering (Set Color BLUE)
      glText.draw( "More Lines...", 50, 200 );        // Draw Test String
      glText.draw( "The End.", 50, 200 + glText.getCharHeight(), 180);  // Draw Test String
      glText.end();


"Matrix.multiplyMM()" Multiplies two 4x4 matrices together and stores the result in a third 4x4 matrix.
help me please

12
Support / how to set frame buffer in GLES20 in vuforia
« on: February 12, 2015, 01:35:58 pm »
Hi
i want set a jpct frame buffer in GLES20 in vuforia for show my 3d object in camera.
how can i do that?
     
Code: [Select]
if (!mActivity.isExtendedTrackingActive())
            {
               TextureManager tm = TextureManager.getInstance();
               if(!tm.containsTexture("texture"))
               {
               com.threed.jpct.Texture texture = new com.threed.jpct.Texture(BitmapHelper.rescale(BitmapHelper
              .convert(mActivity.getResources().getDrawable(R.drawable.camaro)), 64, 64));
            TextureManager.getInstance().addTexture("texture", texture);
               }
                   InputStream objStream=null ;
                   InputStream mtlStream=null ;
                   World world = new World();
           world.setAmbientLight(20, 20, 20);
           Light sun = new Light(world);
           sun.setIntensity(250, 250, 250);
               try {
            objStream = mActivity.getResources()
    .getAssets().open("camaro_obj");
            mtlStream = mActivity.getResources()
    .getAssets().open("camaro_mtl");
               } catch (IOException e) {

e.printStackTrace();
}
        Object3D cube = Object3D.mergeAll(Loader.loadOBJ(objStream, mtlStream, 10));
cube.setTexture("texture");
cube.strip();
cube.build();
Camera cam = world.getCamera();
        cam.moveCamera(Camera.CAMERA_MOVEOUT, 10);
        cam.lookAt(cube.getTransformedCenter());
        world.addObject(cube);
SimpleVector sv = new SimpleVector();
sv.set(cube.getTransformedCenter());
sv.y -= 100;
sv.z -= 100;
sun.setPosition(sv);
MemoryHelper.compact();
com.threed.jpct.Matrix mResult = new com.threed.jpct.Matrix();
mResult.setDump(modelViewMatrix);
cube.setRotationMatrix(mResult); 
cam.setBack(mResult);
                world.renderScene(fb);
                world.draw(fb);
                fb.display();

help me please....!!

Pages: [1]