blender2ogre icon indicating copy to clipboard operation
blender2ogre copied to clipboard

Mesh Without Material

Open JrIndie opened this issue 7 years ago • 5 comments

Hello, I was wondering if Blender2Ogre could export a mesh without a material attached to it. For example, we want to have *.mesh with no predefined material so we can assign our own.

Thanks you!

JrIndie avatar Aug 29 '17 12:08 JrIndie

https://github.com/OGRECave/blender2ogre#external-ogre-materials ?

paroj avatar Aug 29 '17 21:08 paroj

Hello paroj,

Thank you for the response. I am sorry I did not see this. But I also want to clarify a few things ...

We are new to Ogre and just want to get the basics done correctly. After getting meshes loaded and with their material and textures, I can only assume the internal workings of the function automatically load and apply materials/textures that are predefined in the *.mesh itself.

If this is correct, I would like to know of a way that does not do this, so that in our editors we can assign our own materials, and textures (basically like HLMS PBR).

Thank you for your time.

JrIndie avatar Aug 29 '17 22:08 JrIndie

the mesh file merely stores a material name that is resolved on loading from the supplied *.material scripts and the programmatically created materials. So if you would like to use a material from the HLMS sample (1.10) you would call the material extern.PBS_X_Y_Z and make sure that the according material is created before the mesh is loaded.

paroj avatar Aug 29 '17 22:08 paroj

Okay! So there is no way we can leave this section blank, and supply the Material in our own tools? If so, I assume we can use some basic Generic Material, and then we can change that later, correct?

Thanks!

JrIndie avatar Aug 29 '17 22:08 JrIndie

yes, this would be the most straighforward approach. Note that Ogre requires that some material is specified on loading - otherwise we would not know how to render the mesh.

paroj avatar Aug 29 '17 22:08 paroj