Product : Engine, Version : 4.0.1.1019, ArticleID : 41019103

Wish : Is it possible to attach a Material different than the entity color?

Article41019103
TypeWish
ProductEngine
Version4.0.1.1019
Date Added5/6/2003
FixedYes [5/6/2003]
Submitted by
Keywords

Subject

Is it possible to attach a Material different than the entity color?

Summary

Is it possible to Attach a Material deferent than the entity color?

Solution

In version 4.0.2.1020 a new future is added.

You can add the following XProperty : "VD_TEXTURE_COLORID" as XD_LONG to entity Xproperties collection and define the color_id different than the entity's color index which will be used for image texturing.

Example : AddXProperty("VD_TEXTURE_COLORID", XD_LONG, color_id)
Before this you have to attach a matterial to color_id