ITdreamer Posted October 23, 2008 Share Posted October 23, 2008 Hello I have points which where animated in the SOP Level, I need to render them as sprites. How can I do this? Thanks Quote Link to comment Share on other sites More sharing options...
rdg Posted October 23, 2008 Share Posted October 23, 2008 HelloI have points which where animated in the SOP Level, I need to render them as sprites. How can I do this? Thanks Just assign a Mantra Sprite Procedural to the geometry and the points will render as sprites. Adding Attributes for spritescale (float3) and spriterot (float1) and you can controll their size and rotation. Funny: I actually just build me an otl for this today ... But I still don't know how to utilize spriteuv, which seems to be a float4. Hope this helps, Georg Quote Link to comment Share on other sites More sharing options...
ITdreamer Posted October 24, 2008 Author Share Posted October 24, 2008 Looks like it doesn't work . I did what you said, but I got only spheres with a texture for my sprites assigned to it. Maybe you can make a simple scene for reference? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
rdg Posted October 24, 2008 Share Posted October 24, 2008 Maybe someone can add the spriteuv attribute, too? rdg_sample_SOPsprites.hip Quote Link to comment Share on other sites More sharing options...
ITdreamer Posted October 24, 2008 Author Share Posted October 24, 2008 Thanks a lot. The problem was in attribute SOP, I made spritescale as vector type (so solution was to make it float type with size 3). Thanks for help. Quote Link to comment Share on other sites More sharing options...
ITdreamer Posted October 24, 2008 Author Share Posted October 24, 2008 I tried to create realistic smoke. First I used particles with sprites on them, but it was hard to get a smoke-like simulation using particles. Second I tried fluids, but in high resolutions when you want to get details it is very slow. So the solution was to use fluids simulation on low resolutions to drive particles. Here is the first result of my experience. I used Miguel's smoke shader for sprites. Comments are welcome Smoke_Test.mov Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted October 24, 2008 Share Posted October 24, 2008 Maybe someone can add the spriteuv attribute, too?rdg_sample_SOPsprites.hip spriteuv -> class: point, type: float, size: 4. spriteuv[0] = U-offset spriteuv[1] = V-offset spriteuv[2] = U-scale spriteuv[3] = V-scale But for this attribute to work you also need to "resolve the shop path", by adding a "spriteshop" attribute (type: string, class: point). The weird thing is that, even though spriteuv won't have any effect unless the "spriteshop" exists, a "spriteshop" attribute (if present) with an empty string will work just as well as one with the correct shop path -- at least in the case where the object itself already has a material assigned... possibly a bug, though I'd have to investigate more. rdg_sample_SOPsprites2.hip 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.