Jump to content

How do I bake a projection to a texture file?


Recommended Posts

Could anyone tell me how I can take a UV'd object that has a material applied with a camera projection and bake that to a 2d texture file using the UV space of the object?

(similar to Maya's "Lighting/Rendering->Batch Bake (mental ray)" menu option)

Many thanks!

Link to comment
Share on other sites

if you just want to bake out textures based on the UV then you can use Mantra -> Render -> UV Render Object.

UV Render object

The name of the object to be rendered in UV space. Mantra is able to render an object in UV space rather than 3D space. Only one object may be rendered in UV space.

Link to comment
Share on other sites

Still can't seem to quite get it to work how I want. Just to clarify I want to project a texture onto an object. Then give it some completely different uv's to the uvs that you get from camera projecting onto an object. Then bake out the texture as it was projected onto the object into the new UV layout.

I have attached a scene to try and illustrate what I mean.

Thanks,

Tom

bakeProjectionToNewUVs_v01.hip

Link to comment
Share on other sites

I think your workflow is the correct one. Note that you can use an uvlayer ("layer" sop, set layer to 2), after the material1, then just append an uvunwrap, easier and cleaner.

Edited by gui
Link to comment
Share on other sites

Alternatively you may project a texture from a light, possibly surface shader with an additional illuminance() loop is required.

More generally, you may project uv from a light during render time (if for any reason you don't want to touch geometry). Albeit more involving this method introduces new possibilities. Take also a look on LayerSOP as it simplifies work with uvs sets. The attached example contains second take, which overwrites an object material, and that's pretty much it.

hth,

skk.

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