How do I rotate the 3d Camera to view at a 45 degree angle?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
Pixel Enemies for SHMUP consists of 45 enemy ship sprites to be used in your game.
  • I'm new to working with the 3d Camera object. I have it tracking the character, but I want the view to look isometric. Tried lots of things, but I'm stuck now.

    1drv.ms/u/c/69e7b1f136a84038/IQCHhV88gPxcRoy0nAorwRc8AV1cv8iw1X9cEFDyQ0-VsIk

    So the view would show the "ground-tiles" like this:

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Setting the camera location in the "look at" action would make the camera angle to the standard 22.5 degree view. For 45 you'd remove the /2. That 1.125 was a correction to make the tile diamond exactly 2:1.

    player.x+1000
    player.y+1000
    player.z+1000*sqrt(2)/2*1.125

    Anyways, that will still have perspective, so to remove that you need to change the layout property "projection" to "orthogonal". However, with orthogonal you lose the ability to zoom in and out.

    To keep the ability to zoom in and out you could keep the projection as perspective and make the "field of view" to be very small to make it nearly orthogonal. The smaller FOV will zoom in more so you'll need to move the camera further back so you may end up needing to increase the advanced project property "far distance" if things disappear. Increasing that will also increase z-fighting artifacts, so you may be able to increase the "near distance" as well to reduce that just as long as things don't disappear.

    You may also be able to counter that near/far fiddling by scaling things in other ways, but I haven't tested that.

  • Hmmm, I tried this and couldn't get it working. I'll try from scratch, as a lot is going on in this CP3

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)