Page 1 of 1

CreateMaterial() forces Texture?

Posted: Sun Feb 17, 2013 6:08 pm
by IdeasVacuum
If we can set a material colour with SetMaterialColor(), shouldn't that mean we can apply colour to an entity without applying a texture? If we can, then Texture should be optional in the CreateMaterial() function, else we are always forced to use a material script.....

Edit: Well, it seems that the system is happy to accept an empty or blank Texture........

Re: CreateMaterial() forces Texture?

Posted: Sun Feb 17, 2013 7:40 pm
by Samuel
As far as I know you need to have a texture for your material. If you want a red texture without having to load a texture or write a script then
give this a try.

Code: Select all

    CreateTexture(0,32,32)
     StartDrawing(TextureOutput(0))
         Box(0, 0, 32, 32 ,RGB(150,0,0))
     StopDrawing()
Then just use this texture on your material.

Re: CreateMaterial() forces Texture?

Posted: Mon Feb 18, 2013 12:40 am
by PMV
OGRE3D doesn't needs a texture, it can have vertice-colors
So this is a good feature request (thread should be moved) ;)

MFG PMV