Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chongbo2013 opened this issue Apr 1, 2017 · 3 comments
Closed

Comments

@chongbo2013
Copy link

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);

@Tom-Ski Tom-Ski closed this as completed Apr 1, 2017
@Tom-Ski
Copy link
Member

Tom-Ski commented Apr 1, 2017

Please use the forums or irc for these questions.

@feivur
Copy link

feivur commented Jul 2, 2019

Facing this issue. How to use PerspectiveCamera?

@MrStahlfelge
Copy link
Member

MrStahlfelge commented Jul 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants