Jump to content

Bake texture ROP different resolution based on attribute


Recommended Posts

I have a a scene i want to bake lightmaps for, but for some assets i need the resolution of the bake to be higher or lower based on a primitive attribute. Also i need the name primitive attribute to appear on the final jpg file.

i have already put together a small test scene using tops but its too slow and a bit of a hacky setup. i am sure there must be a better way.

I also made a simple bake setup without PDG to compare the render time and even if i have only one wedge, setting the resolution to 256 for all UDIMS, so only one final workitem that gets sent to the bake texture rop, the cook time is 3 times slower than if i just did a simple bake texture without using PDG and just setting the bake texture resolution to 256. Which i find weird

Any ideas?

 

baketextures.hip

Link to comment
Share on other sites

Here is an updated version. I think the way i iterate through the different resolutions is ok as a workflow, if anyone knows a better way i would be very interested.

But i still haven't found a way to use the primitive name attribute for the bake texture filenames. How would i do that?

 

baketextures.hip

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...