A simple idea: Instead of using the normal wireframe building graphic, let modders choose to have it use alphatest instead. That'd work as follows:
During construction, the model is drawn normally instead of wireframed or anything like that, however it is done while setting glAlphaFunc to GL_GEQUAL and the completion percentage of the build job. The source alpha channel could be one channel from the second texture assigned to s3os.
Purpose: This would allow a modder to define exactly how a unit is built. A vertical gradient across the unit would mean a simple buildup as it's today, other variations would e.g. building the torso of a unit first and having the limbs grow from it, a building appearing bit by bit (by having each bit have a single alpha value) or an infection spreading across the land. This could also be applied to ground decals so they don't just pop into existence.
alphatest-based building
Moderator: Moderators
You could use the Create() function of the BOS for scripted building as long as the wireframes are disabled (which IIRC is a feature in the next version of Spring).
In combination with this you could have a construction scaffold build up before the actual building appears and have the scaffold disappear bit by bit when the building nears completion. Would probably work well for realism mods.
In combination with this you could have a construction scaffold build up before the actual building appears and have the scaffold disappear bit by bit when the building nears completion. Would probably work well for realism mods.
Time to unleash the rabbits of doom on that cabbage infestation.Cabbage wrote:I love it!an infection spreading across the land.
But nice idea, really. Would be cool if the build up could use a scripted animation too, like an animated crane which only appears during construction and then disappears back into the ground and hides.
They already can despite someone (is it you) continuosly sayign it's impossible.
The onyl reason building startups havent been scritped in any units yet is because the nanoframe makes it look stupid. However i myself added an fbi tag that turns off the nanoframe in the next version so it's once again feasable. Nanospray can be turned off now too.
The onyl reason building startups havent been scritped in any units yet is because the nanoframe makes it look stupid. However i myself added an fbi tag that turns off the nanoframe in the next version so it's once again feasable. Nanospray can be turned off now too.