poppy Posted September 14, 2011 Share Posted September 14, 2011 Hi, another question for lovely community Say, I have a gun firing at a textured grid. Then I created a small circular texture of bullet hole. How can I stamp the bullet hole texture onto the surface when the particle hit, then write the generated texture into a file for later use? thanks! Quote Link to comment Share on other sites More sharing options...
mdunkley Posted September 14, 2011 Share Posted September 14, 2011 Hey, just saw this vid from Peter Bowmar - the capture cuts out a bit but its probably still a good way to go: Also worth taking a look at Peter Quint's videos on point clouds: http://vimeo.com/9109254 I'm guessing that first vid is gonna be your easiest bet overall, but the second will probably be better for writing to a file. The basic mantra node has an option to render a specific object in UV space (properties->render->uv render object). So you would probably set up a constant shader with point clouds (i say constant so you're not also baking the lighting), then render that object with the shader on it in uv space to create your texture. Hope that helps! Quote Link to comment Share on other sites More sharing options...
smaugthewyrm Posted September 14, 2011 Share Posted September 14, 2011 that exact effect is detailed in the cg-masters lesson "Intro to Visual Effects". peter bowmar does the lesson and it is excellent. Quote Link to comment Share on other sites More sharing options...
poppy Posted September 15, 2011 Author Share Posted September 15, 2011 Thanks! I'll have a look. Quote Link to comment Share on other sites More sharing options...
chaindriver Posted September 19, 2011 Share Posted September 19, 2011 I have a similar problem too, but I need to stamp textures, like what Poppy was asking. From the "trailer" video of Peter Bowmar's lesson, it seems like he is using geometry to achieve the effect instead? I'm thinking of doing something like: 1) Use Ray SOP to project point onto surface 2) Find out UV of the projected point of the surface 3) Layer a predefined texture onto the surface, centered at that UV coordinates I'm not sure how to do (2) and (3). Does anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
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.