Inventor General Discussion

Reply
Active Member
acelove27
Posts: 8
Registered: ‎09-19-2012
Message 1 of 11 (1,282 Views)
Accepted Solution

Wrapping an Appearance to a Sphere

1282 Views, 10 Replies
10-06-2012 07:49 AM

I've been attempting to create a sphere with an Earth texture, for which I've made a custom appearance with a flattened picture of earth. Instead of wrapping to the sphere, however, the image is mirrored on both sides of the sphere and extremely distorted. I knew wrapping 2D geometry to a sphere was not strictly possible, but is there no way to pull it off with an image?

 

If not, would something like this be possible in 3DS max?

*Expert Elite*
JDMather
Posts: 26,276
Registered: ‎04-20-2006
Message 2 of 11 (1,273 Views)

Re: Wrapping an Appearance to a Sphere

10-06-2012 04:44 PM in reply to: acelove27

Attach your files here.

Please mark this response as "Accept as Solution" if it answers your question.
-----------------------------------------------------------------------------------------
Autodesk Inventor 2014 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional
Inventor Professional 2015 64-bit
http://www.autodesk.com/edcommunity
http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
*Expert Elite*
cwhetten
Posts: 1,051
Registered: ‎09-03-2008
Message 3 of 11 (1,227 Views)

Re: Wrapping an Appearance to a Sphere

10-08-2012 12:21 PM in reply to: acelove27

This is completely possible.  I've done it myself.  In fact, I've done a complete scale model of the solar system, each with surface textures from NASA maps/images (if they were available available).

 

What I did was get an image of the Earth's surface that was designed to be projected onto a sphere (there are tons available on the internet).  I saved this image into the Inventor textures folder and made an appearance style with it.  Then I applied that surface style to a sphere and, behold! Earth.

 

To get it to look right, I had to tweak the image scale and rotation (in Inventor's style editor).  I think I also had to modify the original image file so that the equator was at the top and bottom edges of the image.  This made it so that the image was located vertically with the poles in the right place.

 

I have attached the image file I used, and also the model of Earth.  In order for you to see the image when you open the part file, you will have to place the image file into your Inventor textures folder.  Mine is here (Windows 7):

 

C:\Users\Public\Documents\Autodesk\Inventor 2012\Textures\surfaces

 

Edit:  Here is a screenshot so you can see what I see when I open the part file:

 

Blue Marble.PNG

 

I think the texture is actually upside down (at least from a northerner's perspective, with Antarctica on the top), but this was easy enough to fix with constraints in the assembly that I didn't bother to fix the image.

Active Contributor
billyb
Posts: 53
Registered: ‎04-13-2005
Message 4 of 11 (1,210 Views)

Re: Wrapping an Appearance to a Sphere

10-09-2012 08:50 AM in reply to: acelove27

Here's a 7 minute max tutorial - sped up.

Earth Tutorial - 3ds max

 

Hope that helps.

Bill Bogan
- Providing freelance visualization
- Inventor: Expert
- Revit: Novice and growing...
Active Member
acelove27
Posts: 8
Registered: ‎09-19-2012
Message 5 of 11 (1,158 Views)

Re: Wrapping an Appearance to a Sphere

10-21-2012 08:23 AM in reply to: cwhetten

Thank you! Your example worked great, the only problem I'm having now is that I can't replicate it with my own designs. The biggest issue seems to be that all my spheres have their convergence points on the sides instead of the top and bottom.

 

ConvergencePoint.jpg

 

Is there a good way to either rotate the sphere or create it with the correct axis?

*Expert Elite*
dan_inv09
Posts: 2,299
Registered: ‎12-12-2006
Message 6 of 11 (1,106 Views)

Re: Wrapping an Appearance to a Sphere

10-22-2012 08:12 AM in reply to: acelove27

I believe it was mentioned that you would have to play with the scale and rotation of the texture.

*Expert Elite*
cwhetten
Posts: 1,051
Registered: ‎09-03-2008
Message 7 of 11 (1,101 Views)

Re: Wrapping an Appearance to a Sphere

10-22-2012 08:28 AM in reply to: acelove27

You can probably just edit the appearance style to rotate the image (and scale it).  Here are the exact settings I used to get what you seen in the image from my earlier post:

 

Earth Texture Settings.PNG

 

You may need to use a different scale, depending on the radius of your sphere.  For your reference, my sphere is 1" radius.  But setting the image rotation to 90 degrees (or maybe -90) should line it up properly.

Active Contributor
billyb
Posts: 53
Registered: ‎04-13-2005
Message 8 of 11 (1,095 Views)

Re: Wrapping an Appearance to a Sphere

10-22-2012 08:52 AM in reply to: cwhetten

So folks here will know...

 

I experimented with this last eve and found that in 2013, using the Materials/Appearances UI to rotate the texture map didn't resolve this issue, it just rotated the map around the axis/convergence point.

 

I decided to rotate the scene using the View Cube and that did work. However, that is not a very usable solution. It needs to be within the Matl/Appr UI for the texture and on a per component basis. It would be good if the map rotated interactively on the surface so you could see the change in real time. (IMHO)

 

Bill Bogan
- Providing freelance visualization
- Inventor: Expert
- Revit: Novice and growing...
Active Member
acelove27
Posts: 8
Registered: ‎09-19-2012
Message 9 of 11 (1,047 Views)

Re: Wrapping an Appearance to a Sphere

11-03-2012 12:07 PM in reply to: billyb

billyb is right. The only reason your example worked, cwhetten, was because it was an elongated sphere (slightly wider than tall, I believe). As soon as I set the vertical and horizontal dimension to equal, it snapped the convergence points back to the sides and rotated the texture 90 degrees. From there, playing with the appearance rotation causes it to exhibit that "watermelon" effect I showed earlier.

Active Member
acelove27
Posts: 8
Registered: ‎09-19-2012
Message 10 of 11 (963 Views)

Re: Wrapping an Appearance to a Sphere

11-18-2012 01:35 PM in reply to: acelove27

Here's some more information, if it helps. I've also uploaded example files.

 

I finally tried simply using the view cube to rotate the view and making the whole part sideways, but I've run into a new problem. As visible in the picture below, when I remove a piece of the sphere which passes through its convergence point, Inventor automatically moves that point and thereby rotates the whole image. This makes it impossible to align the globe correctly (with the edge of the sliced circle touching the pole). The files are attached.

 

BeforeAndAfter.jpg

 

In case it matters, I am in fact using Inventer 2013, which seems to have some differences in the rotation/alignment system.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube