- Home /
Hiding part of mesh or texture
What is the best way to make a mesh or texture partially invisible? I want to make a sprite seem to be able to move smoothly between planes which are at different angles, and I guess the best method is making the part of the quad that is not touching the plane invisible, and adding a copy of it to the other plane.
Try and use words, not symbols in the title. There's a reason you have 85 views and no answers.
This is an awful subject line. It gives readers no information on the content of the message contained within.
Answer by Wolfram · May 29, 2012 at 11:53 AM
You can use this: http://unifycommunity.com/wiki/index.php?title=DepthMask
Answer by whydoidoit · May 28, 2012 at 04:31 PM
Modify the alpha colour on the material associated with it - presuming you are using a shader (like a transparent diffuse) that allows this.
Example:
renderer.material.color = new Color(render.material.color.r,
renderer.material.color.g, renderer.material.color.b, alpha);
Where alpha is between 0 and 1
Answer by flamy · May 28, 2012 at 04:41 PM
Do what mike says or you can use transparent shaders if you want good looks like in maya.
Hard surface shader this is a really good free source to go with.
I actually mean how to make a section of the area of the mesh or the texture of a quad transparent, so that the vertices of the transparent section could be specified.
$$anonymous$$ake the texture transparent where you want the cut out and use a transparent shader.
But I want to do it dynamically, and I guess that textures can not be changed.
The best way get transparent.
I think can get only using shader.
shader alpha can get partially invisible
@$$anonymous$$iglu - good point. Deform the mesh, remove bits of it maybe? Perhaps if you describe the effect you are looking for, someone might be able to help you more.
Your answer
Follow this Question
Related Questions
Issue mapping texture to imported quad 1 Answer
Texture on plane not displaying properly 0 Answers
Change a cube face with another texture 3 Answers
Change Texture of Plane with script 0 Answers