Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Import cubemap

Discussion in 'General Graphics' started by kanga, Jul 5, 2015.

  1. kanga

    kanga

    Joined:
    Mar 22, 2010
    Posts:
    225
    Unity5

    Trying to import a skybox as a cubemap for testing. Manual says specify cubemap in the import inspector If I do that I can only import one image and unity sees that as a cube map, but it is not a cubemap it is one image made spherical. Cant import the material as a cubemap because it turns into a skybox. Cant turn the skybox into a cubemap because I get a box with select and hitting select only gives me an old skybox which I am already using.

    Trying to use different reflections than the skybox for testing like I said. Anyhow I should be able to get a cubemap to work in unity. Any help appreciated.
     
  2. OllyNicholson

    OllyNicholson

    Unity Technologies

    Joined:
    Jun 17, 2011
    Posts:
    142
    Unity supports importing many different texture formats including skyboxes. Simply select advanced in the texture importer and select the type

    FYI:The traditional 'skybox' asset e.g. a game object made up of 6 imported textures is technically deprecated from 4.x if you need to import a 'skybox' it needs to be in a single texture format as shown:

    http://docs.unity3d.com/Manual/class-Cubemap.html

    If you need to create one from 6 different images you can try a number of free tools like HDR shop
     
  3. kanga

    kanga

    Joined:
    Mar 22, 2010
    Posts:
    225
    Thanks for your reply. I have no trouble importing and using a skybox. I just cant see how to import a cubemap. Since I cant find any cubemaps I am trying to use a skybox as one and convert it to a cubemap which is what the manual says you can do. One skybox has been converted but I have no idea how it happened and it isnt the one I want to convert. Following the manual in the link you gave me (which was the first place I looked) doesnt help.

    Thanks again though.
     
  4. OllyNicholson

    OllyNicholson

    Unity Technologies

    Joined:
    Jun 17, 2011
    Posts:
    142
    I'm afraid that doesn't make much sense to me - what do you mean importing a texture in cubemap configuration? a prefab? a game object? or an asset store package? if you can let me know what format the cubemap is in that you want to import and what you are hoping to do with it, I should be able to help...
     
    Last edited: Jul 6, 2015
  5. kanga

    kanga

    Joined:
    Mar 22, 2010
    Posts:
    225
    I just want to import a cubemap to use as a reflective environment for my scene and am not having any success.

    Thanks for your reply Olly
     
  6. kanga

    kanga

    Joined:
    Mar 22, 2010
    Posts:
    225
    Ok I finally got it for anyone else in the same position. You have to go to create/ legacy/ cubemap and enter the skybox textures one by one.

    Cheers
     
    OllyNicholson likes this.