|
On-Ride Camera
#262425
04/23/09 16:51
04/23/09 16:51
|
Joined: Apr 2009
Posts: 113 Netherlands
Dreher
OP
Warez Victim
|
OP
Warez Victim
Joined: Apr 2009
Posts: 113
Netherlands
|
Hello folks, I'm looking for a On-Ride Camera, just like when you're sitting in your car, that is what I need! I will convert it to C-Script later, but I post here since here are more people, and it's near the same, so why not! ^ Thanks in advance
A7 7.77
|
|
|
Re: On-Ride Camera
[Re: Kaizen_31]
#262524
04/24/09 10:58
04/24/09 10:58
|
Joined: Apr 2009
Posts: 113 Netherlands
Dreher
OP
Warez Victim
|
OP
Warez Victim
Joined: Apr 2009
Posts: 113
Netherlands
|
Ye, really 'On-Ride', as if you sit in a rollercoaster, so not above your head! But I will take a look in the manual.. I have small code, but it doesn't work properly
function cameraOnride ()
{
while(gondel1)
{
vec_set(camera.x,gondel1.x);
vec_for_vertex(camera.x, gondel1, 30431);
vec_set(camera.pan, gondel1.pan);
wait(1);
}
}
Maybe I've forgotten something
Last edited by Dreher; 04/25/09 23:46.
A7 7.77
|
|
|
Re: On-Ride Camera
[Re: Dreher]
#262827
04/26/09 12:03
04/26/09 12:03
|
Joined: Apr 2009
Posts: 113 Netherlands
Dreher
OP
Warez Victim
|
OP
Warez Victim
Joined: Apr 2009
Posts: 113
Netherlands
|
Little update: I've added the code that I'm using, but the camera is just hanging low down the gondel / car, so it's bad. Playing with camera.x/y/z won't change anything too! o_O Any advice is more than welcome!
Last edited by Dreher; 04/26/09 12:03.
A7 7.77
|
|
|
Re: On-Ride Camera
[Re: Dreher]
#262828
04/26/09 12:10
04/26/09 12:10
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
The camera is most probably now at the origin of your gondel.
You can try adding camera.z += 30;
function cameraOnride () { while(gondel1) { vec_set(camera.x,gondel1.x); vec_for_vertex(camera.x, gondel1, 30431); vec_set(camera.pan, gondel1.pan); camera.z += 30; wait(1); } }
But, you could place it with vec_for_vertex, if you place a vertex to your gondel where you expect the camera position to be.
|
|
|
Re: On-Ride Camera
[Re: Pappenheimer]
#262831
04/26/09 12:51
04/26/09 12:51
|
Joined: Apr 2009
Posts: 113 Netherlands
Dreher
OP
Warez Victim
|
OP
Warez Victim
Joined: Apr 2009
Posts: 113
Netherlands
|
After you gave me the code, I figured out that I should not play with any of these camera.x/y/z, as it will not stay at a certain place. Best is to use a vertex indeed ^^ Thanks
A7 7.77
|
|
|
|