Gandi Posted April 16, 2010 Posted April 16, 2010 Hi! I have a small mesh, which i scale/position in my shader.. works fine so far.. the problem is, that it doesnt get rendered if i dont look at the "original" position of the mesh (it doesnt take into account the position given in the shader). is there a way of turning of this disappearing-effect? Quote
Masterxilo Posted April 16, 2010 Posted April 16, 2010 You can add dummy vertices to the mesh to force it to have a bigger aabb. There should really be a less hacky way of doing this (also needed for e.g. ragdolls...). Quote Hurricane-Eye Entertainment - Site, blog.
Josh Posted April 16, 2010 Posted April 16, 2010 If you're changing the matrix around in the shader, this will cause problems because the data the GPU renders is not similar to what the CPU deals with. Add some vertices around the shape to encapsulate what you think the largest AABB will be. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Gandi Posted April 17, 2010 Author Posted April 17, 2010 so how are you doin it with the vegetation? there you also set the y-value in the shader? Quote
Gandi Posted April 21, 2010 Author Posted April 21, 2010 Sorry for double post, but i'm still interested in how you managed to disable the clipping for the grass-layer? Quote
Josh Posted April 21, 2010 Posted April 21, 2010 The grass mesh radius encompasses the whole volume of the grass, unless it is placed on a cliffside or something extreme like that. Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.