3 registered members (Akow, TipmyPip, tomaslolo),
788
guests, and 11
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Default camera view & ISOMETRIC flag?
[Re: JibbSmart]
#295554
10/26/09 03:19
10/26/09 03:19
|
Joined: Aug 2005
Posts: 336 Connecticut
Galen
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2005
Posts: 336
Connecticut
|
So I updated all my code to Lite-C, got my level working with anew camera from help on the boards, and I'm trying to use the ISOMETRIC flag but for some reason it isn't working. Here's the code I'm using for my camera--can you spot what I'm doing wrong?
action free_camera() { // c_setminmax(my);
VECTOR camera_force; set(my,INVISIBLE|POLYGON); // set(my,PASSABLE);
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: Default camera view & ISOMETRIC flag?
[Re: Galen]
#295596
10/26/09 13:11
10/26/09 13:11
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi!
change this camera_force.z = 0;
to vec_set (camera_force, vector(0,0,0));
Hope this helps! Ottawa Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Default camera view & ISOMETRIC flag?
[Re: Galen]
#295873
10/28/09 08:05
10/28/09 08:05
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
that screenshot doesnt look like it is isometric.
can you try to move the set(camera,ISOMETRIC); to first line of main?
3333333333
|
|
|
Re: Default camera view & ISOMETRIC flag?
[Re: Galen]
#295927
10/28/09 16:10
10/28/09 16:10
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
i got a problem with the isometric flag too... When i set that flag.. it looks like this (click images to see full size): But when i want to scroll.. it makes this: What´s wrong? 2nd: How to move objects normally? When i add a model, and i press up.. i don´t want the model to move isometric left.. iw ant it to move UP..
Last edited by Espér; 10/28/09 16:13.
|
|
|
Re: Default camera view & ISOMETRIC flag?
[Re: Galen]
#296008
10/29/09 03:52
10/29/09 03:52
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Esper, move the camera further back. Its near-plane is intersecting the model. You can move it as far back as you want, since it won't affect how big objects appear on-screen.
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
|