# Displacement and multiple UV Sets - URGENT

**URL:** <https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537>\
**Category:** Issues\
**Created:** [June 30, 2010, 3:28pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537 "2010-06-30T15:28:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultrasonic](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ultrasonic/32/40605_2.png) [@ultrasonic](https://forums.chaos.com/u/ultrasonic)\
**Post date:** [June 30, 2010, 3:28pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/1 "2010-06-30T15:28:42Z")

</div>

Hey Guys,

i have a really urgent problem over here which is kind of a showstopper at the moment. I have 2 different displacement maps where each of them needs a separate uv set and i need to multiply these two maps.

When using the result of the multiply as a color texture everything works fine, but as soon as i plug it into a displacement node it stops working,and both of the maps get the same uv-set information.

Is there a quick way for fixing that?

cheers  
Oliver

---

<div class="post-metadata">

**Author:** ![aweidenhammer](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@aweidenhammer](https://forums.chaos.com/u/aweidenhammer)\
**Post date:** [June 30, 2010, 3:44pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/2 "2010-06-30T15:44:34Z")

</div>

This won’t answer your question entirely, but some info:

Mental Ray integration has this same problem. We could never use anything but the main UV set for displacement. The obvious workaround is to find a way to bake the image from UVset2, into the main uv set. I’ve used zbrush for this myself, since we have it, and it works, but you can probably do it in Maya via baking textures.

---

<div class="post-metadata">

**Author:** ![ultrasonic](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ultrasonic/32/40605_2.png) [@ultrasonic](https://forums.chaos.com/u/ultrasonic)\
**Post date:** [June 30, 2010, 4:51pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/3 "2010-06-30T16:51:25Z")

</div>

In this case the workaround does not work, cause there are too many objects and i need INTUITIVE control, which is not given when i always need to bake before i testrender…

vladimir? any ideas?

cheerio  
Oli

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 30, 2010, 11:54pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/4 "2010-06-30T23:54:28Z")

</div>

This should work straight away - there is no problem in the rendering code itself, since this renders fine in 3ds Max for example. Can you get me an example of this to [vlado@chaosgroup.com](mailto:vlado@chaosgroup.com)?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![vladimir.nedev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/vladimir.nedev/32/59224_2.png) [@vladimir.nedev](https://forums.chaos.com/u/vladimir.nedev)\
**Post date:** [July 1, 2010, 8:23am UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/5 "2010-07-01T08:23:35Z")

</div>

May be the code that samples the texture for displacement doesn’t use a ray context with the correct render id, and the uv switch depends on that. That would explain why the uv linking works when the texture is used for color, and not for displacement. The export code is the same in both cases.

Greetings,  
Vladimir Nedev

---

<div class="post-metadata">

**Author:** ![ultrasonic](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ultrasonic/32/40605_2.png) [@ultrasonic](https://forums.chaos.com/u/ultrasonic)\
**Post date:** [July 1, 2010, 8:39am UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/6 "2010-07-01T08:39:05Z")

</div>

@vlado: i have sent u an email

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [July 1, 2010, 9:03am UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/7 "2010-07-01T09:03:17Z")

</div>

Thanks, we are looking at it now.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![aweidenhammer](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@aweidenhammer](https://forums.chaos.com/u/aweidenhammer)\
**Post date:** [July 1, 2010, 1:45pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/8 "2010-07-01T13:45:01Z")

</div>

swap uv sets? We’ve done this once before I think. Color in uvset2, displacements in uvset1. I can’t help you with the code, but I can mess with maya;)

---

<div class="post-metadata">

**Author:** ![aweidenhammer](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@aweidenhammer](https://forums.chaos.com/u/aweidenhammer)\
**Post date:** [July 1, 2010, 1:56pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/9 "2010-07-01T13:56:47Z")

</div>

Sorry, nevermind. Forgot you had 2 displacements. must think…

---

<div class="post-metadata">

**Author:** ![aweidenhammer](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@aweidenhammer](https://forums.chaos.com/u/aweidenhammer)\
**Post date:** [July 1, 2010, 3:02pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/10 "2010-07-01T15:02:54Z")

</div>

We ran a test here, and the UVchooser works fine. 2 different UV’s, with 2 displacement maps, multiply together fine.

example file is here:

[http://www.motr.net/vray/](http://www.motr.net/vray/)  
displacementUvChooser.mb

---

<div class="post-metadata">

**Author:** ![ultrasonic](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ultrasonic/32/40605_2.png) [@ultrasonic](https://forums.chaos.com/u/ultrasonic)\
**Post date:** [July 1, 2010, 9:46pm UTC](https://forums.chaos.com/t/displacement-and-multiple-uv-sets-urgent/24537/11 "2010-07-01T21:46:37Z")

</div>

i ran a test here, and it did not work…i sent a testfile to vlado that confirmed the problem…did it vlado?
