• Welcome to PiBoSo Official Forum. Please login or sign up.
 

Animation of car geometry

Started by Phathry25, December 09, 2016, 05:09:45 AM

Previous topic - Next topic

Phathry25

Any insight on how to define the stuff in the GFX.cfg file?

Position? Rot? Axle? Spindle? Relative to what? How to measure?

These obviously aren't absolute mounting positions.

link_scene?
slidescale?
reflength?

Phathry25

I set all the pos and axle values to 0 for my car and on the spinner the radius rods line up in the right location on the car, but a little low at the axle.  On track they wildy spin around the car, with no apparent rhyme or reason.

Where do I align the pivot on the radius rod in my 3d editor?  On the spinner it doesn't appear to matter.  What are the numbers in for pos and axle in the gfx.CFG defining?  I am working off of the wingless sprint car as my car is just a smaller version of it.

https://i.gyazo.com/72e1df4039ff440548325056bdab1a9d.png

Any guidance?


AUSSIEDIRT

...... That looks alot like a midget

bsauder189

Stands no taller than 4'10", it just may be Aussie ;).

AUSSIEDIRT

Looks alot like the spr midget (not passing judgement) if it's a midget it would be a fantastic platform for people to come online with more mods

Phathry25

Anything at all you can offer?  I'd really like to get these radius rods properly animated.  :-\

AUSSIEDIRT

This is were a in game tool would help. What's it doing on track?

bsauder189

They're spinning around the center axis point of the car instead of staying static at their locations on the model, Aussie.

AUSSIEDIRT

Are they their own models?


Sorry for the obvious questions

AUSSIEDIRT

im just approaching this in the same way we would approach a rfactor issue i wonder if perhaps the suspension rods are attached to something their not supposed to be

Phathry25

For the love of God.  Please.  What are these points?

Kevo

I havent had much experience with the gfx.cfg files yet, but I may be able to help you.

      linkage0
      {
         name = SUSP_LINK_LF1
         pos
         {
            x = 0.0
            y = 0.0
            z = -1.5
         }
         axle
         {
            x = -0.065
            y = 0.267
            z = 0.0
         }
      }

From what I understand from animating the monster truck suspension, "pos" is the length of the suspension linkage, along the axis that it shows as in 3DS Max. "axle" is the location of the pivot on the axle side, relative to the centre of the axle.

      shock
      {
         name = SUSP_SHOCK_BODY_LF
         refobj = SUSP_SHOCK_SHAFT_LF
         pos
         {
            x = 0
            y = 0
            z = 0
         }
         link
         {
            x = -0.58
            y = 0.166
            z = -0.004
         }

         link_scene = 1
         
         slideaxis = y-
         slidescale = 1
         reflength = 0.30
      }

"link" is the location of the bottom end of the shock along the x,y and z axes, relative to the centre of the axle. "reflength" I dont know the exact definition, but increase or decrease this value to get the bottom of the shock model to sit in its proper location. Perhaps it is the length of the shock model in 3DS Max, minus the minimum shock length found in the .geom file.

Hopefully this helps.

Phathry25

THANK YOU VERY MUCH!!!!!!!!

I hope the growing team means that good things are happening for PiBoSo. :)

AUSSIEDIRT

So when do we get to see the midget

Kevo

Quote from: Phathry25 on December 15, 2016, 02:29:58 AM
THANK YOU VERY MUCH!!!!!!!!

I hope the growing team means that good things are happening for PiBoSo. :)

You're welcome :)