Texel Density Tool

5 votes
Version: 
1.0
Date Updated: 
06/01/2018

A small tool for working with your texel density and scaling your UV-shells.

Some features:
Has a minimalistic Interface (similar to Maya)
Can Get and Set texel density.
Saves all of your settings (including window position) every time you close it.
Shows the most understandable values (px/m).
Works with different system untis (including non-metric).
Can scale UV-Shells horizontally or/and verically using custom pivot.

Requires Unwrap UVW modifier applied and active.

Works bad when:
UV-Shell is not convex (has no seams).
When you try to work with multiple nodes (Objects).

This script is free.

Installation:

Drag/Drop it on 3ds max viewport or run it via 'Max Script-> Run Script...'.
Go to "Customize User Interface", in 'Category' select 'Custom', there will be 'Texel Density Tool' assing a hotkey for it or drop it on your custom toolbar.

A short video showing this process:
https://youtu.be/23mGM_u5Anw

Additional Info: 

Additional credits:
In the core of this script I've used "UV Normalizer" which was made by Manu Pratap ([email protected]).

Here is the link to it: http://www.scriptspot.com/3ds-max/scripts/uv-normalizer

AttachmentSize
texeldenstool.jpg76.71 KB
texeldensitytool.ms19.24 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mdenton512's picture

Not working Correctly

When I run the texel set function my UVs don't shrink cleanly. They all end up overlapped over each other. Is this a new bug? I'm using Max 2020.

I tried doing a Reset XForm and it didn't help. I hit it multiple times and it wasn't shrinking more so it's not that issue.

AttachmentSize
uvsbefore.png 61.16 KB
uvsafter.png 58.58 KB
FishMan's picture

Problem with monitor space.

Hey guys there can be a problem if you change your second or third monitor. The problem is - script remember the position of the window.

But it not takes in a consideration that this space can no longer exist, because it remember the coordinates.

And those coordinates can be too big for your current hardware setup (if you change it for example because of the Work from home thing).

Solution is simple. Every time script closing, it saying where it saving all the stuff in listener. Like this:

Open this directory. Close max. And delete ini file. Then start max again. 

AttachmentSize
shot_200421_211223.png 27.04 KB
sampei's picture

2020.3 here, works perfectly

2020.3 here, works perfectly thanks

FishMan's picture

RE(2):Doesn't work on 3ds max 2020.3

Checked on my side on 2020.3 everything works as it should do.

Could you please describe your problem?

AttachmentSize
shot_200205_143003.png 24.81 KB
FishMan's picture

RE: Doesn't work on 3ds max 2020.3

Thanks. I'll check it.

Also. Could you tell me what exactly happening when you trying to launch it?

CTLN7's picture

Doesn't work on 3ds max 2020.3

After i updated max to the 2020.3 update, it doesn't run the script anymore.

FishMan's picture

RE: Bug with splines converted to editable poly

Can you send me this?
Also which max u're using?

Here I did it on my side:
https://i.imgur.com/gH46eVe.png

Also sometimes there is a problem with UV's. It is some kind of 3ds max bug, when default UV's are bad for some reason (I think it can't figure area correctly for that shell and I don't know how to fix that yet. I might need to make my own algorithm to calculate area).

Here's how you can understand that UV's have some sort of a problem - If you select and press "set" button multiple times and every time you press the button your shell become smaller and smaller - that's mean that this shell is "broken". You need to redo it, for example apply "Flatten Mapping". After you do it - it should solve the problem.

LastRights's picture

Bug with splines converted to editable poly

I was working with a spline to create a piece for a trim texture. However when I converted the spline to an editable poly the get and set were not working properly. In example I used a 4 meter piece and it would continue scaling the piece down to an incorrect size. (See attached image for comparison to a 4x4 meter plane)

I was however able to find a work-around by converting the editable poly spline into a editable mesh and unwrapping that.

AttachmentSize
capture.jpg 102.93 KB
FishMan's picture

There are still some bugs.

Guys pay attention. There are still some bugs.
I know about at least 3 of them:

1) Script doesn't work properly with instanced Unwrap UVW modifier. Please combine objects before adding modifier;
2) Script can give you wrong results if you didn't killed object's scale transformation (you can apply 'Reset X-Form' before using it);
3) For some objects sometimes it can't figure Texel Density, this bug seems like related to 3ds max it self. Because other instruments like "Relax" for those objects doesn't work as well. And Im not sure what causing this problems, it seems like max can't figure square adequately for some objects.

Two of this bugs I will fix in some near future, can't say exactly when, but I remember about it. Im just too lazy for the moment to do it. If you don't want to wait, I deliberately left the script open and wrote comments to each line of code, so you could fix everything you don't like by your self. About third bug as I said I have no clue how to fix it. May be I will write my own algorithm for calculating square and see whether it help or not.

Also some people was asking me to add non-square texture support. So I will add this later as well with some other small improvements.

If you found any other bugs or something doesn't work as you expected for example - please don't shy and report it.

Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.