Textures

Forum Archive - from http://theuniversal.net
Locked
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Textures

Post by Mishka »

I have downloaded a model which has come with textures, but they are seperated in independant images.

Using the UVMapper I suppose, how do I round them up together to make the single texture?
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

unless you could figure out exactly what faces went with what texture, you would have to remap the model to use a single file.

load the model, click New Map in the menu, select Box. start selecting and dragging the shapes around until nothing overlaps. to select, just click and drag a box around at least 1 corner of the shape. then click on it to drag it where you want it. not everything has to be separated though, some stuff can stay together. for example, the side of a tire would be a circle and can be more then a dozen polys. since they make up one piece of the car, they wouldn't have to be separated.




if you can figure out what faces goto what file, you could combine the files side by side into one large file, then load it as a template in uvmapper and drag the faces to the proper area.
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

Ok I clicked on create new map--->box.


Now how do I actually get the texture on it?


EDIT: Nvm.....I think...
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

I load the texture but it appears all over the map. What am I supposed to do here?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

You need to do this in a 3d modelling application, and it's going to need a bit of know-how - both in how to edit UVW (texture) coordinates and how to combine the textures in a paint program. It's quite a lot of work.

f
User avatar
fhko
VIP
VIP
Posts: 930
Joined: Sun Mar 27, 2005 10:38 pm
Location: As I awake I find myself in a strange new place.

Post by fhko »

Semi-related question: is the W in UVW used to indicate the particular texture number? As in a point at (2,5,3) would be located somewhere on the third texture assigned to the model?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

No. UVW is the same as XYZ, except it deals with texture space.

U and V are the important coordinates we worry about when we're mapping (X and Y on your 2d texture) but W is also used to store "depth" - ie, where on a model the texture appears. It's a bit weird to explain (indeed, to understand) but that's sort of the way it works.

What you describe fhko - showing which texture is being used for which part of the model - is usually done with materials.

f
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

On my 3D modeling program it already appears textured. Is there anything I can do with this then?



Image
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

Doesn't look textured to me, just coloured :]

Right: let's say you have three textures for the ship: the sails, the deck and the hull. The first thing you need to do, is work out how that three texture setup has been achieved.

Is it one coherent mesh with three different materials?
  • if so, you need to change the material setup so the whole model uses one material
  • next, you need to combine the separate texture files into a single texture file, in an intelligent way: "intelligent" meaning, so the single texture file isn't stupidly large or a non-standard size. It might mean resizing some of the existing textures
  • then you'll need to apply the new texture to the model and edit the existing uvws so they fit on the newly created single texture. If you didn't have to resize any of the existing textures, this should be fairly simple: just grab the existing uvws and move them. If you resized any textures the UVWs will need scaling to fit also

Or is it actually three coherent meshes, each with its own texture?
  • if so, you'll need to merge the separate meshes into one
  • and then combine the separate texture files, as above
  • and then apply the single texture, as above
But mostly I think it doesn't look textured. Are you sure it's mapped properly?
f
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

But mostly I think it doesn't look textured. Are you sure it's mapped properly?
UVMapper says no. It came with 5 different texture images. I need them setted to the single texture map, that's what I'm trying to archive.


if so, you need to change the material setup so the whole model uses one material
How is this acomplished and where? yes the materials are different.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

mishka wrote:UVMapper says no. It came with 5 different texture images.
If it came with 5 textures I'd guess it has been mapped... if UVMapper says different, either it's wrong or the mapping has been broken somewhere along the way.
mishka wrote:How is this acomplished and where? yes the materials are different.
No idea - I don't use any of these applications you're working with. According to a quick Google search, Wings 3d will let you assign materials to faces on your model. So you should be able to make all the faces share the same material, then export it; combine the textures into a single texture file; and in UVMapper edit the UVWs to fit the new texture file. In theory.

It'd be a lot easier if you were using a modelling prog that handled mapping properly (Wings doesn't :] )

f
User avatar
fhko
VIP
VIP
Posts: 930
Joined: Sun Mar 27, 2005 10:38 pm
Location: As I awake I find myself in a strange new place.

Post by fhko »

Before you get too into the process of the UVmapping, may I ask what the poly count on model is? It looks a little high. Especially the decorative bits on the bow and stern.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

its not that the model is broken. the issue is the fact it was set up for multiple texture files.

using multiple texture files, the faces using each file will fill up the whole file. since UVMapper is designed for making files using 1 texture, it will take all the texture coordinates and overlap them into one file. so they will need to be resorted. basically its as if you took a tic tac toe board, put a different shape in each square, then combined all the squares so the shapes overlapped each other, then you tried to shrink and rearrange the shapes in that one square so none overlapped.
User avatar
Mishka
Posts: 1894
Joined: Fri Dec 29, 2006 6:19 pm
Location: Treasure Planet. Pirate Headquarters.

Post by Mishka »

ship has been textured successfully.


Image
Locked