So, I'm trying to make a simple box, real simple stuff. I got the Jbeam all good, but I just can't figure out how to do the materials. I understand that in the Jbeam I have to have the Flex Body set the the name of the model and group the nodes are in. And I have the materials.cs setup correctly(?). So I will include screenshots of my project and see if you guys can help me. Here's the Jbeam (minus the nodes and beams) Code: { "beamng": { "information": { "authors": "Rovvioli", "name": "Box", "value": 2000.0 }, "slotType": "main", "slots": [ [ "type", "default", "description" ] ], "dragCoef": 10.0, "scalebeamSpring": 1.0, "scalebeamDamp": 1.0, "scalebeamDeform": 1.0, "scalebeamStrength": 1.0, "refNodes": [ ["ref:", "back:", "left:", "up:"] ["M21", "M18", "R8", "M20"] ], "cameraExternal": { "distance": 10.0, "distanceMin": 10.0, "offset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "fov": 65.0 }, "flexbodies": [ [ "mesh", "[group]:", "nonFlexMaterials" ["cube", ["Nodes"]], ], ], "nodes": [ [ "id", "posX", "posY", "posZ" ], { "nodeWeight": 3.0 }, { "collision": true }, { "selfCollision": true }, { "frictionCoef": 1.0 }, { "nodeMaterial": "|NM_METAL" }, { "fixed": false }, { "surfaceCoef": 0.10000000149011612 }, { "volumeCoef": 0.10000000149011612 }, { "group": "Nodes" }, ], materials.cs file Code: singleton Material(cube) { mapTo = "cube"; diffuseMap[0] = "cube.png"; specularPower[0] = "15"; useAnisotropic[0] = "1"; castShadows = "1"; translucent = "0"; alphaTest = "0"; alphaRef = "0"; }; It'd be real great if you could teach me how to do materials
The materials.cs defines how the mesh/object you have will be rendered. The issue there is that your mesh is not appearing at all first. First thing I notice is that your 'cube' object has a blender icon. Did you export the object in the COLLADA (.dae) format first? (.blend files are not accepted)
Yeah, I have my .dae files set to open with blender. So if the mesh isn't showing up at all, how could I get it to show up?
Check your console, it should tell what's wrong. It could be: Mismatching object name between DAE (not the DAE name, but the object inside it) and Jbeam The object has no material assigned to it
Alright, I figured it out. It turns out no material was assigned to it, checked it and then assigned one. Now it works, thanks for the help.