Jump to content

How To Change Uv's Of Instanced Objects


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...