Jump to content

Baking projected textures on ANOTHER UV Map


Netvudu

Recommended Posts

hi there.

I´m doing some camera projection. I already did my camera matching, and now I want to project some parts of the image over the UVs of the object, so I add a UV Texture SOP, with the option "Perspective from camera".

Now, as I want to retouch and fix some of those projected textures, I would need to bake those projections over ANOTHER UV.

So, how do I do this?

Do I use the "UV Render Object" on a Mantra node? How do I tell it to use another UV Mapping to bake the camera-projected UVs on?

 

I´m sure many people has solved this before...

Edited by Netvudu
Link to comment
Share on other sites

if your projected UV attribute is called uv

and your other UV you want to unwrap to is called uv2

then just make sure your material is sampling texture using uv

and below UV Render Object on Mantra you can see UV attribute parameter, put uv2 there so that the unwrapped render is done in uv2 space

Link to comment
Share on other sites

EDIT: Nevermind! I solved it. Check below in case anybody else has the same problem.

 

Hey Tomas, I tried using the UV render object and "uv2" attribute  and Mantra wasn´t rendering anything.

First I got a Raytracing "UV rendering unsupported with raytracing", so I changed from PBR to Micropoly, and then it rendered a black frame and nothing else.

 

Just in case I also tried the command mantra -u /obj/tower1:uv2 with the same result.

 

Then I tried the uv attribute instead of uv2 and didnt get anything either...do you have the simplest scene ever (just a box will do) so I can check if I´m doing anything wrong or I hit a bug?

 

EDIT: In order for all this to work you need to have your "uv" or "uv2" or whatever parameter you use as a vertex attribute, not a point attribute...which is misleading, because some tools such as UV Unwrap, do create it as a vertex attribute, but most others don´t. In that case your regular Attribute Promote will do the converting-point-to-vertex-attribute job just fine.

Edited by Netvudu
  • Like 1
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...