rwf Posted July 2, 2014 Share Posted July 2, 2014 Hi, Probably an obscure question... I am using the VEX Volume Procedural. It is working nicely but in the docs it states: The following inputs parameters are available in the CVEX context used by the VEX Volume Procedural: - P Position to evaluate, in object space. Now I would actually like to get the world space position. It seems not that important but in my case I would to instance several (procedural holders) pointing to the same geometry shader and cvex shader. Like I said, obscure question but it doesn't hurt to ask right? Cheers, Rog. Quote Link to comment Share on other sites More sharing options...
rwf Posted July 2, 2014 Author Share Posted July 2, 2014 As usual, posting a question in a forum leads to me finding the answer myself shortly after It turns out I can use the instancepoint() expression in a parameter on the cvex shader. That allows me query the world space transform of the instance currently being rendered and feed that into the cvex shader. Rog. Quote Link to comment Share on other sites More sharing options...
anim Posted July 2, 2014 Share Posted July 2, 2014 cant you just use Transform VOP to convert object space to world space P? Quote Link to comment Share on other sites More sharing options...
rwf Posted July 3, 2014 Author Share Posted July 3, 2014 That would make sense but I tried it and it doesn't seem to work. I guess a cvex geometry shader is a different context to a "real" shader. 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.