simonfarussell Posted March 7, 2023 Share Posted March 7, 2023 Hi, Seems like a bit of a retro subject, but can anyone give me some pointers as how to render sprites in Mantra? The documentation isn't great and I'm not really sure of the basic process. Any guidance appreciated! Thanks Quote Link to comment Share on other sites More sharing options...
Librarian Posted March 7, 2023 Share Posted March 7, 2023 SpriteTest.hiplc Quote Link to comment Share on other sites More sharing options...
simonfarussell Posted March 8, 2023 Author Share Posted March 8, 2023 Thank you! Much appreciated Quote Link to comment Share on other sites More sharing options...
Librarian Posted March 8, 2023 Share Posted March 8, 2023 You are Welcome @simonfarussell.. Now You can Start Some New Topic with Name lets See..." Tricks with Chops" and share some knowledge when you have Time. ...Here you have some codes from Asia . that i use more in combination with Chops and Points.. int idx = floor(7*rand(@ptnum)+1); // diff_colorTextureとopacity_colorTexture // @material_override s@material_override = "{'diff_colorTexture':\"$HFS/houdini/pic/butterfly"+ itoa(idx)+".pic\",'opacity_colorTexture': \"$HFS/houdini/pic/butterfly"+ itoa(idx)+".pic\",}"; //classicshader s@shop_materialpath = "/mat/classicshader1"; i@butterfly = @ptnum; 4@mat = maketransform(@N,@up,@P); and rotation v@P -= v@cen; int id = @ptnum % 6; float off = 2*PI*rand(i@butterfly); float freq = 10+5*rand(i@butterfly); if(id == 0 || id == 3){ float ang = 30*sin(freq*@Time+off); vector4 quat = quaternion(radians(ang),@N); @P = qrotate(quat,@P); }else if(id == 2 || id == 5){ float ang = -60*sin(freq*@Time+off); vector4 quat = quaternion(radians(ang),@N); @P = qrotate(quat,@P); } @P += v@cen; Quote Link to comment Share on other sites More sharing options...
simonfarussell Posted March 22, 2023 Author Share Posted March 22, 2023 Ah sorry for the delay! Yes I've been thinking about sharing chop stuff. It's just finding the time. Soooo, what does this code do, how do I use? 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.