Skip to content

Asymmetric Projection? #73

Description

@cyborgk9

Hi there,

Thank you for putting this library together.

I have a scene working (a mahjong table), but the perspective isn't quite what I'm hoping for.

Notice the tiles' vertical lines are angled outwards because the camera angle is tilted downwards here:

Image

Instead... I'm hoping to have them all vertical... like this:

Image

...but the scene is as a result low and small on the canvas, and I only see a bit of it.

I think what I want is called an "asymmetric projection", but I can't figure out how to do it. camera:getPerspectiveTransform() returns a matrix which I thought maybe I could manipulate, but... I'm struggling to come up with something that does what I want.

I guess another way to say it is... I want the vanishing point to be off the canvas, while keeping the camera angle at 0 degrees.

Can anyone help? :P

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions