Skip to content

Pack Making Models Online Textures

DrprofLuigi edited this page Dec 14, 2021 · 4 revisions

Using online textures is fairly simple. To start, you'll need to make an object in your model that will render the online texture. Normally this object will be invisible unless a valid texture is found, so you'll probably want something behind it. This object MUST either start or end with the word url in the name, as it tells MTS this object should use the online texture rendering rather than the normal model rendering. This is case-insensitive.

When the online texture is bound to this object, it will apply however you have your UV-mapping set. As such, you will likely need to adjust your mapping for two textures. The main model will map to the main model's texture, and the online portion will be mapped to handle a different texture.

After creating the model, you will need to add a textObject to the main JSON of the content. This is because users need a way to enter a URL. In that case, the only requirement is that the fieldName is contained in the name of the object in the model (for example, a text field of Logo_URL and an object name of Door_Logo_URL). This means that you may have multiple online texture slots on the same model, provided they don't share the same name.

Clone this wiki locally