peliosis Posted June 26, 2006 Share Posted June 26, 2006 I browse "essential renderman fast" trying to recreate some shaders in vops. I'd like to create a line from point to point (surface context) but can't find ptlined() function. I know it is present in vex but what with vops? Is there any other function mimicing ptlined()?? Can i type it into inline vop? Not that i so desperatly need it but I'm curious. Quote Link to comment Share on other sites More sharing options...
peliosis Posted June 27, 2006 Author Share Posted June 27, 2006 Ok, it's "distance point to line vop". Don't know how to create predictable lines yet, but I'll check it out while at home. Vops are real fun! Quote Link to comment Share on other sites More sharing options...
peliosis Posted July 1, 2006 Author Share Posted July 1, 2006 Ok, it's "distance point to line vop". Don't know how to create predictable lines yet, but I'll check it out while at home.Vops are real fun! 28809[/snapback] It's easy but raised another problem. How to antialias it??? In RSL there is a smoothstep, what to do in vex? k_voplay_ptline.hipnc Quote Link to comment Share on other sites More sharing options...
SvenP Posted July 1, 2006 Share Posted July 1, 2006 Still far from being perfect but should be a step in the right direction . k_voplay_ptline2.hipnc Sven Quote Link to comment Share on other sites More sharing options...
SvenP Posted July 1, 2006 Share Posted July 1, 2006 Heres another version i like a bit more. but with all versions you have the problem that you have to set the shading quality way up to something like 4-6 to get rid of those breaks in the lines in mid distance. k_voplay_ptline3.hipnc Sven Quote Link to comment Share on other sites More sharing options...
SvenP Posted July 1, 2006 Share Posted July 1, 2006 ... and another reply ... if you turn of micropoly rendering everything looks fine(bad bad mantra ) micropolygon raytracing Sven Quote Link to comment Share on other sites More sharing options...
SvenP Posted July 2, 2006 Share Posted July 2, 2006 This version should be a bit faster Sven k_voplay_ptline3.hipnc Quote Link to comment Share on other sites More sharing options...
peliosis Posted July 3, 2006 Author Share Posted July 3, 2006 You know what I thought a while ago..."Huh, antialiasing yet and I'm home baby!" not any more I'm too weak yet to comment your help, but thanks for an indepth investigation , I'll have to take a closer look though. 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.