Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: headdie on May 10, 2011, 05:58:28 am

Title: Shimmering textures
Post by: headdie on May 10, 2011, 05:58:28 am
Yet another headdie brainwave so be warned.

I had an idea about how to incorporate animation into ship textures without having to load an ani or several texture files at once. I am thinking about a new texture type, say, -shimmer or something like that which is a normal single layer image file with an alpha channel.  The Texture artist would would create some sort of pattern on it which the game loads.  Then before/while rendering it in each frame the engine applies a distortion to the texture in a random fashion which would give a shifting pattern which is overlayed on the model.

The difficulties as I see them are
1: Does OGL support such a feature
2: Coding time/effort I imagine would be substantial
3: Load on the system/graphics card, would it be better than multiple static textures
4: How to apply the effect to a fully UV mapped model
5: How would it Effect mipmaps

Point 4 could be helped with a table or similar file that can be used to control some aspects of the distortion such as direction, number of distortion points and amount.  But I have no clue about the others.
Title: Re: Shimmering textures
Post by: The E on May 10, 2011, 06:00:05 am
Already covered by the material system I'm developing.
Title: Re: Shimmering textures
Post by: Shivan Hunter on May 10, 2011, 06:42:10 am
Already covered by the material system I'm developing.

the material system I'm developing

the material system I'm developing

the material system I'm developing

**** YES
Title: Re: Shimmering textures
Post by: Veers on May 10, 2011, 08:12:41 am
 :nervous:


 :yes: :yes: :yes:
Title: Re: Shimmering textures
Post by: JGZinv on May 10, 2011, 03:57:35 pm
Most appropriate and effective use of the quoting feature I've seen around here in years...
Title: Re: Shimmering textures
Post by: Dragon on May 10, 2011, 05:24:14 pm
Awesome news, can't wait for a first test build.  :)
Title: Re: Shimmering textures
Post by: headdie on May 10, 2011, 05:54:34 pm
Seriously happy to see that The_E, like dragon says cant wait to see it in action
Title: Re: Shimmering textures
Post by: Rodo on May 10, 2011, 08:14:05 pm
huhu! :yes: