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.
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)
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.
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.
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"]],
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?
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
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":""},
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
"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?
It needs engine mounts. I myself don't totally know how to do that yet so hopefully someone else can help you out there