I’ve spent a decent amount of time today trying to figure out how to get those neat effects out of the force field material, and its starting to drive me mad how there are no tutorials or documentation about how to do this.
It’d be nice to get some documentation about this new material with ALL of its functionality.
in the meantime, could someone explain to me how to use it? I heard it has something to do with textures and the R-value of the color in the texture?
The first known effects I could think of was using the RGB, fading between red and green on textures. However, I do not understand what effects blue actually do if applied on the texture.
The most I was able to get out of the forcefield material was a cool glowy effect if you put it between a set of bricks. You also get some colour revealing depending on how you face your camera. Other than that, I have no idea how to work it either.
The twitter threads were right - the key is the R channel of the texture. I did some experimentation of my own after seeing CloneTrooper’s tweet and texture, and ended up with the following results.
I guess I’ll start at the beginning. Adding a specialmesh to a basepart, setting it’s material to forcefield and it’s texture to a valid id, creates a shimmering effect, based on the textures red channel. It does work on any texture, you just need to use a specialmesh with any meshid for the effect to work. That does include transferring the meshid from meshparts - you won’t get good collisions but it will look cool.
A color wheel is a handy visualization tool for the effect:
So a gradient from cyan to red gives you a linear motion from one to the other:
Throw the gradient behind some shapes, and you get patterns like the shimmer or hexagons:
Now that this has been released, I think that some additional documentation should be added for this on the DevHub. I remember spending some time working with it when it originally came out and wasn’t able to figure it out 100%.
The brief description in the announcement post a while back wasn’t enough for me to grasp the full concept of how it works. For developers like myself that aren’t as experienced in this field, some examples and guides for achieving interesting effects would help tremendously.
I’m bumping up this thread instead of creating a new one. The documentation is still missing, and we shouldn’t have to dredge through three year old tweets (and who knows how much longer they’ll live on twitter for ) to learn how best to use a common material to its full potential.