Announcement

Collapse
No announcement yet.

Blender and materials problem

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Blender and materials problem

    Hi, I've just revived an old project and trying a test export from Blender, but I keep receiving an error related to the object (MAIN) not having a material, see the message in the screenshot for exact wording. I've searched and can't find any of the objects missing materials, I've tried naming all of the materials the same names as the object (MAIN), and can't work it out. If anyone can see what I'm doing wrong it would be great, thanks. Hopefully having the outlier expanded in Blender can help. Click image for larger version

Name:	blndr_1.jpg
Views:	1990
Size:	51.6 KB
ID:	2315340

    #2
    Hi...

    You need to click on the "Material Tab" and make sure you have a texture assigned in the "MSTS Materials" selection.

    If your "Material" is properly defined - you can select it for each part in the top window you have shown.







    Regards,
    Scott

    <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

    Comment


      #3
      Hi...

      One more thought - once you have a working material - you can easily copy it to all objects in your scene - for a test export. When starting a model - I just make a Material called "Default" with a medium gray texture - using it on every part for a test export - then progressively assign final mapping and texture to each object as I go.
      1. Select the object with the desired material.
      2. [Shift] + [Click] to select additional objects - or - [A] to select all other objects.
      3. [Ctrl] + [L] to open the Make Links menu.
      4. [Click] on Materials.

      This will apply the material from the active object to all other selected objects.

      Regards,
      Scott
      Last edited by scottb613; 11-23-2024, 10:09.
      <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

      Comment


        #4
        Originally posted by scottb613 View Post
        Hi...

        One more thought - once you have a working material - you can easily copy it to all objects in your scene - for a test export. When starting a model - I just make a Material called "Default" with a medium gray texture - using it on every part for a test export - then progressively assign final mapping and texture to each object as I go.
        1. Select the object with the desired material.
        2. [Shift] + [Click] to select additional objects - or - [A] to select all other objects.
        3. [Ctrl] + [L] to open the Make Links menu.
        4. [Click] on Materials.

        This will apply the material from the active object to all other selected objects.

        Regards,
        Scott
        Sweet, this suggestion did the trick, it exported immediately after.

        Still learning Blender and I can put an OK shape together and an OK UV Map, but Materials are still sketchy and what data needs to be linked where, but slowly ironing it out. Thanks for this hint, I'll keep this one in mind.

        Comment


          #5
          Originally posted by vline45 View Post

          Sweet, this suggestion did the trick, it exported immediately after.

          Still learning Blender and I can put an OK shape together and an OK UV Map, but Materials are still sketchy and what data needs to be linked where, but slowly ironing it out. Thanks for this hint, I'll keep this one in mind.

          Glad you have it sorted. I came from 3DC and Blender just makes everything so much easier. We're here to help.


          Regards,
          Scott
          <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

          Comment


            #6
            Glad you got it figured out... Sometimes its hard to find... especially if imported.


            Another way to do deal with this is ask chatgpt. With the following prompt. "blender python find objects without materials and assign one"

            You get a script back that you can paste into the scripts tab, and the problem gets dealt with, provided that is what you wanted.

            You can then later use the "select by material" in edit mode to get a clear picture of what is affected.

            http://www.railsimstuff.com
            Just Blender now, 3DCrafter only when I have to.
            formerly The Keystone Works (All Permissions Granted)
            https://github.com/pwillard/MSTS-replacement
            sigpic

            Comment

            Working...
            X