1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

Help with engine swap textures?

Discussion in 'General Discussion' started by Epeli00, Sep 28, 2021.

  1. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    Can someone help me with engine swap textures? I was swapping the civetta v8 into my piccolina and I got to the point where I was in blender and got the things ready, but I don’t know how I get the ”new” engine texture into beamng.
     
  2. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    copy main.materials.json from the bolide into your mod's folder along with the engine textures from the bolide (super_c.dds and super_d.dds)
     
    #2 Joobles, Sep 29, 2021
    Last edited: Sep 29, 2021
  3. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    Thanks! I’ll try it out
     
  4. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    It doesn’t work :( I just get an invisible engine and a loose transmission like usual, and I’ve tried putting the textures just inside the mod folder, then repo, autobello under documents and all of the above with the textures inside a folder.
     
  5. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    Wait, did it ever appear in game as a no texture? Or has it always been invisible?
     
  6. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    It’s always been invisible
     
  7. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    Ah, well that's a different problem. Mind sending the jbeam file over so I can take a look at it?
     
  8. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    I’m gonna send the file as soon as I can! I have the engine swapped, so that I can select it as an engine ingame, can hear the sounds and the performance is as it should be, but the engine is just invisible and the trans is loose.
     

    Attached Files:

  9. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    Here's probably your issue, you need to change "autobello_engine" into the name of the bolide engine model in blender (under "mesh", not [group])
    Code:
    },
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["autobello_engine", ["autobello_engine"]],
             ["autobello_header", ["autobello_engine","autobello_chassis","autobello_shocktop_R","autobello_uppermounts_R","autobello_lowermounts_R"]],
     
  10. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    Ok, I’ll try that
    --- Post updated ---
    I got it to work!!! now I just need to move the engine's position. it didnt work in blender when i tried moving it, can i do it inside the jbeam file?
     
  11. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,079
    Yes. Take a look at metal box's jbeam file, in the flexbodies section, you can see a code like this
    {"pos":{"x":0 "y":0 "z":0 }}
    0 means default position of the mesh, you can move the mesh by changing those values to something else
     
    • Agree Agree x 1
  12. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    I got it to work!!! now I just need to move the engine's position. i
    Okay, thanks
    --- Post updated ---
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["autobello_v8_engine", ["autobello_engine"]],
    ["autobello_v8_header", ["autobello_engine","autobello_chassis","autobello_shocktop_R","autobello_uppermounts_R","autobello_lowermounts_R"]],


    I dont have X Y or Z coordinates in the flexbodies section, but could it be this?





    "nodes": [
    ["id", "posX", "posY", "posZ"],
    {"selfCollision":false},
    {"collision":true},
    //engine box
    {"frictionCoef":0.5},
    {"nodeMaterial":"|NM_METAL"},
    {"group":"autobello_engine"},
    {"engineGroup":"engine_block"},
    {"nodeWeight":19},
    {"chemEnergy":500,"burnRate":0.39,"flashPoint":800,"specHeat": 0.2,"selfIgnitionCoef":false,"smokePoint":650,"baseTemp":"thermals","conductionRadius":0.12},
    ["e1r",-0.11, 0.55, 0.31],
    ["e1l", 0.11, 0.55, 0.31],
    ["e2r",-0.11, 1.05, 0.31],
    ["e2l", 0.11, 1.05, 0.31],
    {"engineGroup":["engine_block","engine_intake"]},
    ["e3r",-0.26, 0.55, 0.72],
    ["e3l", 0.26, 0.55, 0.72],
    ["e4r",-0.26, 1.05, 0.72, {"isExhaust":"mainEngine"}],
    ["e4l", 0.26, 1.05, 0.72],
    {"chemEnergy":false,"burnRate":false,"flashPoint":false, "specHeat": false,"selfIgnitionCoef":false,"smokePoint":false,"baseTemp":false,"conductionRadius":false},
    //torque reaction node
    {"nodeWeight":15},
    ["ta1",0.0, 0.55, 0.425],
    {"engineGroup":""},
    {"group":""},
     
    • Like Like x 1
  13. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    did you apply all transforms in blender?
     
  14. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,079
    As I said, you should take a look at metal box's jbeam to figure out how to write the position code of the mesh
    For example the first line of the flexbodies should be this:
    ["autobello_v8_engine", ["autobello_engine"], [], {"pos":{"x":0 "y":0 "z":0 }}],
    You can add this to the end of every line of the flexbodies to move them to somewhere else.

    , [], {"pos":{"x":0 "y":0 "z":0 }}

    Also the idx/y/z in the nodes section can change the position of the nodes only, not the mesh
     
  15. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["autobello_v8_engine", ["autobello_engine"]],
    ["autobello_v8_header", ["autobello_engine","autobello_chassis","autobello_shocktop_R","autobello_uppermounts_R","autobello_lowermounts_R"]],


    I dont have X Y or Z coordi
    Ohhhhh! I didn’t get that metal box jbeam thing that you were talking about before lol
    --- Post updated ---
    I didn’t. Someone said about that on a discord server and it works, Just gotta find the right spot for the engine now :)
    --- Post updated ---

    One last question (Im asking a bit too much at this point lmao), how do I get the engine to be statically in place, because right now its just wobbling around on the ground along with the transmission?
     
  16. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    It needs engine mounts. I myself don't totally know how to do that yet so hopefully someone else can help you out there
     
  17. Epeli00

    Epeli00
    Expand Collapse

    Joined:
    Sep 28, 2021
    Messages:
    11
    Okay. Thanks for helping me though!
     
  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