Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Camera code for Lite-C? Anyone? [Re: Quad] #295648
10/26/09 17:32
10/26/09 17:32
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Okay, I'll post a screenshot when I get home tonight. But in the meantime as explanation, the view doesn't look any different than normal. I'm not seeing things from one angle only, as per isometric...

Re: Camera code for Lite-C? Anyone? [Re: Quad] #295704
10/27/09 00:23
10/27/09 00:23
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Okay, here's a screenshot:


I need it to be more like this (fixed angle of perspective, though from a steeper angle):


EDIT: also, I tried it with the "var ISOMETRIC;" but it didn't work--threw a syntax error in fact.

Last edited by Galen; 10/27/09 02:35.
Re: Camera code for Lite-C? Anyone? [Re: Galen] #295714
10/27/09 03:37
10/27/09 03:37
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
for the perspective you want lock the cameras pan and tilt outside of a while loop and move the cam around inside a while loop like so


camera.tilt=-60;
camera.pan=315;


while (1)
{

camera.x+=6*(key_cul-key_cur)*time_step;
camera.y+=6*(key_cud-key_cuu)*time_step;

wait(1);
}


at least that should be close to the angles you want , judging from the pic

Re: Camera code for Lite-C? Anyone? [Re: badapple] #295755
10/27/09 12:27
10/27/09 12:27
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I'll give that a try tonight after work.

Does this mean that ISOMETRIC doesn't work?

Also, will I need to do anything with the camera arc?

Thanks.

Re: Camera code for Lite-C? Anyone? [Re: badapple] #295849
10/28/09 03:03
10/28/09 03:03
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Didn't work. Camera view didn't change at all.

I'm really at a loss as to what I'm doing wrong here.

Re: Camera code for Lite-C? Anyone? [Re: Galen] #295862
10/28/09 05:41
10/28/09 05:41
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
you must be useing the templetes

i thought you were making standalone

Re: Camera code for Lite-C? Anyone? [Re: badapple] #295865
10/28/09 06:22
10/28/09 06:22
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
The angle isn't his issue, badapple. It's the perspective -- ISOMETRIC is supposed to make the view orthogonal.

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: Camera code for Lite-C? Anyone? [Re: badapple] #295894
10/28/09 13:29
10/28/09 13:29
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I'm going to try updating my A7 from .77 to .80 and see if that fixes things.

Re: Camera code for Lite-C? Anyone? [Re: JibbSmart] #296004
10/29/09 02:51
10/29/09 02:51
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Well, updating to 7.8 made no difference. I'm still seeing the same thing (wrong perspective).

I have my camera action attached to a "camera" model I made.

Here's that script again:

action free_camera()
{

video_set(1920,1200,0,1);
d3d_antialias = 1;



VECTOR camera_force;
set(my,INVISIBLE|POLYGON);


camera_force.z = 0;
vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);
camera.flags |= ISOMETRIC;


while(1)
{
camera_force.x = (key_w - key_s)*50*time_step;
camera_force.y = (key_a - key_d)*50*time_step;
vec_add(my.pan,vector(mouse_force.x*(-6)*time_step,mouse_force.y*6*time_step,0));

c_move(my,camera_force,nullvector,GLIDE+IGNORE_PASSABLE+IGNORE_PASSENTS+IGNORE_PUSH);
vec_set(camera.x,vector(my.x,my.y,my.z));
vec_set(camera.pan,my.pan);



wait(1);
}





}


Re: Camera code for Lite-C? Anyone? [Re: Galen] #296009
10/29/09 04:18
10/29/09 04:18
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I dont have an answer, Ive never played with the ISOMETRIC flag ever,
but try checking the view.arc entry in the manual.

It looks to me that this NEEDS to be shanged if you use the ISOMETRIC flag.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1