How do I figure out the 3D camera?

1 favourites
  • 10 posts
From the Asset Store
Simple and easily editable template for a dynamic camera that zooms in and out based on how far apart the players are.
  • C3/Mobile Games

    I've read the guides, C3 manual, watched every video on YouTube that I can find, I've looked at all the demos available, but I cannot get a handle on setting up the 3D camera the way I want it.

    Most of my games need the same set up 1080 x 1920 portrait - I'm looking to set it up so it looks like the beginning of Stumble Guy‪s, but in portrait and just follows the player at that angle and at that height though the game, but doesn't turn, just follows the player sprite at the same distance.

    Is there a demo anywhere that shows how to setup the 3D camera for 1080 x 1920 portrait? Something that will give me a solid start to learn how to set it up myself?

    Something that gives an example like the image below.

    Thanks.

    Tagged:

  • Have you happened to check out FoozleCC on YouTube. Here is a link to a search on his channel for the term "3D": https://www.youtube.com/c/FoozleCC/search?query=3d

    He has a bunch of examples in his videos there. It's pretty complex math to get 3D cameras working in the way you'd like. I would definitely recommend watching through his videos on the new 3D Camera features though.

    No doubt some of the things to do with 3D will have changed since some of the videos, but can be adapted to the latest version of Construct 3 easily enough.

    EDIT: dazedangels - I completely spaced out, and forgot to mention the resource here as well: https://gamemath.com . It was recommended to me by Ashley, a while back. It is the same resource that he used while developing some of the parts of Construct. The old thread is here: https://www.construct.net/en/forum/construct-3/general-discussion-7/good-book-trigonometry-168950

    Anyways, I've been referring to it ever since then, and it's come in handy quite a few times. Between that and searching online for different formulas for working in three dimensional space.

  • brainwavecreations,

    Thank you for your reply.

    I've seen FoozleCC on youtube. I've watched his stuff, but he prattles on and on forever and when he finally gets around to the 3D camera, he only explains bits and pieces, nothing detailed, he skips all the stuff that I'm looking to learn. (Honestly, I wish I could find a way to block him from results.)

    I can't find anything for mobile games specifically. Videos that just get down to it with some step by step examples or demos I can pick apart - I really need to find some demos so I can look and learn.

    Unfortunately, I can't seem to find any 3D 1080 x 1920 portrait examples on the C3 demo page. If I could find 1 or 2 good examples I know I could get a handle on it.

    Thanks for trying.

  • I'm not sure the resolution/aspect ratio or orientation matters? I think you could probably apply the examples to whatever project you're working on.

  • No worries :)

    It's a very complex thing to figure out and grasp, and I'm certainly not there yet. I'm just beginning to feel like I'm somewhat proficient with 2D Design/Development in Construct. But, I'm my own worst critic.

    I study 3D on the side, but using other engines designed for it. Doing what I can to grasp trig, and visualize the way three dimensional math actually works. Slowly picking up C# again, after many years of not doing anything with it.

    I hope you can find what you are looking for.

    Best of luck! Take Care ✌️

  • C3/Mobile Games

    Something like this? It's very simple but might point you in a new direction.

    drive.google.com/file/d/17kFMb8gr6VU9zdRBQDScYi1ykRq-glM5/view

    dropbox.com/s/f4bil6bfyoorb41/3D_Demo_C3MG_01a.c3p

    (Yes, the action in "On start of layout" and "every tick" is the same but all the examples seem to do this.)

  • bigcatrik

    YES!! That's exactly what I've been trying to do and your code is so simple. I actually understand it.

    Thank you sooooo much!

  • bigcatrik

    YES!! That's exactly what I've been trying to do and your code is so simple. I actually understand it.

    Thank you sooooo much!

    No problem. I made a 5-level "Doom clone" last Fall with C3 using only the free version's 50 events so I had to keep everything as streamlined as possible.

    Ooh, I just got over 1,000 plays in the Construct Arcade!

    construct.net/en/free-online-games/vault-peril-32857/play

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > bigcatrik

    > YES!! That's exactly what I've been trying to do and your code is so simple. I actually understand it.

    > Thank you sooooo much!

    No problem. I made a 5-level "Doom clone" last Fall with C3 using only the free version's 50 events so I had to keep everything as streamlined as possible.

    Ooh, I just got over 1,000 plays in the Construct Arcade!

    https://www.construct.net/en/free-online-games/vault-peril-32857/play

    Wow, that's awesome! Great job bigcatrik :)

    Using the free version and everything. It's so interesting to see how people tackle different things. I checked out your example, and was surprised to see just a couple lines in the Event Sheet, and some behaviors on objects.

    I tend to overcomplicate things, while working with certain things development wise. I do my best to follow the KISS principle. Keep It Simple, Stupid. Or what I like to say, "Keep It Stupid Simple". It's getting easier the more hours I spend with Construct, and other engines/applications. As it goes with anything in life.

    About 6 months of putting most of my time into creating different things with Construct, and a couple others. But, mostly Construct 3. When I was a teenager it was all I would do. Wish I had stuck with it, as that was almost half my lifetime ago now XD

    The more you learn the more you know. That's why I love communities like this one, where everyone learns from each other. I help where I can, and some day I hope to be proficient enough to pull something like that off haha.

    I too appreciate your share, both the example and the Doom clone. Take it easy, and I hope you all have a great weekend.

    Best of luck, dazedangels

  • I need to say another thank you to bigcatrik

    I spent a good 3 hours picking every bit of that demo apart and I figured out what was tripping me up. I didn't realize that I could change the Z axis scale from Normalized to Regular and make the Field of view 45 degrees to tilt the camera in the direction I wanted. I've been trying to do it using a 3D camera event in the event sheet and never quite getting it right.

    I made a video in case anyone else is as dense as I am.

    youtube.com/watch

    Thanks again!!

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