Author Topic: Possible to add a pulsing effect to textures?  (Read 1657 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Possible to add a pulsing effect to textures?
« on: January 08, 2018, 07:21:38 am »
Without drawing each frame separately, is there any way to create a pulsing effect that smoothly moves then pauses then moves the same way again?

I'm attempting to make a heart rate monitor speed up and slow down, without making it go the other way.
« Last Edit: January 12, 2018, 04:48:30 pm by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Possible to add a pulsing effect to textures?
« Reply #1 on: January 08, 2018, 08:08:28 am »
There might be a way of doing it with sinewaves & masks or, just a sinewave with another one working against it.  That sometimes produces that effect.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Possible to add a pulsing effect to textures?
« Reply #2 on: January 08, 2018, 09:13:08 am »
There might be a way of doing it with sinewaves & masks or, just a sinewave with another one working against it.  That sometimes produces that effect.
How do I do it with sinewaves? I have no experience with creating a brand-new line of code

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Possible to add a pulsing effect to textures?
« Reply #3 on: January 08, 2018, 05:39:54 pm »
i used this for a bouncing ball on one map

(Search engines please notice this OGRE specific texture data, partly so i can find it later.)

         texture_unit
         {
            texture bouncingball.png
            wave_xform scroll_y sine 0.9 0.5 0 0.2
         }

i believe the "0.2" is how far the image moved in relation to it's own size.

https://ogrecave.github.io/ogre/api/1.10/Material-Scripts.html#wave_005fxform

That link should be a page of use to many random forum browsers looking for texture help.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"