Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by TommyB · Apr 05, 2016 at 04:41 PM · texture3d models

Texturing Unity primitives for a noob

Hi all,

Now this will seem really basic but please bear with me. Currently all the work I've done in Unity has involved 2D work and sprites. But now I have need for some 3D objects, only the primitives for now, but I'm stuck on how I should create my textures. I'm familiar with photoshop etc. and coding, but what's confusing me is how to actually create my textures in a way that folds over an object e.g a cuboid. Say I had a cuboid that was 100px x 200px x 50px would I in essence create an image like the following?

alt text

I'm guessing it's actually not as simple as that, as how would you determine where the texture should 'fold' over the 3d model? I just can't find out how you should initially create a texture in a graphics program for a 3d model. I think it's probably because I've not quite got the terms right and maybe I should be looking for info on meshes?

unboxed.jpg (7.7 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Graphics_Dev · Apr 07, 2016 at 07:42 PM 1
Share

You don't really want to try to texture a Unity primitive (just make your own cube model in Blender or other 3D modeling application), but if you do...the texture will be mapped onto each face wholly (ie. if the primitive is a cube then all 6 faces will show the entire texture).

avatar image TommyB Graphics_Dev · Apr 10, 2016 at 08:45 AM 0
Share

Thanks, again as per my comment below, sorry for the late reply, notifications were going to my spam so wasn't aware any one had answered!

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Cepheid · Apr 05, 2016 at 11:47 PM

Hi there @TommyB

To texture a 3D mesh you have to go through of process know as UVW Unwrapping. This is a process in which you take all of the faces, edges and vertices of a 3D mesh and align them onto a planar 2D grid known as a UVW sheet.

Using this UVW sheet, you can then export it out to a Power Of Two texture size e.g: 512x512, 2048x2048 etc. You then take this exported sheet, import it into Photoshop and paint over the now arranged UVW's. You would then re-import this texture back into a 3D modelling program and assign it to a material and then assign the material to the object.

Now that the object's UVW's have been properly arranged, it will fit each piece of the texture to the appropriate face, edge and vertex as defined by the UVW sheet. This is a process which must be performed within a 3D modelling program and you cannot simply create a texture and hope that it fit's around a cuboid object as there is no way to tell how the object has been unwrapped as 3D software generally tends to guess the placement of UVW's.

However, you can place a seamless texture over a cuboid or sphere in Unity and it will seamlessly wrap around, but this will be a repeated pattern across the whole object. For more intricate detail over each face, you will have to unwrap it.

Some hastily found tutorials for unwrapping:

UVW Unwrapping 3DS Max Blender Basic Unwrapping WhatIs Definition of Unwrapping

I hope this helped! :) If it didn't tell me what else you need to know/need explained better.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TommyB · Apr 10, 2016 at 08:44 AM 0
Share

Hey sorry for the late reply, the notifications were going to my spam folder. Thanks for the answer. So there's not really anything to allow unwrapping for Unity objects. That's a shame, but I guess though don't really want to be in the business of also building a fully fledged 3d editor on top of a game engine!

So I see that the textures will stretch etc. is there any easy way to only stretch say the middle of a texture? i.e for a plane if I had 2 ends could I just tile the middle section? Or in this case is it easier to fake it by having a plane with a tiled texture and then 2 planes tacked on at the ends with a single 'end' texture?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

63 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can i disable/fix this "effect"/bug? 1 Answer

Considerations for 3D Modeling - DEM files and Compatability 0 Answers

Textures all white after 5.6 migration 1 Answer

Map video texture to a half sphere in Unity 1 Answer

How do I import objects from 3d modeling programs? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges