Hello all,
For my team's current game project, the designers are blocking out levels in 3DSMax. The level collisions are made of 40x40 squares. This is consistent throughout the whole game.
It's my job to render out the collision layout and send the artists the png file for them to paint over. I then get the art back, and import the art into 3DSMax as large planes.
The problem is, the renders I do are never perfect, they are always distorted in such a way that the squares are perfectly 40x40 at the beginning, but later on in the image, they are not 40x40.
I've tried using both the default Front Camera and my own Free Orthographic Camera, but I cant get consistent results.
Any help will be greatly appreciated!
Replies
Create a free ortho cam.
Put a square resolution in the render settings.
Chose a random FOV, let's say 50°.
How far must be the target ?
20/tan(25) = 42.89
So put that in the target distance, and it should be good.
Then move your camera from your square center to square center, and render.
http://gamasutra.com/blogs/JunxueLi/20140417/215654/How_to_prepare_isometric_assets_for_your_games.php
http://gamasutra.com/blogs/JunxueLi/20140424/216117/How_to_position_the_camera_for_isometric_assets.php
waterlow, I've taken look at the article, thanks again. Its a great example of walking through how to get a perfect render for isometric views, but since we are making essentially a 2D sidescrolling perspective, I'll have to change up how they do it.
Noors, can you please elaborate more on the formula for finding the right angle triangle. Now, I remember Soh-Cah-Toa from back in high school and college, but I'm not sure what exactly the opposite edge would be. Is it the height of the whole collision level, or the FOV etc?
Yesterday, I was able to get a very close perfect render by making a ortho camera and through trial-and-error, found the best target distance to set it at. In this case 483 (go figure)!
Thanks again guys
I've NEVER been great at Math, mostly because I overthink things. Can you please run through with me what I'm doing wrong.
So, I measured, the length of the level is exactly 23120 pixels. I set my orthographic camera to FOV 50. I set my calculator to degrees.
0.5 * 23120 = 11560
tan( 0.5 * FOV) = 0.4663
11560/0.4663 = 24790.91
So, I set my targetdistance of my ortho camera to 24790.91
I'm rendering out a 16,000x16,000 image. My render is also rendering out a bunch of empty space around the level. Is that my problem? Or is it something else foolish I did/didnt do?
Thanks again
23120 pixels ? Do you mean units ?
I've made a 23120 meters square and with 24790.50 it's perfectly fine.
Do you check orthographic projection ?
When you say your 23120 square renders out perfectly fine Noors, do you mean that it is perfectly one-to-one throughout? Because when I would bring my renders to Photoshop, and measure the width of a square, it would be perfectly 40, but then further down the render, squares would clearly be rendering vertically. I turn on the pixel grid in photoshop and set it to 40 pixels per square.
What were your render settings. I simply render out the whole view from my ortho camera. And yes, I definitely checkmark ortographic projection.
Thanks for patience on helping me out!
"squares would clearly be rendering vertically" I don't get the meaning of this either.
Make a drawing or a snapshot of your scene coz i'm affraid i cant picture it.
I hope this helps explain my situation a bit more. Im trying to render out the collisions, so the artists can paint an environment based on the collisions, and when we import planes with textures of the art assigned to their materials, it will match perfectly. When I do renders though, its never ever ever renders completely one to one.
So get the bounding box size in meters in max
in your original pic, 1928*321
Do the same calculation, to know how to set the cam.
with fov 50, target dist = 964/tan(25) = 2067.3
Place the cam at the center of the plane.
In the resolution settings, enter 1928*321
There you go, 1meter=1pixel.
Thanks Again