3 registered members (NewbieZorro, TipmyPip, 1 invisible),
19,045
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Senior Member
|
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: badapple]
#295865
10/28/09 06:22
10/28/09 06:22
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
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: JibbSmart]
#296004
10/29/09 02:51
10/29/09 02:51
|
Joined: Aug 2005
Posts: 336 Connecticut
Galen
OP
Senior Member
|
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
Expert
|
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
|
|
|
|