Libgdx: hello,how to use the PerspectiveCamera into Stage group actor ,please.

Created on 1 Apr 2017  ยท  3Comments  ยท  Source: libgdx/libgdx

hello,how to use the PerspectiveCamera into Stage group actor ,please.
thanku .

I use it but I can't show it
camera = new PerspectiveCamera(70, 0, 1000);
FitViewport viewport = new FitViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), camera);
stage = new Stage3D(viewport, batch);

    camera.position.set(0, 0, 500);
    camera.near = 1f;
    camera.far = 10000;
    camera.lookAt(0,0,0);
    camera.translate(1280/2, 720/2, 200);


    group=new Group();
    view2D=new View2D();
    group.addActor(view2D);
    view3D=new View3D();

// group.addActor(view3D);
stage.addActor(group);

Most helpful comment

Please use the forums or irc for these questions.

All 3 comments

Please use the forums or irc for these questions.

Facing this issue. How to use PerspectiveCamera?

Best is really if you join the discord and ask for help. We have a 3d channel over there.

Was this page helpful?
0 / 5 - 0 ratings