ygalula Posted March 24, 2006 Share Posted March 24, 2006 Hello, I"m trying to point instance some boxes and I want to project (orthographically) a texture over the boxes so that the texture will cover all of the boxes (as oppposed to projecting it on one box and duplicating this box). I"m trying to build a VEX shader for it, but the problem is I can't find out the location of my instanced box. I only know P in world (screen) space or in texture / object space which is per box and not relative to the whole bunch of them. Must I use a procedural instance script? Thanks Quote Link to comment Share on other sites More sharing options...
AdamJ Posted March 24, 2006 Share Posted March 24, 2006 You could convert instance positions into NDC space and use that to look up a texture. Here's a quick example.. ndcInstances.hip.gz Quote Link to comment Share on other sites More sharing options...
ygalula Posted March 25, 2006 Author Share Posted March 25, 2006 You could convert instance positions into NDC space and use that to look up a texture. Here's a quick example.. 25942[/snapback] Thanks, but I ment for something a bit different. I want the projection to be orthographic and not 'camera projection'. So, knowing the position in screen space is not enough... Here is an example of what I want to do( using 'copy' instend of instancing). Thanks. example.zip Quote Link to comment Share on other sites More sharing options...
AdamJ Posted March 26, 2006 Share Posted March 26, 2006 oh ok.. then converting to world space for the instances should do it.. orthoInstances.zip Quote Link to comment Share on other sites More sharing options...
ygalula Posted March 30, 2006 Author Share Posted March 30, 2006 Thanks ! 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.