arc and ISOMETRIC view

Posted By: 3run

arc and ISOMETRIC view - 09/11/14 12:28

As far as I know, when you switch to ISOMETRIC view, ARC value changes the distance for the camera. But there is a problem, when you change resolution, ARC isn't automatically adjusted to keep the same distance (maybe it does, but the size of the window allows you to see things which didn't feet the smaller window before). I would like to ask you guys, what will be the best way to adjust ARC automatically, making it smaller and smaller as the resolution of the window increases.

Greets
Posted By: AceX

Re: arc and ISOMETRIC view - 09/11/14 13:15

Maybe some if and else conditons in a while loop grin .
Posted By: Kartoffel

Re: arc and ISOMETRIC view - 09/11/14 13:20

made a helperfunc.

Code:
void set_isometric_size(VIEW * v, var quants_x, var quants_y, var size_x, var size_y)
{
	set(v, ISOMETRIC);
	
	v.top = quants_y / 2;
	v.bottom = -quants_y / 2;
	v.left = -quants_x / 2;
	v.right = quants_x / 2;
	
	v.size_x = size_x;
	v.size_y = size_y;
}

Posted By: 3run

Re: arc and ISOMETRIC view - 09/11/14 13:33

AceX@ thank you for your valuable input tongue

Kartoffel@ thank you, I didn't think about view boarders, as I've never really had to deal with them, but as soon as I've found them in the manual (for the first time since I've ever installed Acknex), everything got pretty clear!

Greets
Posted By: AceX

Re: arc and ISOMETRIC view - 09/11/14 13:34

More better wink
© 2024 lite-C Forums