Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: Cardboard ,CardboardView support
« Last post by mxar on December 06, 2018, 10:53:05 am »
Many thanks!!! :)
2
Support / Re: Cardboard ,CardboardView support
« Last post by EgonOlsen on December 06, 2018, 08:59:07 am »
Yes. That's caused by the way in which these objects are build. I think ExtendedPrimitives does it differently.
3
Support / Re: Cardboard ,CardboardView support
« Last post by mxar on December 06, 2018, 08:38:22 am »

Many thanks!!!

Great example.

Also I have another question:

Primitives.getCube(scale) method, creates a cube rotated 45 degrees around Y axis?

Thanks in advance
4
Support / Re: Cardboard ,CardboardView support
« Last post by EgonOlsen on December 06, 2018, 08:15:38 am »
Might be because the matrix from the cardboard API is a view matrix while jPCT's camera matrix is a rotation matrix. Have you looked at this example: http://www.jpct.net/wiki/index.php?title=Example_for_Google_Cardboard?
5
Support / Cardboard ,CardboardView support
« Last post by mxar on December 05, 2018, 01:26:17 pm »
Hi,

I try to develop a Virtual Reality application using Google's Cardboard Java API.

Do you have any example?

I have a big problem adjusting JPCT's coordination system with Cardboard's Java API coordinate system.

I think the solution exists in the method
public void onDrawEye(Eye eye)

My code is:

 @Override
    public void onDrawEye(Eye eye) {

       com.threed.jpct.Matrix camBack = world.getCamera().getBack();
        camBack.setIdentity();
        tempTransform.setDump(eye.getEyeView());

        tempTransform.transformToGL();
        camBack.matMul(tempTransform);

        world.getCamera().setBack(camBack);

         fb.clear(RGBColor.BLACK);
         fb.clearZBufferOnly();

         world.renderScene(fb);
         world.draw(fb);

         fb.display();
}


The Objects3D models added to the world  don't look ok according to the XYZ positions a I have set.


I suppose the problem is because JPCT uses a different coordinate system than OpenGL.

Can you suggest a solution?

Thanks in advance


6
Support / Re: SurfaceView Transparent without glsurfaceview.setZOrderOnTop(true);
« Last post by EgonOlsen on December 04, 2018, 07:22:14 pm »
IIRC, you have to create a GL context with an alpha channel and clear the framebuffer with the RGBColor variant of the clear method to set an alpha while clearing. There should be a simple example of how to combine the camera view with a rendering on top, which is a similar task, somewhere here in the projects section. Though it's hard to find for me ATM too, because I'm on mobile right now...

Edit: There's a sticky topic here in the support section about that camera overlay thing...maybe that helps.
7
Support / Re: JPCT Lessons
« Last post by EgonOlsen on December 04, 2018, 07:15:58 pm »
Have you had a look at the wiki?
8
Support / SurfaceView Transparent without glsurfaceview.setZOrderOnTop(true);
« Last post by itsmeveno on December 04, 2018, 01:08:53 am »
Good day!

I want to make transparent the surfaceview to view the image background behind of it.
How i can do that i did a lot of research but i always search the setZOrderOnTop the surfaceview make transparent but it overlay the ather view.
9
Support / JPCT Lessons
« Last post by JCoder on December 01, 2018, 01:43:04 pm »
Hello everyone, I recently saw this engine in the Internet and decided to learn it. But I couldn't find some lessons or tutorials, some people in this forum said that they learned JPCT using projects "car" and "fps" in examples. But I still don't understand how, for example, create camera, place it on the ground and move. The code in these examples is little difficult for me. Besides, I can't launch these projects without NetBeans, I have to copy-paste this code in NetBeans and launch. Could you help me please, maybe you have your own simple projects with more or less clear code or smth like that?
10
Projects / Re: Naroth - 3D open world RPG
« Last post by fireside on November 27, 2018, 06:07:59 am »
It seems to run all right.  I'm trying to get used to the controls right now.  Looks good though.  Like this Fire10 for 100 dollars.  It's not the best tablet in the world, but for the price, it's pretty nice.
Pages: [1] 2 3 ... 10