Jump to content

[SOLVED] stepped uv transform with time var and random function


photo

Recommended Posts

Posted

Hi, what is the best way to animates UVs in a stepped way (ie: not scroll each frame) ? Is it possible directly in the Uv transform field expression ?

Looking for a generic mechanism where I could offset UVs on various part of some maps randomly across engine.game.time.

Thx

R

Posted

Hi Romain,

The main idea is to transform float values to int and then back to float with rounding. You can experiment with the following UV animation equation:

vec4(1,1,round(time*10.0)/10,round(time*10)/10)

It would change UV position 10 times per second:

output.gif

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

hi Silent, OK thanks, so more generally are all Math Common functions available in the expression field for UV transform, it's not really clear in the documentation?

Thx a lot

 

  • silent changed the title to [SOLVED] stepped uv transform with time var and random function
×
×
  • Create New...