DonPepe: Sketch #33

First time taking part in this, so be kind :grimacing:

Want to do some kind of laser beam with optional shield on the receiving ball. Was first strolling around the flat to find interesting patterns I could use.

Current state:

First steps:
Found some potential Textures
Scene setups

4 Likes

Spent some time on this. I was wondering, if we’re not allowed to scroll the UVs in the material, why not modify the mesh and scroll the UVs there directly :thinking:
Threw it together pretty quickly. Not ideal for memory reasons, but who cares :joy:

Code
// Update is called once per frame
void Update()
{
    if (_autoScroll)
    {
        for (int i = 0; i < _uvs.Length; i++)
        {
            _uvs[i] += _scrollSpeed * Time.deltaTime;
        }
    }
    else if (_lastOffset != _uvOffset)
    {
        for (int i = 0; i < _uvs.Length; i++)
        {
            _uvs[i] += _lastOffset - _uvOffset;
        }

        _lastOffset = _uvOffset;
    }

    _meshFilter.sharedMesh.SetUVs(0, _uvs);
}

Texture here is the wood from the first image.

Slowly this is starting to look like something. Right now it’s only scaled and moving meshes with my UV-Scrolling script. Next step will be some particles

1 Like

Starting with particles and searched for a texture in my flat. Ikea light looks promising. Don’t even have to add an alpha channel, just shoot with high aperture and shutter speed for a black mask.

2 Likes

Added some of those particles and a build up on the attackers side. Not quite happy with it yet :thinking:

Improved the build up of the laser and polished the particles on the defenders side

2 Likes

great effect:grinning:

1 Like