#Rainbow Animated Wireframe Texture

1 messages · Page 1 of 1 (latest)

tidal sail
#

Hi I was searching a lot on google since 2 days ago and I didn't find anything on colors changing after an amount of time..
I'm trying to make a script / texture that will make a wire frame that change colors like a rainbow. I'm kinda new to VMT scripting.
Pls help :D

tidal sail
#

I already have this script for the Wireframe :

#

"Wireframe"
{
"$basetexture" "v_models/m249"
"$model" 1
"$translucent" 1
"$alpha" 1
"$nocull" 1
}

#

I want the animation to be like that

surreal plinth
#

not sure if it's helpful but you could try creating a transparent texture instead with the model's uv's on it and animate that(copy paste layer and overlay the colors you want), otherwise if it has to be a vmt only then gl messing with material proxies

tidal sail
#

wait can't I just create variables that goes from 0 to for every color variables?

dark owl
#

Easier would be texture scroll with rainbow gradient, but it's not quite what you're looking for I know

tidal sail
#

I think it is what I'm looking for

#

just remember that I need a script for it, not a animated vtf texture

#

wait no

#

I need the wire frame color to be like that :

#

don't mind the picture

#

Rainbow Animated Wireframe Texture

calm dirge
#

there is an example on the vdc that does just that

dusk pecan
#

Oh dawg, lol

#

I did a whole-ass writeup on explaining the concept and how to set up phase-offset clamped-sinewaves to reproduce the individual R, G, and B modulation for recreating a crude hue rotation but it's so much easier if the VDC already has an example

tidal sail
#

waiy

#

Can you send it to me? @dusk pecan

dusk pecan
#

huh

#

Just go to the VDC link that Judas shared

#

It's right there

tidal sail
#

I'm not finding that

#

I mean

#

I didn't find it

#

Is it that?

#

$color "[0 0 0]"

proxies
{
    sine
    {
        sineperiod    1.3
        sinemin        0
        sinemax        1
        timeoffset    0
        resultvar    "$color[0]"
    }
    sine
    {
        sineperiod    1.7
        sinemin        0
        sinemax        1
        timeoffset    0
        resultvar    "$color[1]"
    }
    sine
    {
        sineperiod    2.3
        sinemin        0
        sinemax        1
        timeoffset    0
        resultvar    "$color[2]"
    }
}
#

@dusk pecan

calm dirge
#

yes

dusk pecan
#

That's the one

#

if you want it to do an HSV scroll though, rather than random, you'll have to change them to have the same period but offset their phases spaced equally apart by about 1/3 of the period each

#

that should more or less give a very crude hue rotation

tidal sail
#

change what

#

Can you do it pls 😅

dusk pecan
#

What do they say about giving a moose a muffin

tidal sail
#

wat

#

idk ?

dusk pecan
#

soon he'll want another babyyyy

tidal sail
#

i'm not understanding

#

xD

dusk pecan
#

anyway long story short you teach moose to make muffins and find out he wasn't really your friend he just wanted your muffins and you go back to your moose fur covered bedsheets and wonder how it all came to this after everything you'd both been through together wondering if it ever meant anything to him at all and if he ever thinks about you while he's in his subarctic moose cave making muffins to his heart's content but deep down you learn to accept he's moved on because it was never about us it was just about the muffins

#

I think that's how the story goes

#

so learn to make your own muffins

#

you moose !!!

tidal sail
#

ah

#

damn.

tidal sail
#

it's not that i'm lazy i'm just not understanding

dusk pecan
#

Here's a hint

tidal sail
#

watafak

#

:(

#

wait it's not working

#

"Wireframe"
{
"$basetexture" "models/weapons/v_models/schmungs_m249/bullet"
"$model" 1
"$translucent" 1
"$alpha" 1
"$nocull" 1
"$glowcolor" "1"

$color "[0 0 0]"

proxies
{
sine
{
sineperiod 1.3
sinemin 0
sinemax 1
timeoffset 0
resultvar "$color[0]"
}
sine
{
sineperiod 1.7
sinemin 0
sinemax 1
timeoffset 0
resultvar "$color[1]"
}
sine
{
sineperiod 2.3
sinemin 0
sinemax 1
timeoffset 0
resultvar "$color[2]"
}
}
}

dusk pecan
#

this worked for me in gmoduser

#
"Wireframe"
{
$nocull 1
$color2 "[0 0 0]"

    proxies
    {
        sine
        {
            sineperiod    1
            sinemin        0
            sinemax        1
            timeoffset    0
            resultvar    "$color2[0]"
        }
        sine
        {
            sineperiod    1
            sinemin        0
            sinemax        1
            timeoffset    0.333333
            resultvar    "$color2[1]"
        }
        sine
        {
            sineperiod    1
            sinemin        0
            sinemax        1
            timeoffset    0.666666
            resultvar    "$color2[2]"
        }
    }
}
#

now go on you moosey moose

tidal sail
#

thx !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

yeah it worked thx so much

dusk pecan
#

my goodness that gif did not survive

tidal sail
#

xDD

dusk pecan