# ShrinkWrap and effect on texture mapping a jpg from an obj export

**URL:** <https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514>\
**Category:** Rhino for Windows\
**Tags:** windows\
**Created:** [April 20, 2024, 8:20pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514 "2024-04-20T20:20:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/steve1/32/487081_2.png) [@Steve1](https://discourse.mcneel.com/u/Steve1)\
**Post date:** [April 20, 2024, 8:20pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/1 "2024-04-20T20:20:02Z")

</div>

Hi,  
V5 and 8  
When I get V8 setup (and I hope I can get started with it, see other post) to open V5 files. I am keen to try out ShrinkWrap.

My existing workflow is:-  
export obj from Photogrammetry (Agisoft Standard), one gets a .obj, .jpg and .mtl  
file import the obj into Rhino, then when still selected go properties \> oil paint tube icon, allocate texture, alter by layer to by object.  
in shaded view, setObjectDisplayMode and choose rendered  
get a very realistic looking model.  
repeat that last command for all viewports.

Now if I were to ShrinkWrap my mesh, should I do so before or after doing the texture application ?

How does Rhino know where to map the texture to, is it in the .mtl file all the secret ingredients on what pixel goes where ?  
If its then presented with a shrinkwrap, will it still manage that ?

To be able to work with a smooth item with a quality image and get nice sections and non jaggy form to work with is eagerly awaited, but if no image gets mapped, then I cant start to even use it, as I have to go by visual features on the existing photogrammetry object.

Cheers

Steve

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [April 21, 2024, 3:34am UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/2 "2024-04-21T03:34:11Z")

</div>

> [@Steve1](#):
>
> Now if I were to ShrinkWrap my mesh, should I do so before or after doing the texture application ?

Before. Shrinkwrap is a disruptive operation. Texture mapping won’t survive it.

— Dale

---

<div class="post-metadata">

**Author:** ![Steve1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/steve1/32/487081_2.png) [@Steve1](https://discourse.mcneel.com/u/Steve1)\
**Post date:** [April 22, 2024, 8:21pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/3 "2024-04-22T20:21:23Z")

</div>

Hi Dale, Thanks.  
Just how does Rhino know where to place a texture jpg generated during export as .obj from a photogrammjetry object ?

A vase is one thing, a complex brake assembly area on a WW2 bomb trolley is something else !

It manages it normally, is there some kind of mapping file it refers to ?

I am intrigued and also worried how a shrinkwrap would be seen in this process.

Cheers

Steve

---

<div class="post-metadata">

**Author:** ![BrianJ](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brianj/32/751593_2.png) [@BrianJ](https://discourse.mcneel.com/u/BrianJ)\
**Post date:** [April 23, 2024, 2:01pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/4 "2024-04-23T14:01:26Z")

</div>

> [@Steve1](#):
>
> how does Rhino know where to place a texture jpg generated during export as .obj from a photogrammjetry object ?

The scan mesh will have a UV layout that generally looks like a ton of separate scattered islands in the UV editor. This mapping info is how any texture in an assigned material will get applied to the scan mesh. When you export that same mesh object as OBJ format, the UVs will go along for the ride.

When you Shrinkwrap the scan mesh you are making a new mesh object that will need it’s own UVs. If the scan mesh had one material applied, you can use it as the custom mapping object for the shrinkwrap mesh and apply the same material.

---

<div class="post-metadata">

**Author:** ![Steve1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/steve1/32/487081_2.png) [@Steve1](https://discourse.mcneel.com/u/Steve1)\
**Post date:** [April 23, 2024, 7:57pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/5 "2024-04-23T19:57:37Z")

</div>

Hi,  
Not sure I understood some of that.  
I guess I will find out when I open a file from V5 with its mapped texture into V8, and shrinkwrap it then do as before, apply texture by object and browse to the texture again, see what happens.  
New to meshes, and as long as the texture appeared was not in needing to look under the bonnet.

any videos on photogrammetry texture mapping welcome. and on real world use of Shrinkmap.

Steve

---

<div class="post-metadata">

**Author:** ![BrianJ](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brianj/32/751593_2.png) [@BrianJ](https://discourse.mcneel.com/u/BrianJ)\
**Post date:** [April 24, 2024, 1:09pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/6 "2024-04-24T13:09:37Z")

</div>

Upload a simple sample file of a scan that shows color data in a texture map and I can take a look.

---

<div class="post-metadata">

**Author:** ![Steve1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/steve1/32/487081_2.png) [@Steve1](https://discourse.mcneel.com/u/Steve1)\
**Post date:** [April 25, 2024, 8:49pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/7 "2024-04-25T20:49:40Z")

</div>

Hi,  
Will do,  
what is the method for upload, just the usual image or file upload tool 7th tool from left ?  
It might be too big for that.  
What are the rules and options on file size etc ?

Steve

---

<div class="post-metadata">

**Author:** ![Gijs](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gijs/32/481553_2.png) [@Gijs](https://discourse.mcneel.com/u/Gijs)\
**Post date:** [April 25, 2024, 8:53pm UTC](https://discourse.mcneel.com/t/shrinkwrap-and-effect-on-texture-mapping-a-jpg-from-an-obj-export/180514/8 "2024-04-25T20:53:40Z")

</div>

if it is too big to upload here, use [this link](https://www.rhino3d.com/upload) and post back here if you posted
