• News
    • Funny
    • Weird
    • Global
  • Entertainment
  • Sins
  • Interesting As Fuck
  • WTF

Sphere Mask - Creating A Belching Chimney

3.6KShares
109.3KViews

A mask value is produced by the sphere mask expression, and it is determined by a calculation of distance.

The mask value is 0 outside and 1 inside with some transition area in between if one of the inputs is the position of a point and the other input is the center of a sphere with some radius.

This is valid for component vectors with one, two, three, and four elements.

Belching Chimney

According to jesshiderue4, he was seeking a way to make a chimney that 'belched' out puffs of smoke, and dragging a sphere mask up the model seemed like one approach to accomplish this goal.

COPYRIGHT_HOOK: Published on https://thehooksite.com/sphere-mask/ by Kane Perkins on 2022-06-14T03:04:46.426Z

Black and grey belching chimney material diagram
Black and grey belching chimney material diagram

The Material is composed of two primary components:

  • The first causes the chimney to grow along the X and Y axes
  • While the second of which brings this motion upward along the Z-axis.
Black and grey background sphere mask in out pulse diagram
Black and grey background sphere mask in out pulse diagram

Utilizing a sine wave allows him to control how far in and out the Chimney moves.

After multiplying Time by 0.2, which slowed down the movement, he then multiplied the sine wave by 20, which made the expansion far larger. He gets rid of any negative values by taking this thing's absolute value (Abs) (which will stop my mesh from shrinking to smaller than its original size).

Red and blue waves in white background sphere mask graph
Red and blue waves in white background sphere mask graph

After that, he multiplies the VertexNormalWS by the modified Sine wave, and then he masks out the B channel, which corresponds to the Z-direction so that the chimney only expands in the horizontal direction.

After that, he appends the vector, setting the Z direction to zero, so that he ends up with a three-dimensional vector.

Note - As stated in the Material, do not remove the Z-movement until after the Sine wave and Vertex Normals have been multiplied together.

This is the only time that this may be done. If it is done before, the material will twist into an egg form rather than grow horizontally in an even manner.

Black and grey background move sphere mask up in z-axis diagram
Black and grey background move sphere mask up in z-axis diagram

In the second phase, he masked out the horizontal growth by using a sphere mask that he moved about.

He found Eric's explanation of a sphere mask to be quite helpful in comprehending how a sphere mask functions, and consequently how one may operate one.

The sphere mask creates a sphere that is centered on the actor's position by basically taking into account both the position of the Absolute World Position and the actor's position.

In order to raise the level of the sphere, then he first adjusts the Actor Position along the Z-axis by one.

He divides Time by 0.8 to have it move at a more leisurely pace, and then he takes the Frac.

The way that Frac works is by deleting the integer component of the number, leaving me with a value that loops and increments between 0.01 and 0.99 (with two decimal places).

After performing this operation (which makes the value visible in my world space), he appends it to the Z-part of a vector and then multiplies it by 400.

After making this adjustment to the Actor Position, he feeds the new value into the SphereMask.

Black and grey background sphere mask Z-axis diagram.
Black and grey background sphere mask Z-axis diagram.

The result of the SphereMask is plugged into Lerp's Alpha input, while the VertexNormalWS input is used for Lerp's A input, and the Appended vector input is used for Lerp's B input.

The final step involves connecting the output of the Lerp to the World Position Offset.

Unity Shader Graph Mask

How Do I Change The Color Of My Shader Graph In Unity?

  • Right-click on your project and select Create > Shader > PBR Graph.
  • Name the new Shader β€œSampleGraph.”
  • Double-click the Shader you created to open it.
  • In the new window that opens, right-click and select Create Node.
  • Type in β€œColor” and click the result that matches.

Mask Textures Blender

How Do I Add A Layer Mask To A Layer?

Choose the two pictures you want to mask, and then organize them into two distinct layers. Click the "Add layer mask" button at the bottom of the Layers panel once you have chosen a layer to mask in the Layers panel. On the layer that was selected, a white layer mask thumbnail will emerge, displaying everything that was on the layer that was selected.

People Also Ask

What Are The Properties Of Sphere Mask?

  • Provides the radius that will be utilized for calculating the distance.
  • Identifies the dimensions of the transition area. This operates similarly to the brush hardness value in Photoshop. 0 indicates that the transition is challenging, while 100 indicates that the transition area is at its greatest (soft).

What Are The Inputs Of A Sphere Mask?

  • A - The value that represents the position of the point to check is taken as an input here.
  • B - This function takes the value that represents the center of the sphere as its input.

What Are The Applications Of A Sphere Mask?

Sphere mask has a wide variety of applications. For example, in this scenario, it is used to scale a mesh along the Z-axis, to scale the mesh along all axes, and as an opacity mask.

Conclusion

Have you ever used a sphere mask? Do let us know in the comment section below.

Have you heard about real life Shrek?

Share: Twitter | Facebook | Linkedin

About The Authors

Kane Perkins

Kane Perkins - βœ… Memes, βœ… Crazy Stories, βœ… WTF??? πŸŽƒπŸŽƒπŸŽƒ Yeah - That's me, Kane! πŸ‘€ The source of all unusual and WTF news. πŸ€ͺπŸ€ͺπŸ€ͺ Bookmark The HOOK now and you won't "ragret" it. πŸ”₯πŸ’€πŸ‘€

Recent Articles

  • What US Capital Is Closest To The Equator?

    Interesting As Fuck

    What US Capital Is Closest To The Equator?

    What US capital is closest to the equator? Hawaii's capital, Honolulu, is situated on the island of Oahu. The nearest U.S. state capital to the equator is Honolulu, which is situated 1474 miles north of the equator.

  • What Flavor Is Red Velvet? Interesting Facts About The Famous Cake

    Interesting As Fuck

    What Flavor Is Red Velvet? Interesting Facts About The Famous Cake

    What flavor is red velvet? The flavor of red velvet cake is similar to a very mild chocolate with a hint of tartness. The flavor that stands out the most is the cream cheese icing. The texture, smooth, soft, sensitive, and light with creamy icing, maybe even more significant than the flavor.

  • Noah Beck Nudes - The Most Famous And Sexiest Tiktoker

    Sex Stories

    Noah Beck Nudes - The Most Famous And Sexiest Tiktoker

    He is one of the nation's youngest social media influencers and amassed a sizable fan base at a very early age. In his online job, Noah Beck nudes has a promising future ahead of him.

  • Which Flavor Are Newborn Babies Unable To Taste?

    Interesting As Fuck

    Which Flavor Are Newborn Babies Unable To Taste?

    Which flavor are newborn babies unable to taste? Your baby's newborn taste receptors are incredibly sensitive and capable of tasting bitter, sour, and sweet flavors but not salty.

  • The "Air" That Puffs Up A Potato Chip Bag Is Actually What Element?

    Interesting As Fuck

    The "Air" That Puffs Up A Potato Chip Bag Is Actually What Element?

    You've probably experienced this scenario: You open a bag of potato chips only to hear a loud pop and air release. When you glance down, you discover that the chips only occupy a small portion of the bag. You undoubtedly have a ton of questions now, like, "The "air" that puffs up a potato chip bag is actually what element?"

  • Which Arcade Game Was Co-created By Steve Jobs And Steve Wozniak?

    Discover

    Which Arcade Game Was Co-created By Steve Jobs And Steve Wozniak?

    Which arcade game was co-created by Steve Jobs and Steve Wozniak? It was the "Breakout" game. You might be shocked to learn that while Steve Jobs and Steve Wozniak are most known for co-founding Apple Computers, their invention history actually dates back to another storied computer business, Atari.

  • What Classic Song Features The Distinctive Chant, β€œA-Wimoweh, A-Wimoweh, A-Wimoweh?”

    Music

    What Classic Song Features The Distinctive Chant, β€œA-Wimoweh, A-Wimoweh, A-Wimoweh?”

    What classic song features the distinctive chant, β€œa-wimoweh, a-wimoweh, a-wimoweh?” That classic song is "The Lion Sleeps Tonight". It was sung by Soloman Linda.

  • Which Supermodel Was Valedictorian?

    Discover

    Which Supermodel Was Valedictorian?

    Which supermodel was valedictorian? She was Cindy Crawford. Cindy Crawford, whose full name is Cynthia Ann Crawford, was one of the first "supermodels" and was born on February 20, 1966, in DeKalb, Illinois, in the United States. She is an American fashion model and television personality.

  • Which Movie Legend Donated The Profit From The Sale Of His Salad Dressings To Charity?

    Interesting As Fuck

    Which Movie Legend Donated The Profit From The Sale Of His Salad Dressings To Charity?

    Which movie legend donated the profit from the sale of his salad dressings to charity? A. E. Hotchner and the late legendary actor Paul Newman developed the food firm Newman's Own. With a homemade salad dressing that the two produced themselves and gifted to friends in 1982, the company got its start.

  • Which Body Of Water Is The Nile River’s Primary Reservoir?

  • What Spice Comes From Orchids?

  • Germany Is The Size Of What US State?

  • In The Original Version Of Trivial Pursuit, Which Category Is Represented By The Color Yellow?

  • Do Ducks Bite In Dream - A Hint For Joy