Game Development Community

Ok, this is a scary question

by XanthorXIII · in Torque Game Builder · 02/11/2009 (5:48 pm) · 2 replies

I'm going through the Breakout Tutorial and get to the first part, let's get started. I see that I am setting the Design Resolution to 1024x768 and the Camera to 200x150. What exactly are the differences between the two? That is one of the things I could never figure out with this program.

#1
02/12/2009 (5:37 am)
If i am seeing correctly the real point here is the size ratio 4:3. The camera is just dealing with Torque units. If the ratio is different between the two, the objects will stretch in the build or in the editor.
#2
02/12/2009 (6:56 am)
This is how I've come to understand it: The camera dimensions are how big your view of your world is, and that view size stays constant no matter what resolution you set the game at. So if you're character is 75 units high, and your camera size is 200x100, then your character will always be half as high as the screen, no matter the resolution. The resolution is how big the window will be displayed.

So if the camera is 200x150, then you're taking a picture of your world at that size, then stretching it out to a resolution of 1024x768. As Brian said, this means that you'll want to keep the ratios between your camera size and resolution the same, otherwise you get stretching.

You should try playing around with the two settings and see how it affects things, it will give you a good feel for what is going on.