UVEditor

UVEditor is simplify the steps of create uv tile or udim setup in nuke, provide the visual of uv tile in uv space of the geo, export udim texture, extract mattepainting projection in udim, paint fix the texture and map it back to the geo.

Updated: 29 April 2020

Author: xmjtx

Compatible Nuke versions: 10.0 or later

Compatibility: Linux, Mac, Windows

UVEditor is simplify the steps of create uv tile or udim setup in nuke, provide the visual of uv tile in uv space of the geo, export udim texture, extract mattepainting projection in udim, paint fix the texture and map it back to the geo.

For what is uv tile / udim and how to get it works in nuke. Please check here :
https://www.facebook.com/pg/MJTlab/photos/?tab=album&album_id=348648709050290

Download zip included this tool in gizmo and group format, UVEditor_demo.nk, demo geo (please re-link the geo file).


Changelog

1.4
- fix misspelling of knob's label
- fix not working disable text knob

1.3
- fix font issue
  works on linux, mac & windows

1.2
- preview in uv space set limited in 1024 resolution for not drag down speed purpose. 
- added show tile number
- changed uv combine to uv stitch in export group
- code update
- scan size reduce, speed up process


Panel description:

01

texture size
- Define the texture resolution in here.

filter
- uv output has to go through scanlineRender, this filter is same as all the transformation pixel filter

antialiasing
- uv output has to go through scanlineRender, this antialiasing is same as antialiasing setting as scanlineRender

show tile number
- show the number of tile, helps for indicate udim frame.

view wireframe
- Enable this wireframe option will preview uv in wireframe instead of texture. Give user an idea of how the look of geo in uv space.

wireframe size
- The thickness of wireframe to show. Only enable when view wireframe is checked.

output
- preview in uv space

  • This will displace uv tile in uv space. For preview purpose.

    a02

-udim

  • This will separate uv tile in udim format (base on frame number start from 1001). When selected udim as output, ‘export’ button will able. That will scan through all available udim and return the frame range of the udim. It will generate a group with all udim combined for nuke to work with, and also a write node to show where should render if udim need to be export as texture sequence.

    a03

- uvtile

  • Output the uv in tile format, can map to the geo directly without any process. If user work with uvtile for texture modification, user need to work with overscan size manually.

    a04

- uv pass

  • Output uv data as texture, same as 3D software will provide in render. Since the tool is working n 10x10 uv tile, so the uv pass will also support 10.0x10.0 uv data. Then user can use this to work with stmap for texture mapping.

    a05

 


 

Demo Script :

Screen Shot 2019-03-12 at 11.29.36 PM 

 

You might work with matte painting as texture or fix the texture from current render. You can do you projection setup and connect to ‘tex’ input. The process is just connect the tex to geo through apply geo inside the tool.

a06

 

If you check the texture under preview in uv space output, you will find that the modification already baked in uv space.

a07

 

You can map the geo directly through uv tile output.

a08

 

Upper view is the final render output. Lower view is the paint I projected on single frame, same as work with matte painting.

a09

 

Upper view, another camera angle of the result.

a10

 

If you want to modify any texture, you can find the texture in udim before the udim combine group, swap your modification on that udim. Then udim combine group will replace your fix in uv tile and map it back to the geo.

a11

 

Result

a12

 

Remarks:

3D view in nuke, can only able preview a single tile uv (as the picture shown as below). So when you work with uv tile, don’t trust the 3d viewer. Better check that after scanlineRender.

a13

 

Sign in or register to download or rate.