01-14-2009, 10:28 AM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
Crazy underground camera, other camera issues
Again on Road Atlanta with the TL2, I try to change the camera to hood view right after starting a game, and instead it goes underground. If I switch back to in-car it is still messed up, but the other camera views work OK. This is not very consistent, a few times I have started up a game and it switches just fine. As I start driving down the track it eventually fixes itself. I have some screen shots of it messed up that I'll upload shortly.
Another issue is that the camera position doesn't get saved between games, so every time I start a new game I have to change my camera position, since I prefer hood view over in-car view. edit 2: I see there's already an issue in the tracker for this: http://code.google.com/p/vdrift/issues/detail?id=116
edit: Here are the screenshots:
http://vdrift.net/Gallery/album.php?aid=69
|
|
01-28-2009, 11:59 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
thelusiv Wrote:The camera seems to be very erratically bouncing from below the ground to high in the sky and then back to the car. i just saw this at mosport with the F1-02 car. i tried to record it but it doesn't show up in the replay (even though it was happening as i was recording the race).
--alex--
|
|
01-31-2009, 06:57 PM,
|
|
alex25
Senior Member
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:Can you try R2319? I'm just using the normal system rand() calls now, which should be much better distributed. I think this might fix the problem. i've tried it quite a few times at mosport and haven't seen the crazy bounces yet (also looked at the old replays and they played fine). looks like it's fixed now.
--alex--
|
|
02-02-2009, 03:50 AM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
This just happened to me again at Sepang after updating to r 2322 and building. Screenshots coming soon...
edit: I made an animated gif this time.
edit 2: I have been able to reproduce this pretty consistently for one session of the game. I'm not sure that the track or car matters much but I'm using Sepang/TL2.
1. start vdrift, go to practice game, select car and track, start game
2. if the camera doesn't go crazy, exit vdrift and repeat #1
3. when the camera goes crazy, ESC, leave game, start a new practice game with same settings -> it should happen again
I have found that the camera will go crazy right as I drive towards the start line. If I put it in 1st, start rolling slowly, then put it back in neutral and roll forward, this does not happen. If at any point I put it back in first and start accelerating, the camera goes into outer space again. I tried very light accelerating and could prevent it but any kind of normal racing will set it off. If it happens one time, it seems to happen consistently no matter how many times I leave the practice and restart.
|
|
02-03-2009, 05:06 PM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
What happens if you change src/camera.cpp line 205 from:
Code: return anchor+(modbody+bouncesim.GetOffset())*offset_effect_strength;
to
Code: return anchor+modbody*offset_effect_strength;
|
|
|