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

Related issues

DarkDrim picture DarkDrim  路  3Comments

avianey picture avianey  路  3Comments

jkazma-logisk picture jkazma-logisk  路  3Comments

HoldYourWaffle picture HoldYourWaffle  路  4Comments

astrapi69 picture astrapi69  路  3Comments