Quantcast
Channel: Questions in topic: "tree"
Viewing all articles
Browse latest Browse all 513

Problems with stencil / spawn objects @ stencil position

$
0
0
So the goal here is to modify the tree mesh when it's hit with an axe (VR game)

I tried the mesh-manipulation route, which kinda worked, but for a VR game, I suppose using depth-masks is better. So I tried it, the result can be seen here:

https://imgur.com/a/jwIlv0g

It is just a basic stencil shader. Problems here are:

- The stencil is a sphere with a texture, it protrudes. Wouldn't it be better to use something else? Like, project a texture with a stencil shader onto the tree? - The stencil creates a hole visible from behind the tree, how do I fix that? - And the most important one: How would I go about filling the hole so it looks believable? Spawn a mesh at the position? How to get it to fit right?

Help is, as always, greatly appreciated! <3

Viewing all articles
Browse latest Browse all 513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>