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

Sphere Mask - Creating A Belching Chimney

6.1KShares
186KViews

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 To Know About Eurovision 2023

    Casino

    What To Know About Eurovision 2023

    The success of Eurovision is nothing short of staggering. Each year, more than 160 million people tune in to watch the worldโ€™s biggest singing competition. And if youโ€™ve ever watched the event yourself, then youโ€™ll know why.

  • LibraryEx - The Must-Have Library Mod For Minecraft Developers

    Discover

    LibraryEx - The Must-Have Library Mod For Minecraft Developers

    LibraryEx is a popular library mod for Minecraft that provides a range of utilities and helpers for other mods. Its purpose is to reduce code duplication and boilerplate code, allowing mod developers to focus on creating new and interesting features for their mods.

  • Flibusta - The Russian Site Providing Free Access To Thousands Of EBooks

    Discover

    Flibusta - The Russian Site Providing Free Access To Thousands Of EBooks

    Flibusta is a Russian-language website that provides access to a large collection of free electronic books, or eBooks. The website has been blocked in Russia since 2015 due to copyright infringement concerns, but it remains accessible through various means such as mirror sites, virtual private networks (VPNs), and proxy servers.

  • Gabby Epstein Nude - Behind The Scenes Of Her Picture-Perfect Life

    Entertainment

    Gabby Epstein Nude - Behind The Scenes Of Her Picture-Perfect Life

    Gabby Epstein nude is an Australian model and social media personality who has gained a significant following on platforms such as Instagram and TikTok.

  • FFXIV Universalis - The Ultimate Tool For Final Fantasy XIV Market Board Data

    Games

    FFXIV Universalis - The Ultimate Tool For Final Fantasy XIV Market Board Data

    FFXIV Universalis is a website that provides market board data and analytics for Final Fantasy XIV. It is an online tool designed to help players make informed decisions when buying and selling items on the market board.

  • Picoclick - The Low-Cost Solution For Wireless Connectivity

    Discover

    Picoclick - The Low-Cost Solution For Wireless Connectivity

    Picoclick is a tiny WiFi and BLE IoT button that has the potential to revolutionize the way we interact with the world around us. With its small size and wireless connectivity, Picoclick can be used in a wide range of applications, from home automation to industrial automation to smart city applications.

  • Uwu Bot - Bringing Fun And Cuteness To Your Discord Server

    Discover

    Uwu Bot - Bringing Fun And Cuteness To Your Discord Server

    The uwu bot is a popular chatbot that is widely used on messaging platforms such as Discord. It is designed to add a fun and playful twist to conversations by translating text into a cutesy and childish way of speaking known as "uwu language."

  • Scryfall Bot - Streamlining Your Magic The Gathering Gameplay With This

    Discover

    Scryfall Bot - Streamlining Your Magic The Gathering Gameplay With This

    Scryfall is a search engine and database for Magic: The Gathering cards. The Scryfall bot is a tool that allows users to search for Magic: The Gathering cards within Discord, a popular messaging platform.

  • Bojangles Corporate Officers - Key Players In The Chain's Success

    Interesting As Fuck

    Bojangles Corporate Officers - Key Players In The Chain's Success

    Bojangles' success can be attributed in part to the leadership of the Bojangles corporate officers, who have played a key role in shaping the company's strategy and guiding its growth. In this article, we will take a closer look at the corporate officers of Bojangles and their contributions to the company's success.

  • GatorsDockside - The Ultimate Sports Bar And Restaurant Experience In Florida

  • Best Casino Games For Players Looking For High Excitement And Adventure

  • Oscar Nominees Obligated To Pay $63K In Taxes For Lavish Gift Bags Labeled As Free

  • Dick Run Claire - The Female Artist Who Draws Dicks Using Running Applications

  • Devastating Ecuador Earthquake Claims Lives Of Minimum 15 Individuals