Texture problem while i create car parts

Discussion in 'Content Creation' started by FralviGame, Aug 19, 2019.

  1. FralviGame

    FralviGame
    Expand Collapse

    Joined:
    Aug 19, 2019
    Messages:
    7


    Hello !

    I'm working on creating of my first mod: a double exhaust for the Sunburst. So I create two new parts: a double exhaust and a rear bumper.

    The problem is they do not have textures ! How can I fix that?

    thank you in advance !

    (I include my JBEAM source codes below)

    sunburst_exhaust_race_double.jbeam
    Code:
    {
    "sunburst_exhaust_race_double": {
        "information":{
            "authors":"Fralvi",
            "name":"Double Race Exhaust",
            "value":1500,
        }
        "slotType" : "sunburst_exhaust_I4",
        "mainEngine":{
            "torqueModExhaust":[
                ["rpm", "torque"],
                [0, 0],
                [1000, 0],
                [2000, -0.6],
                [3000,   -1],
                [4000, -1.4],
                [5000, -2.1],
                [6000, -3.2],
                [7000, -4.1],
                [8000, -6.4],
                [9000, -8.6],
            ],
        },
        "flexbodies": [
             ["mesh", "[group]:", "nonFlexMaterials"],
             ["sunburst_exhaust_fartcan_double", ["sunburst_race_double"]],
        ],
        "nodes": [
            ["id", "posX", "posY", "posZ"],
            {"selfCollision":true}
            {"collision":true}
            //--exhaust
            {"frictionCoef":0.5},
            {"nodeMaterial":"|NM_METAL"},
            {"nodeWeight":1.8},
            {"group":"sunburst_race_double"},
            ["exh0",0.17,-1.40,0.14{"selfCollision":false}],
            ["exh1",0.02,-0.98,0.14],
            {"collision":false}
            {"selfCollision":false}
            ["exh2",-0.3,-0.6,0.65],
            ["exh4",0.4,1.10,0.65],
            {"collision":true}
            {"selfCollision":true}
            ["exh3",0.15,-0.098,0.14],
            ["exh5", -0.02,0.66,0.14],
            ["exh7",0.12,1.35,0.18],
            ["exh8",0.51,1.70,0.23],
            ["exh9",0.54,1.9,0.2],
            ["exh10",0.546,2.082,0.23{"selfCollision":false,"group":"", "afterFireAudioCoef":0.6, "afterFireVisualCoef":0.42, "exhaustAudioMufflingCoef": 0.6, "exhaustAudioGainChange":-4}],
            {"group":""},
        ],
    
        "beams": [
            ["id1:", "id2:"],
            {"beamSpring":1501000,"beamDamp":30},
            {"beamDeform":9450,"beamStrength":"FLT_MAX"},
            {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
            //main shape
            {"deformLimitExpansion":1.1},
            ["exh1","exh0"{"isExhaust":"mainEngine"}],
            ["exh3","exh1"{"isExhaust":"mainEngine"}],
            ["exh3","exh5"{"isExhaust":"mainEngine"}],
            ["exh7","exh5"{"isExhaust":"mainEngine"}],
            ["exh7","exh8"{"isExhaust":"mainEngine"}],
            ["exh10","exh8"{"isExhaust":"mainEngine"}],
            {"deformLimitExpansion":""},
            ["exh10","exh9"],
            ["exh9","exh8"],
            //rigids
            {"beamDeform":4000,"beamStrength":"FLT_MAX"},
            ["exh3","exh0"],
            ["exh1","exh5"],
            ["exh8", "exh3"],
            ["exh10","exh5"],
            ["exh9","exh7"],
    
            ["exh0","exh5"],
            ["exh10","exh7"],
            ["exh8", "exh5"],
    
            ["exh3", "exh7"],
            ["exh9", "exh3"],
    
            //rigidifiers
            {"beamDeform":2000,"beamStrength":"FLT_MAX"},
            ["exh4","exh2"],
            ["exh2","exh3"],
            ["exh2","exh1",{"beamSpring":501000,"beamDeform":4000}],
            ["exh2","exh5"],
            ["exh2","exh0",{"beamSpring":501000,"beamDeform":4000}],
    
            ["exh4","exh5"],
            ["exh9","exh4"],
            ["exh7","exh4"],
            ["exh10","exh4"],
            ["exh4","exh3"],
            ["exh4","exh8"],
    
            //["exh4","exh6"],
            //["exh6","exh2"],
            //["exh6","exh3"],
            //["exh7","exh6"],
            //["exh6","exh8"],
            //["exh10","exh6"],
            //["exh6","exh0"],
            //["exh6","exh5"],
            //["exh4","exh1"],
    
            {"beamSpring":501000,"beamDamp":30},
            {"beamDeform":1500,"beamStrength":"FLT_MAX"},
            ["exh2","exh7"],
            ["exh4","exh0"],
    
            //connecting beams
            {"beamSpring":1001000,"beamDamp":150},
            {"beamDeform":12000,"beamStrength":40000},
            //front
            {"breakGroup":"exhaust_a"},
            ["exh0","e1r"],
            ["exh0","e2r"{"isExhaust":"mainEngine","deformLimitExpansion":1.1},],
            ["exh0","e1l"],
            ["exh0","e2l"],
            ["exh0","tra1l"],
            ["exh0","tra1r"],
    
            {"beamSpring":201000,"beamDamp":150},
            ["exh1","tra1r"],
            ["exh1","tra1l"],
    
            //middle
            {"beamSpring":40000,"beamDamp":150},
            {"beamDeform":3000,"beamStrength":15000},
            {"breakGroup":"exhaust_b"},
            ["exh3","f7l"],
            ["exh3","f7r"],
            ["exh3","f8r"],
            ["exh3","f8l"],
            ["exh5","f8r"],
            ["exh5","f8l"],
            ["exh5","f9r"],
            ["exh5","f9l"],
    
            //rear
            {"breakGroup":"exhaust_c"},
            ["exh7", "rx1r"{"optional":true}],
            ["exh7", "rx1l"{"optional":true}],
            ["exh7", "rx2l"{"optional":true}],
            ["exh7", "r2"],
            ["exh7", "r1"],
    
            {"breakGroup":"exhaust_d"},
            ["exh8", "r3ll"],
            ["exh8", "r2ll"],
            ["exh8", "r5ll"],
            ["exh8", "rx5l"{"optional":true}],
            ["exh8", "r6"],
    
            {"beamSpring":6000,"beamDamp":300},
            {"breakGroupType":1},
            ["exh10","r4ll"],
            ["exh10","r4"],
            {"breakGroupType":0},
            {"breakGroup":""},
    
            //support beams
            {"beamPrecompression":1, "beamType":"|SUPPORT", "beamLongBound":4, "beamShortBound":0},
            {"beamDeform":9720,"beamStrength":45900},
            {"beamSpring":3001000,"beamDamp":30},
            {"beamPrecompression":0.85},
            ["exh8","r3"],
            ["exh9","r3"],
    
            ["exh0","e3r"],
            ["exh0","e4r"],
    
            ["exh8","rx1l"{"optional":true}],
            ["exh7","rx1l"{"optional":true}],
    
            ["exh10","r7ll"{"beamPrecompression":0.95}],
            {"beamPrecompression":0.75},
            ["exh5","r1"],
    
            ["exh3","f2r"],
            ["exh3","f2l"],
    
            ["exh5","f4l"],
            ["exh5","f4r"],
    
            ["exh10","r4"],
            ["exh10","r3"],
    
            {"optional":true},
            ["exh10","rb2l"],
            ["exh10","rb2ll"],
            {"optional":false},
            {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1, "beamShortBound":1},
        ],
        "triangles": [
              ["id1:","id2:","id3:"],
              {"triangleType":"NONCOLLIDABLE"},
              ["exh10", "exh9", "exh8"],
              {"triangleType":"NORMALTYPE"},
        ],
    }
    }
    sunburst_bumper_race_double.jbeam
    Code:
    {
    "sunburst_bumper_R_double": {
        "information":{
            "authors":"Fralvi",
            "name":"Sport S Rear Bumper Double",
            "value":170,
        }
        "slotType" : "sunburst_bumper_R",
        "slots": [
            ["type", "default", "description"]
            ["sunburst_mudflap_R","", "Rear Mudflaps"],
        ],
        "flexbodies": [
           ["mesh", "[group]:", "nonFlexMaterials"],
           ["sunburst_bumper_R_wide_double", ["sunburst_race_double"]],
        ],
        "nodes": [
           ["id", "posX", "posY", "posZ"],
           {"frictionCoef":0.8},
           {"nodeMaterial":"|NM_PLASTIC"},
           //--REAR BUMPER--
           {"collision":true},
           {"selfCollision":true},
           {"nodeWeight":0.6},
           {"group":"sunburst_race_double"},
           ["rb1rr", -0.66, 2.01, 0.63],
           ["rb1r", -0.36, 2.13, 0.67],
           ["rb1l", 0.36, 2.13, 0.67],
           ["rb1ll", 0.66, 2.01, 0.63],
    
           ["rb2rr", -0.67, 2.05, 0.50],
           ["rb2r", -0.36, 2.19, 0.50],
           ["rb2", 0, 2.22, 0.50],
           ["rb2l", 0.36, 2.19, 0.50],
           ["rb2ll", 0.67, 2.05, 0.50],
    
           ["rb3rr", -0.66, 1.99, 0.24],
           ["rb3r", -0.36, 2.13, 0.25],
           ["rb3", 0, 2.16, 0.25],
           ["rb3l", 0.36, 2.13, 0.25],
           ["rb3ll", 0.66, 1.99, 0.24],
    
           ["rb4rr", -0.825, 1.59, 0.52],
           ["rb4ll", 0.825, 1.59, 0.52],
    
           ["rb5rr", -0.795, 1.64, 0.20],
           ["rb5ll", 0.795, 1.64, 0.20],
    
           {"group":""},
           {"collision":false}
           {"selfCollision":false},
           ["rb6", 0, 2.06, 0.36],
        ],
        "beams": [
              ["id1:", "id2:"],
              //--REAR BUMPER--
              //rear bumper main shape
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"beamSpring":151000,"beamDamp":100},
              {"beamDeform":20000,"beamStrength":59000},
              {"deformLimitExpansion":1.1},
              ["rb4rr","rb1rr"],
              ["rb1rr","rb1r"],
              ["rb4rr","rb2rr"],
              ["rb2rr","rb2r"],
              ["rb1l","rb1ll"],
              ["rb4ll","rb1ll"],
              ["rb2l","rb2ll"],
              ["rb4ll","rb2ll"],
              //["rb1r","rb1"],
              //["rb1","rb1l"],
    
              ["rb2r","rb2"],
              ["rb2","rb2l"],
    
              ["rb5rr","rb3rr"],
              ["rb3rr","rb3r"],
              ["rb3r","rb3"],
              ["rb3","rb3l"],
              ["rb3l","rb3ll"],
              ["rb5ll","rb3ll"],
    
              ["rb1rr","rb2rr"],
              ["rb1r","rb2r"],
              ["rb1l","rb2l"],
              ["rb1ll","rb2ll"],
              //[/,"rb2"],
    
              ["rb2rr","rb3rr"],
              ["rb2r","rb3r"],
              ["rb2","rb3"],
              ["rb2l","rb3l"],
              ["rb2ll","rb3ll"],
    
              ["rb4rr","rb5rr"],
              ["rb4ll","rb5ll"],
    
              //crossing
              {"deformLimitExpansion":""},
              {"beamDeform":9750,"beamStrength":59000},
              ["rb4rr","rb3rr"],
              ["rb5rr","rb2rr"],
              ["rb2rr","rb3r"],
              ["rb3rr","rb2r"],
              ["rb2r","rb3"],
              ["rb3r","rb2"],
              ["rb2","rb3l"],
              ["rb3","rb2l"],
              ["rb2l","rb3ll"],
              ["rb3l","rb2ll"],
              ["rb4ll","rb3ll"],
              ["rb5ll","rb2ll"],
    
              ["rb1rr","rb2r"],
              ["rb1ll","rb2l"],
              ["rb2rr","rb1r"],
              ["rb2ll","rb1l"],
              ["rb1r","rb2"],
              ["rb1l","rb2"],
              //["rb2r","rb1"],
              //["rb2l","rb1"],
    
              //rigids
              {"beamDeform":4000,"beamStrength":59000},
              {"beamSpring":81000,"beamDamp":100},
              //["rb1rr","rb1"],
              ["rb2rr","rb2"],
              //["rb1","rb1ll"],
              ["rb2","rb2ll"],
              ["rb1r","rb1l"],
    
              ["rb2r","rb2l"],
    
              ["rb3rr","rb3"],
              ["rb3r","rb3l"],
              ["rb3","rb3ll"],
    
              ["rb1rr","rb3rr"],
              ["rb1r","rb3r"],
              //["rb1","rb3"],
              ["rb1l","rb3l"],
              ["rb1ll","rb3ll"],
    
              //weak
              {"beamDeform":3200,"beamStrength":59000},
              {"beamSpring":62000,"beamDamp":100},
              ["rb4rr","rb1r"],
              ["rb1l","rb4ll"],
              ["rb5rr","rb3r"],
              ["rb3l","rb5ll"],
              ["rb4rr","rb2r"],
              ["rb2l","rb4ll"],
    
              //rigidifier
              {"beamDeform":1500,"beamStrength":"FLT_MAX"},
              {"beamSpring":10000,"beamDamp":100},
              ["rb1rr","rb6"],
              ["rb1r","rb6"],
              //["rb1","rb6"],
              ["rb1l","rb6"],
              ["rb1ll","rb6"],
    
              ["rb2rr","rb6"],
              ["rb2r","rb6"],
              ["rb2","rb6"],
              ["rb2l","rb6"],
              ["rb2ll","rb6"],
    
              ["rb3rr","rb6"],
              ["rb3r","rb6"],
              ["rb3","rb6"],
              ["rb3l","rb6"],
              ["rb3ll","rb6"],
    
              {"beamDeform":1650,"beamStrength":"FLT_MAX"},
              ["rb4rr","rb6"],
              ["rb4ll","rb6"],
    
              ["rb5rr","rb6"],
              ["rb5ll","rb6"],
    
              //attach
              {"beamSpring":301000,"beamDamp":100},
              {"beamDeform":4750,"beamStrength":9500},
              //r
              {"breakGroup":"rearbumper_a_R"},
              ["rb1rr","q9r"],
              ["rb2rr","q9r"],
              ["rb4rr","q8r"],
    
              ["rb4rr","q7r"],
    
              //l
              {"breakGroup":"rearbumper_a_L"},
              ["rb1ll","q9l"],
              ["rb2ll","q9l"],
              ["rb4ll","q8l"],
    
              ["rb4ll","q7l"],
    
              //middle
              {"beamDeform":3750,"beamStrength":7500},
              {"breakGroup":"rearbumper_M"},
              ["rb2","r7"],
              ["rb2r","r7"],
              ["rb2l","r7"],
              ["rb2","r7rr"],
              ["rb2r","r7rr"],
              ["rb2l","r7ll"],
              ["rb2","r7ll"],
    
              ["rb6","r7rr"],
              ["rb6","r7"],
              ["rb6","r7ll"],
    
              ["rb6","r4rr"],
              ["rb6","r4"],
              ["rb6","r4ll"],
              {"breakGroup":""},
    
              //rear bumper support beams
              {"beamType":"|SUPPORT", "beamLongBound":4},
              {"beamSpring":1001000,"beamDamp":30},
              {"beamDeform":20000,"beamStrength":125000},
              {"optional":true},
              //["rb2l","t4"],
              //["rb2r","t4"],
    
              //["rb2r","t4r"],
              //["rb2l","t4l"],
              //["rb2","t4r"],
              //["rb2","t4l"],
              {"optional":false},
    
              ["rb4rr","q8r"],
              ["rb4ll","q8l"],
    
              ["rb1rr","q9r"],
              ["rb1ll","q9l"],
    
              ["rb1r","q9r"],
              ["rb1l","q9l"],
    
              ["rb1r","r7"],
              //["rb1","r7"],
              ["rb1l","r7"],
              ["rb1rr","r7rr"],
              ["rb1r","r7rr"],
              //["rb1","r7rr"],
              //["rb1","r7ll"],
              ["rb1l","r7ll"],
              ["rb1ll","r7ll"],
    
              ["rb2r","r7"],
              ["rb2","r7"],
              ["rb2l","r7"],
              ["rb2rr","r7rr"],
              ["rb2r","r7rr"],
              ["rb2","r7rr"],
              ["rb2","r7ll"],
              ["rb2l","r7ll"],
              ["rb2ll","r7ll"],
    
              ["rb2r","r4"],
              ["rb2","r4"],
              ["rb2l","r4"],
              ["rb2rr","r4rr"],
              ["rb2r","r4rr"],
              ["rb2","r4rr"],
              ["rb2","r4ll"],
              ["rb2l","r4ll"],
              ["rb2ll","r4ll"],
    
              ["rb3r","r4"],
              ["rb3","r4"],
              ["rb3l","r4"],
              ["rb3rr","r4rr"],
              ["rb3r","r4rr"],
              ["rb3","r4rr"],
              ["rb3","r4ll"],
              ["rb3l","r4ll"],
              ["rb3ll","r4ll"],
    
              //weak
              //upwards
              ["rb1rr","q4r"],
              ["rb1ll","q4l"],
              ["rb1r","q4r"],
              ["rb1l","q4l"],
    
              ["rb3rr","r3rr"],
              ["rb3ll","r3ll"],
              ["rb5rr","r3rr"],
              ["rb5ll","r3ll"],
    
              ["rb2rr","q8r"],
              ["rb2rr","q9r"],
              ["rb2ll","q8l"],
              ["rb2ll","q9l"],
    
              //weaker
              {"beamDeform":6000,"beamStrength":125000},
              ["rb4rr","r2rr"],
              ["rb4ll","r2ll"],
    
              ["rb5rr","r2rr"],
              ["rb5ll","r2ll"],
              {"beamPrecompression":1, "beamType":"|NORMAL", "beamLongBound":1.0, "beamShortBound":1.0},
              {"deformLimitExpansion":1.1},
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                //rear bumper
                {"groundModel":"plastic"},
                {"dragCoef":5},
                {"group":"sunburst_bumper_R"},
                ["rb1rr","rb2rr","rb4rr"],
                ["rb2rr","rb3rr","rb5rr"],
                ["rb2rr","rb5rr","rb4rr"],
    
                ["rb1r","rb2r","rb2rr"],
                ["rb1r","rb2rr","rb1rr"],
                ["rb2r","rb3r","rb3rr"],
                ["rb2r","rb3rr","rb2rr"],
    
                //["rb2","rb1r","rb1l"],
    
                //["rb1","rb2","rb2r"],
                //["rb1","rb2r","rb1r"],
                ["rb2","rb3","rb3r"],
                ["rb2","rb3r","rb2r"],
    
                //["rb2","rb1","rb2l"],
                //["rb1","rb1l","rb2l"],
                ["rb3","rb2","rb3l"],
                ["rb2","rb2l","rb3l"],
    
                ["rb2l","rb1l","rb2ll"],
                ["rb1l","rb1ll","rb2ll"],
                ["rb3l","rb2l","rb3ll"],
                ["rb2l","rb2ll","rb3ll"],
    
                ["rb2ll","rb1ll","rb4ll"],
                ["rb3ll","rb2ll","rb5ll"],
                ["rb5ll","rb2ll","rb4ll"],
    
                //["rb1l","rb2l","rb2"],
                //["rb2r","rb1r","rb2"],
    
                //bottom
                //["rb3ll","rb5ll","rb3l"],
                //["rb3l","rb5ll","rb3"],
                //["rb5rr","rb3r","rb3"],
                //["rb5rr","rb3rr","rb3r"],
                {"group":""},
        ],
    }
    }
    --- Post updated ---


    Another problem: Only one real output. How to operate both? :)
     
  2. hoehoe23

    hoehoe23
    Expand Collapse

    Joined:
    Jan 5, 2014
    Messages:
    11
    first off where were the mods created? if in blender i can defiantly help you if not i might be able to. one thing i did notice is the nonflexmaterials should be the same as the stock part not the name of the new part (this is for the way i have done things and may not be the correct way but it works )
     
  3. FralviGame

    FralviGame
    Expand Collapse

    Joined:
    Aug 19, 2019
    Messages:
    7
    Yes i use Blender to make my own 3D parts (based on the stock pieces).
    I will try your tip, thank you :)
    --- Post updated ---
    if I do that the pieces become invisible :(
    An other idea ?
     
  4. FralviGame

    FralviGame
    Expand Collapse

    Joined:
    Aug 19, 2019
    Messages:
    7


    I don't applied them to a texture, it's necessary ?
     
  5. hoehoe23

    hoehoe23
    Expand Collapse

    Joined:
    Jan 5, 2014
    Messages:
    11
    have you unwrapped the objects in blender and applied them to a texture ?
    --- Post updated ---
    also after a closer look your nonflexmaterials should be the same as the stock parts so for the rear bumber it should be sunburst_bumber_R also under nodes the group should also be sunburst_bumber_R.
     
  6. FralviGame

    FralviGame
    Expand Collapse

    Joined:
    Aug 19, 2019
    Messages:
    7
    I don't applied them to a texture, it's necessary ? (I posted a photo but it is waiting for moderation)

    I try this but no textures too :/
     
  7. hoehoe23

    hoehoe23
    Expand Collapse

    Joined:
    Jan 5, 2014
    Messages:
    11
    also after a closer look your nonflexmaterials should be the same as the stock parts so for the rear bumber it should be sunburst_bumber_R
    in my experience anytime ive modified or made parts ive had to unwrap the new part and in blender make sure the material is selected properly. so for the exhaust the material name in blender needs to be sunburst_exhaust. make sure there are no numbers after it also. generally the material name should always be the same as the original part so in blender look at the original part material and make sure it matches the new parts

    edit: just to be clear there is no need to unwrap and re texture the entire object just any parts you have added. the rear bumber shouldnt even need to be unwrapped considering you just slid some verts over a bit.
    --- Post updated ---
    here is how i set up my mods. you can see how i have the materials set up
     
  8. FralviGame

    FralviGame
    Expand Collapse

    Joined:
    Aug 19, 2019
    Messages:
    7
    Yeah you're a god :D
    I look at original sunburst.dae : the bumper and the exhaust have the same "sunburst" material.
    So i look at my parts, and blender renamed "sunburst" in "sunburst.001" and "sunburst.002" ! I renamed both in "sunburst" and it works ! :D



    Thank you :)

    Now my last challenge is to run both exhaust outlets (smoke spells out of both)
    --- Post updated ---
    Yes, dual exhausts works :



    In .jbeam i duplicated all of "exh10" fields (first exhaust outlet) in "exh11" for the second exhaust outlet. I move the x position a bit and it works :)
     
    • Like Like x 1
  9. hoehoe23

    hoehoe23
    Expand Collapse

    Joined:
    Jan 5, 2014
    Messages:
    11
    here is how i set up my mods. you can see how i have the materials set up and it should w
    your very welcome and im glad it is working now.
     
  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