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........
CreateMaterial() forces Texture?
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
CreateMaterial() forces Texture?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: CreateMaterial() forces Texture?
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.
Then just use this texture on your material.
give this a try.
Code: Select all
CreateTexture(0,32,32)
StartDrawing(TextureOutput(0))
Box(0, 0, 32, 32 ,RGB(150,0,0))
StopDrawing()
Re: CreateMaterial() forces Texture?
OGRE3D doesn't needs a texture, it can have vertice-colors
So this is a good feature request (thread should be moved)
MFG PMV
So this is a good feature request (thread should be moved)
MFG PMV
