• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Active Member
    Posts: 8
    Registered: ‎09-19-2012
    Accepted Solution

    Wrapping an Appearance to a Sphere

    609 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?

    Please use plain text.
    *Expert Elite*
    Posts: 21,908
    Registered: ‎04-20-2006

    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 2013 Certified Professional
    Autodesk AutoCAD 2013 Certified Professional
    Certified SolidWorks Professional
    Inventor Professional 2014 Edu 64-bit
    GeForce GTX 560M i7-2670QM @ 2.2GHz 8GB RAM
    http://home.pct.edu/~jmather/content/DSG322/inventor_surface_tutorials.htm
    http://www.autodesk.com/edcommunity
    Still waiting for -Draft option on any Rib feature.
    Please use plain text.
    *Expert Elite*
    Posts: 771
    Registered: ‎09-03-2008

    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.

    Please use plain text.
    Active Contributor
    Posts: 45
    Registered: ‎04-13-2005

    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...
    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎09-19-2012

    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?

    Please use plain text.
    Valued Mentor
    Posts: 2,175
    Registered: ‎12-12-2006

    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.

    Please use plain text.
    *Expert Elite*
    Posts: 771
    Registered: ‎09-03-2008

    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.

    Please use plain text.
    Active Contributor
    Posts: 45
    Registered: ‎04-13-2005

    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...
    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎09-19-2012

    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.

    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎09-19-2012

    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.

    Please use plain text.