Game Development Community

Material definition in txscene files

by Christian Rousselle · in Torque X 2D · 10/30/2008 (6:48 am) · 0 replies

Hi,

it seems that TXB adds all materials to every level (.txscene) file that is used in the project - not only in the current level. It also seems that TX searches for all files (or even loads every material) that are in the level file even if they are not used.

This introduces problems, e.g.:

- It is not possible to just bundle a few levels and the associated materials (for a demo) but all materials are needed.

- .txscene files get unnessesary large when the project gets big.

- I think that all materials in a .txscene file are loaded - which basically means every material used in the game is in memory all the time.

Is there a way to change that behaviour?

Thanks.