Cockpitinfo file - origin for mirror position

LesiU

I though I have that figured out already but I was wrong ;-)
I'm trying to position the "MirrorPos" parameter as I would like (in reference to cockpit model viewed in 3dsimed) but it looks like 0 coordinate for 3d model (for Y axis) is not in the same as 0 coordinate for Z axis for MirrorPos in rFactor.
How rFactor setup that parameter? Where on 3D model is its "starting position"?

Thanks
 
No, I'm talking about MirrorPos parameter coordinates, in Cockpitinfo file. It's about mirror POV (where the mirror camera is positioned, somewhere in the cockpit mostly).
 
Oh, where the default mirror pos starts from?

You are aware that rf uses xzy not xyz?
 
Yes, exactly and yes, I'm aware. To avoid misunderstanding, we are talking about forward/back axis of the MirrorPos parameter.
 
Ok, I just tested it and I put the co-ords exactly as the object is in 3d space and it worked properly. I also tried moving it forward and back and it changed relatively.

Can you show me a screenshot of what your seeing?

This is what I see with the those co-ords and the seat at 0, 0
 
This is interior for DBR9. Notice, where 0 coordinate is for Y:

3dsimeddbr9.jpg



At Brianza, there is one place at the pit lane exit, on the right, where you have a wall you can go through... nice way to do such test!
Now, notice, that this wall intersects picture visible in the virtual center mirror. That means, it also intersects the point where mirror POV has been set (and in cockpitinfo co-ords are 0,0,0):

cockpitdbr92.jpg



Remember, where Y=0 was in 3dsimed? About on "S" letter on the left door. It is clearly seen, that in rF that 0 point is definatelly backwards (more positive Y coordinate value) in relation to "S" letter on the door.

cockpitdbr91.jpg
 
Last edited:
I see what you mean, I just did a few test's, the closest thing I got was the eyepoint. Changing the eyepoint made a little difference but when I set the eyepoint to y=0, the eyepoint went to y=0 in cockpit view, but the mirror still didn't.
I checked the pivot point for the helmet. My helmet pivot point is y=0.656. Now I put the helmet pivot point to y=0 and I get no change. I even moved the helmet model to y=0 but no change.
There is still lots of stuff to test, like physical centre in the physics files, maybe the steering wheel. I'll have another look a bit later.

But for now all I can say is the eyepoint is relative to part of it.

Here you see the mirror and it's relation to y axis.
The centre point of my model is the exact physical centre of the car


Eyepoint at y=0.7 . mirrorpos y=0


Eyepoint at y=0 . mirrorpos y=0


[ED] and as for where things end up in 3d land in game, it is exactly as you see it in the editor.
 
Thanks! Your test might suggest that it is somewhat related to eyepoint position... but that would be weird (why not just relate it directly to 3D object coordinates?). Besides, my seat position was all the way back (-100) and the mirror point was even more behind the seat. Very strange, isn't it? :D


Maybe ISI could explain, how is that related?


EDIT:
It gets more interesting :D

I decided I will do it in the simpliest way. On the pictures above, mirror pos is right behind door handle. I checked coordinates and it is at about 0.43. I want my mirrorpos at -0.255 (between inside and outside mirrors in Y axis). So, I have to put "-0.685" value for MirrorPos, right? Should be simple as that... but it's not :D
With that, my mirror position went forward, but at about "A" letter (where 0,0,0 coordinates are for 3D model)... Tell me, how not to get a headache when see things like that? ;-)


Oh, and MirrorPos is not related with Eyepoint parameter. I did some tests and no matter what value I put for it's Y coordinate for Eyepoint, mirror point won't move at all (until I change its coordinates of course).

EDIT2:
Z coordinate for MirrorPos is counted NOT from ref plane (which is the bottom of the car) but from raw coords for the model, as you see it in 3d editor. For example, if your model is positioned like that:

3dsimeddbr9.jpg


where physical middle mirror is at 0.65, bottom of the car is at -0.3, then if you want to put MirrorPos at middle mirror level, you should put 0.65 as Z coordinate for Mirror Pos (NOT 0.65+0.3=0.95, like you would do when referencing to ref plane).
 
Last edited:
Yep now your onto it, this is how to figure these things out, trial and error (lots of errors :D). One more thing came to mind, set the fov in your options to default. I'm pretty sure that if you have any other setting for fov, it will override anything in the cockpit.ini.
 
Yeah, not the first time and definatelly not the last ;-)

A few tests with different FOVs showed it has no influence on MirrorPos.

btw. do you know, what the difference is between different values for "SteeringWheelType" parameter in Cockpitinfo?
 
I should've searched that without "rfactor" phrase ;-)

I found this:
"Der SteeringWheelType definiert die Animation der Arme sowie auch den Lenkraddurchmesser."
It sounds for me like different types of arms animation so yeah, definatelly SimBin thing :)
 

Back
Top