Bake procedural texture Cd to uvs

   10247   8   3
User Avatar
Member
65 posts
Joined: Feb. 2013
Offline
Hey guys,

I'm creating a procedural texture over a grid (with vertex UVs) and I need to extract the Cd texture procedurally generated as a texture that I can read back as file.

Which is the correct way of doing this?

Thanks in advance!
Marco
User Avatar
Member
2529 posts
Joined: June 2008
Offline
The simple way is to just place a camera above the grid so it is framed exactly to the size of the grid and render out a single frame, or an image sequence if your procedural texture is animated.

But I would like to know if there is a better way then that?
Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
129 posts
Joined: June 2016
Online
Maybe the bake texture ROP is the way to go, but I never had luck with it
User Avatar
Member
65 posts
Joined: Feb. 2013
Offline
Hi guys! Thanks a lot!
I tried the bake texture ROP but I can't make it works as I would expect.
And the camera above the grid is the solution I'm using right now, orthogonal and cropped by the grid itself. But I think there should be a better workflow for a simple bake… at least I hope so

Thanks!
User Avatar
Member
670 posts
Joined: Sept. 2013
Online
If its just a regular grid, you wont need baking after all. There is an importpoint node in COPs that can read in attributes from geometry. Just make sure the grid resolution matches the image size. It also works for animation.

Attachments:
pointcolor_to_cop.hipnc (58.0 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
2529 posts
Joined: June 2008
Offline
Thanks for the example file, that is good to know.

I thought I would try an attribute from map and see it that could be “relayed” but it does not seem to work. I have assigned the map to Cd but COPs does not pick up on that. It seems like a refresh problem. Is there a way to make COPs refresh and pick up the new data?
Edited by Enivob - May 27, 2017 09:32:39

Attachments:
Untitled-1.jpg (237.3 KB)
ap_pointcolor_to_cop.hipnc (129.0 KB)

Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
670 posts
Joined: Sept. 2013
Online
Works on my side.

Attachments:
pointcolor_to_cop.hipnc (145.9 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
28 posts
Joined: Sept. 2008
Offline
With the Bake Texture ROP you have to ensure that your shader is outputting the vex variables that the Bake texture rop needs to read. For instance, if you wanted to output color, you could import your Cd to your material, and then use a Bind Export to set the vex variable Cd for export.
www.earthfixed.com
User Avatar
Member
2529 posts
Joined: June 2008
Offline
I am trying to use this technique to get my optical flow color vector to an image format. I can't seem to get the COP to generate any output.

Can someone look at my scene?

Attachments:
ap_optical_flow_footage_091020.hiplc (1.2 MB)

Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links