Vehicle not appearing

Discussion in 'Content Creation' started by gigawert, Jun 18, 2016.

  1. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    Just to see how to put vehicles in BeamNG, I got a model from the Sketchup warehouse of a 1988 Toyota Corolla and exported it as a DAE. (I don't plan on officially releasing this unless I heavily modify the jbeam and model). I then put the 1988 Pessima jbeam, body jbeam, and bumper jbeams in but when I load it up, only the jbeam appears but not the mesh. Attached is a zip of this car, does anyone know what I did wrong? :)
     

    Attached Files:

  2. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    I cant import the model into blender because it doesnt import properly, but it appears you havent renamed the parts in the flexbody section to the names of the parts in the mesh.

    edit

    alright so what you do to change the flexbodys
    find this:
    Code:
     "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            //body
            ["pessima_body", ["pessima_body"]],
            ["pessima_radsupport", ["pessima_body"]],
            ["pessima_engbaycrap", ["pessima_engine_bay"]],
            ["pessima_subframe_F", ["pessima_subframe_F"]],
            ["pessima_brace", ["pessima_subframe_F","pessima_body"]],
            ["pessima_subframe_R", ["pessima_subframe_R"]],
            {"deformGroup":"pessima_backlight_break", "deformMaterialBase":"pessima_lights", "deformMaterialDamaged":"pessima_lights_dmg"}
            ["pessima_chmsl", ["pessima_body"]],
            {"deformGroup":""}
            ["pessima_dash", ["pessima_dash"]],
            ["pessima_intmirror", ["pessima_roof"]],
            ["pessima_sunvisor", ["pessima_roof"]],
            ["pessima_gauges", ["pessima_dash"]],
            ["pessima_decals_gauges", ["pessima_dash"]],
         ],
    
    Lets take
    Code:
            ["pessima_body", ["pessima_body"]],
    and turn it into the corolla body

    The first name "pessima_body" is the name of the mesh in the .DAE. The second part is the node group its assigned to.

    So lets say your body mesh is called "corolla_body". what you need to do is change the first part, "pessima_body" into "corolla_body". like this:
    Code:
            ["corolla_body", ["pessima_body"]],
     
  3. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    I believe it is just a single mesh.
    --- Post updated ---
    I renamed them and it still has the same issue
     
  4. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    What program are you using? sketchup? if so someone else needs to step in, as i dont know how to rename things in sketchup. Also mind sharing what you changed in code tags?(["code"] ["/code"] without the quotes)
     
  5. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    This is the model: https://3dwarehouse.sketchup.com/model.html?id=586da8cf648767222a9eb0f146e94477

    Here is what the pessima_body.jbeam flexbodies section now looks like:
    Code:
    "flexbodies": [
            ["mesh", "[group]:", "nonFlexMaterials"],
            //body
            ["corolla_body", ["corolla_body"]],
         ],
    pessima_bumper_F.jbeam:
    Code:
    "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["corolla_bumper_F", ["corolla_bumper_F"]],
        ],
    pessima_bumper_R.jbeam:
    Code:
    "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["corolla_bumper_R", ["corolla_bumper_R"]],
        ],
     
  6. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    Ahhh, you changed the second one. Dont change that one unless you change it in node section as well. So leave the first one as you have it(name of the mesh) but change the second one(node group) back to pessima_XXXX
     
  7. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    Just did that and the mesh is still invisible.

    Attached: current zip
     

    Attached Files:

  8. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    so if you open console(~ key) you will see errors. right now its saying failed to get render mesh corolla body. that means your mesh doesnt have anything named corolla body in it. so you need to find the name of the body/rename the body in the mesh
     
  9. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    I opened the DAE with Notepad++ and I saw a lot of XML but nothing relating to the overall name.
     
  10. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    opening it in a text editor is not the way to do it. You need to open it in a 3d modeling program, like blender or sketchup. From there, at least in blender, you can see the mesh names
     
  11. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    Imported it back into Sketchup and exported it with the name I specified in the jbeam but still nothing.
    upload_2016-6-17_17-45-27.png
    (in the top right corner)
     
  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