1. Stuck or having problems creating your mod?
  2. GPU Fatal Error? Intel HD Graphics 620/630 Crashes? Help us solve them!
    Dismiss Notice

Unsolved Part Mesh Problem

Discussion in 'Mod Support' started by bidwars, Oct 2, 2019.

  1. bidwars

    bidwars
    Expand Collapse

    Joined:
    Sep 23, 2014
    Messages:
    144
    I am creating a simple 1" x 4' stick object that can be added to any vehicle. I created the object in blender and set the origin and location and rotation to 0 0 0.


    The DAE is saved to the vehicle common folder so it can be used on any vehicle. To get the location and rotation where I need the mesh to show up I imported the barstow.dae file into blender and moved the object into place and entered the information in the flexbodies section for the part.



    In the barstow vehicle folder is my jbeam file

    barstow_stick_gd": {
    "information":{
    "authors":"Bidwars",
    "name":"Stick",
    "value":0,
    }
    "slotType" : "barstow_stick_gd",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["stick_gd", ["barstow_stick_gd","barstow_body"], [], {"pos":{"x":0.69967, "y":-0.01727, "z":1.24603}, "rot":{"x":37, "y":22, "z":42}, "scale":{"x":1, "y":1, "z":1}}],
    ],

    barstow_stickbreak_gd": {
    "information":{
    "authors":"Bidwars",
    "name":"Stick Break",
    "value":0,
    }
    "slotType" : "barstow_stickbreak_gd",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["stickbreak_gd", ["barstow_stickbreak_gd","barstow_body"],[],{"pos":{"x":0.627773, "y":0.13941, "z":1.37337}, "rot":{"x":37, "y":22, "z":42}, "scale":{"x":1, "y":1, "z":1}}],
    ],
    "nodes": [
    ["id", "posX", "posY", "posZ"],
    {"group":"barstow_stick_gd"},
    {"collision":false}
    {"selfCollision":false}
    {"nodeMaterial":"| NM_WOOD"},
    {"frictionCoef":0.5},
    {"nodeWeight":2.0},
    ["gd_s1", 0.60607, 0.28499, 1.47967],
    {"group":""}
    ],
    "beams": [
    ["id1:", "id2:"],
    {"deformLimitExpansion":""},
    {"breakGroup":"stickbreak_gd"},
    {"beamSpring":2300000,"beamDamp":280},
    {"beamDeform":220000 ,"beamStrength":"FLT_MAX"},

    ["gd_s1","r1ll"],
    ["gd_s1","r2ll"],
    ["gd_s1","r2"],
    ["gd_s1","r1"],
    {"breakGroup":""},
    ],

    The part spawns on the barstow with the correct mesh image but the rotation and location are off.


    What might be causing this? I reapplied location rotation and origin multiple times but it did not seem to help.
     

    Attached Files:

    • blenderscale.jpg
    • blenderlocation.jpg
    • stickmesh.jpg
  2. Kueso

    Kueso
    Expand Collapse

    Joined:
    Oct 14, 2016
    Messages:
    3,086
    CTRL+A
    hit location, rotation, and scale.
    export
     
  3. bidwars

    bidwars
    Expand Collapse

    Joined:
    Sep 23, 2014
    Messages:
    144
    Yeah I tried that already. It did not change anything.
     
  4. Kueso

    Kueso
    Expand Collapse

    Joined:
    Oct 14, 2016
    Messages:
    3,086
    oh weird
    im not sure then.
     
  5. Smirkyguy

    Smirkyguy
    Expand Collapse

    Joined:
    Sep 23, 2016
    Messages:
    34
    omg finally he is taking my suggestion and putting it in the mod :D
     
  6. bidwars

    bidwars
    Expand Collapse

    Joined:
    Sep 23, 2014
    Messages:
    144
    I finally figured it out. In blender if you set the Rotation Mode to ZXY Euler then it works.

    upload_2019-10-6_20-30-2.png
     
  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