Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Without Material #15

Open
JrIndie opened this issue Aug 29, 2017 · 5 comments
Open

Mesh Without Material #15

JrIndie opened this issue Aug 29, 2017 · 5 comments
Labels

Comments

@JrIndie
Copy link

JrIndie commented Aug 29, 2017

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!

@paroj
Copy link
Member

paroj commented Aug 29, 2017

@JrIndie
Copy link
Author

JrIndie commented Aug 29, 2017

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.

@paroj paroj added the question label Aug 29, 2017
@paroj
Copy link
Member

paroj commented Aug 29, 2017

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.

@JrIndie
Copy link
Author

JrIndie commented Aug 29, 2017

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!

@paroj
Copy link
Member

paroj commented Aug 29, 2017

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.

@OGRECave OGRECave deleted a comment from JrIndie Sep 1, 2017
@OGRECave OGRECave deleted a comment from JrIndie Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants