Author Topic: UV Coordinate Mapped Textures Scale To Different Sizes  (Read 5073 times)

0 Members and 1 Guest are viewing this topic.

Offline monson67

  • Jr. Member
  • **
  • Posts: 90
UV Coordinate Mapped Textures Scale To Different Sizes
« on: September 19, 2016, 11:35:03 am »
I have some materials that I'm creating with images for diffuse textures. I know the exact resolution for each image, and I'm setting the texture DPI to match. When the texture image is applied using Box Mapping, the scale is perfect. When I switch to UV Coordinate mapping, I have to multiply the DPI by 200 to get it to appear correct (from 300 dpi to 60000 dpi). Can anyone explain to me why this happens?

A similar effect happens when I use non-image-based textures, though to a lesser extent. If I select an option from the Texture dropdown, such as Brushed, I have to scale it by 2 when switching from Box Map to UV Coordinate.

Any help would be appreciated.

guest84672

  • Guest
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #1 on: September 19, 2016, 02:41:02 pm »
UV mapping depends on the scene units you are using.

Offline Søren

  • Developer
  • Jr. Member
  • *****
  • Posts: 81
  • KeyShot Developer
    • KeyShot
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #2 on: September 20, 2016, 11:02:15 am »
To clarify: only when you check DPI for uv mapping, it is assumed you have laid out your UVs according to the same unit as in the scene.

Note: People rarely do this, but usually unwraps their mesh in the first unit tile in the UV plane (i.e. u,v coordinates between 0 and 1). If you do it like this, no DPI setting is needed (which relates texture pixel size to real world size).

Søren

Offline monson67

  • Jr. Member
  • **
  • Posts: 90
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #3 on: September 20, 2016, 01:43:10 pm »
thomas:
The unit I convert my scene to will change how my Texture Maps scale, correct? As I said before, when converting to UV Coordinate mapping, my Texture Maps immediately scale to 200x their original sizes. So I need to convert to a scene unit near that 200:1 ratio, right?

My scene is currently in Millimeter. If I convert to Centimeter, that's 10:1. Meter is 1000:1. Inch is 25.4:1. And Foot is 304.8:1. Of all of these, converting to feet is the closest I'm going to get, but it still isn't right. 200:304.8 isn't very close, and it's pretty clear, visually, that it's not right.

Søren:
I deselected the DPI option. It doesn't seem to display the Texture Map correctly. It looks like it scales the Texture Map image to fit, or be the same size as, the UV map. How do I know if my UV coordinates are between 0 and 1?

Offline monson67

  • Jr. Member
  • **
  • Posts: 90
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #4 on: September 20, 2016, 02:34:19 pm »
Maybe a better question is — How do I view or edit the UV Map?

I don't even know where to start. Are they only accessible through 3D modeling software?

Offline Chad Holton

  • Hero Member
  • *****
  • Posts: 1370
    • Portfolio
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #5 on: September 21, 2016, 05:11:00 am »
Maybe a better question is — How do I view or edit the UV Map?

I don't even know where to start. Are they only accessible through 3D modeling software?

That's correct, the UV Map is created with the modeling software (or 3rd party software that specializes in this). If there isn't a UV Map setup for the scene, then you do not want to use this mapping option in KeyShot for most/all cases that I'm aware of.

Offline monson67

  • Jr. Member
  • **
  • Posts: 90
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #6 on: September 21, 2016, 06:03:25 am »
If there isn't a UV Map setup for the scene, then you do not want to use this mapping option in KeyShot for most/all cases that I'm aware of.
But the only situation in which the material wraps around the model correctly is when UV Coordinate mapping is used. So I would assume that there is a UV Map set up. The problem is that Texture Maps are not to the correct scale.
« Last Edit: September 21, 2016, 06:05:11 am by monson67 »

Offline Chad Holton

  • Hero Member
  • *****
  • Posts: 1370
    • Portfolio
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #7 on: September 21, 2016, 06:06:23 am »
If there isn't a UV Map setup for the scene, then you do not want to use this mapping option in KeyShot for most/all cases that I'm aware of.
But the only situation in which the material wraps around the model correctly is when UV Coordinate mapping is used. So I would assume that there is a UV Map set up. The problem is that Texture Maps are not to the correct scale.

What modeling software are you using?

Offline monson67

  • Jr. Member
  • **
  • Posts: 90
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #8 on: September 21, 2016, 06:12:37 am »
What modeling software are you using?

I don't do 3D modeling - just rendering. A coworker uses SolidWorks, though, and I could work with him on this.

Offline Chad Holton

  • Hero Member
  • *****
  • Posts: 1370
    • Portfolio
Re: UV Coordinate Mapped Textures Scale To Different Sizes
« Reply #9 on: September 21, 2016, 08:16:53 am »
I'm not real familiar with SW, so not sure how the mapping is brought over. The way you want to use the UV mapping option though is to actually UV map it in the modeling software first. This way KeyShot knows how to map it when brought in, otherwise it's just guessing.  :D
« Last Edit: September 21, 2016, 08:49:23 am by Chad Holton »