Getting wheels from the wheel.dae file

Discussion in 'Content Creation' started by ThreeDTech21, Aug 14, 2015.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    How do I get wheels from the .dae file? I am making my own vehicle and instead of making wheels I want to just use the wheels that are already created in that file, where is that file located and what line of code will get the wheels to show up on my car which is located in Documents/beamngdrive/mods/vehciles.

    or

    If the above is not possible I do have my own wheels that i can use, only problem i am having is texturing the wheels since each wheel is a separate object with different names will I have to declare each its own PNG (picture) file? or is there a way to use one PNG file for all the wheels?
     
  2. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Wheels are in wheels.dae in common.zip. Anything in common.zip is accessible by all vehicles. Simply use the mesh name for the wheel you want as if it was in your own dae file, the common zip and multi-dae takes care of the rest.
     
  3. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Ok thanks! I can even drop my own wheels in there
     
  4. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,700
    Err you probably shouldn't if it's anything you want to release. You can make multiple DAE files in your own projects if you need to do the same sort of thing.

    explorer.dae
    explorer_wheels.dae

    For example.
     
  5. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    ok Ill use the ones in there for now, but what the exact line of code for it? currently I have my own wheels using this line

    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["Ford_body", ["Ford_body_g"]],
    ["wheelFL", ["wheel_FL_g"]],
    ["wheelFR", ["wheel_FR_g"]],
    ["wheelRL", ["wheel_RL_g"]],
    ["wheelRR", ["wheel_RR_g"]],

    do I replace "wheel_FL_g with a wheel name from the wheel.dae file? like this?

    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["Ford_body", ["Ford_body_g"]],
    ["tire_01b_15x7_27", ["wheel_FL_g"]],
    ["wheelFR", ["wheel_FR_g"]],
    ["wheelRL", ["wheel_RL_g"]],
    ["wheelRR", ["wheel_RR_g"]],


    --EDIT---

    the above worked when I put the wheel.DAE into my project folder but now this has happened:

    wheel loaded not atached.PNG

    the wheel is in the center of my car. How do i get it to the right area?
     
    #5 ThreeDTech21, Aug 14, 2015
    Last edited: Aug 14, 2015
  6. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Look at the official vehicles. For example the super:
    ["super_wheel_16x10", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8141, "y":1.25, "z":0.31}, "rot":{"x":0, "y":0, "z":180}, "scale":{"x":1, "y":1, "z":1}}],

    and
    ["tire_01a_16x10_25", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.8141, "y":1.25, "z":0.31}, "rot":{"x":0, "y":0, "z":0}, "scale":{"x":1, "y":1, "z":1}}],
    I only post the 2nd for completenesses sake as the official vehicles have seperate wheel and tyre.


    All wheel meshes are positioned at 0,0,0. Multidae allows repositioning of meshes. So thats what the vehicles do, simply change the position and rotation to force the wheel into the correct spot.

    As for replacing wheel_FL_g, thats the deform group not the mesh name... you would replace wheelFL
     
  7. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Cheers thanks! I'll mess around with these setting for a while and become more familiar with them.

    --EDIT--

    To better understand things I guess i should ask this question: How is beamng finding the referenced wheel mesh? is it looking in any .DAE file from my project folder until it finds the referenced wheel mesh? or does it already know exactly where to look for it? (middle-ware programming)
     
    #7 ThreeDTech21, Aug 14, 2015
    Last edited: Aug 15, 2015
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice