Difference between revisions of "HowTo:Texture in Wings3d"

From VsWiki
Jump to: navigation, search
(Tip 6)
m (sp)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{NAV_Manual |
 
{{NAV_Manual |
| previous=[[HowTo:Create Cockpit in Wings3dManual:Computer:Game menu|In Game Menu]]
+
| previous=[[HowTo:Texture|Creating your own textures]]
| up=[[HowTo]]
+
| up=[[HowTos]]
| next=[[HowTo:Add Engine Glow|Add Engine Glow]]
+
| next=[[HowTo:SuperrealisticTexturing|Tips for realistic-looking textures]]
 
}}
 
}}
 
----
 
----
= Texturing a Ship in Wings3D =
+
=Texturing a Ship in Wings3D=
  
== Links to other Texturing Howtos/Helps/FAQs ==
+
==Links to other Texturing Howtos/Helps/FAQs==
 
*[http://pub33.ezboard.com/fnendowingsmiraifrm12 Wings3D-Forum -> USER MANUAL PROJECT]
 
*[http://pub33.ezboard.com/fnendowingsmiraifrm12 Wings3D-Forum -> USER MANUAL PROJECT]
 
**[http://pub33.ezboard.com/fnendowingsmiraifrm12.showMessage?topicID=161.topic -> Body Menu / UV Mapping (experimental)]
 
**[http://pub33.ezboard.com/fnendowingsmiraifrm12.showMessage?topicID=161.topic -> Body Menu / UV Mapping (experimental)]
Line 19: Line 19:
 
[http://pub33.ezboard.com/fnendowingsmiraifrm24.showMessage?topicID=28.topic The future of the second UV-Plugin for Wings3D called ExtremeUV] and [http://pub33.ezboard.com/fnendowingsmiraifrm24.showMessage?topicID=6.topic where to find it]
 
[http://pub33.ezboard.com/fnendowingsmiraifrm24.showMessage?topicID=28.topic The future of the second UV-Plugin for Wings3D called ExtremeUV] and [http://pub33.ezboard.com/fnendowingsmiraifrm24.showMessage?topicID=6.topic where to find it]
  
= A step by step instruction: =
+
=A step by step instruction=
  
*Look for the newest version of [http://www.wings3d.com Wings3D] (AutoUV is in an early state of development right now, so newer version=better AutoUV; but remember: it may also crash more often than a '''stable''' release)
+
* Look for the newest version of [http://www.wings3d.com Wings3D] (AutoUV is in an early state of development right now, so newer version=better AutoUV; but remember: it may also crash more often than a '''stable''' release)
*Create a model [[HowTo:Create Models]];
+
* Create a model [[HowTo:Create Models]];
*Change to body selection;
+
* Change to body selection;
*Select one body, and click "{{RMB}} -> UV Mapping";
+
* Select one body, and click "{{RMB}} -> UV Mapping";
*Now there are several ways to continue (this is for Wings3D 0.98.26):
+
* Now there are several ways to continue (this is for Wings3D 0.98.26):
 
** '''The primitive way'''
 
** '''The primitive way'''
 
*** -> Assign an "even" texture with no image manipulation afterwards. This is to show how texturing works:
 
*** -> Assign an "even" texture with no image manipulation afterwards. This is to show how texturing works:
Line 50: Line 50:
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/mapping_uvmap.jpg Mapping-UVmap
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/mapping_uvmap.jpg Mapping-UVmap
 
* The green edges are the cutting edges.
 
* The green edges are the cutting edges.
*Optional: Per pixel lighting;
+
* Optional: Per pixel lighting;
*Optional: Set Reflect factor (if "1" is not needed) The specular map is the color of the light that the object actively reflects. See below: <code><Mesh texture="normaltexture.png" texture1="specular_map.png"></code>
+
* Optional: Set Reflect factor (if "1" is not needed) The specular map is the color of the light that the object actively reflects. See below: <code><Mesh texture="normaltexture.png" texture1="specular_map.png"></code>
**If it's black, the object is matte;
+
** If it's black, the object is matte;
**If it's white, then the object is totally shiny (window);
+
** If it's white, then the object is totally shiny (window);
**And if it's like orange, then the object is copperish cus it'll reflect only the orange light that hits it.
+
** And if it's like orange, then the object is copperish cus it'll reflect only the orange light that hits it.
  
 
Just take the texture you have and run it through like brightness/contrast/saturation
 
Just take the texture you have and run it through like brightness/contrast/saturation
  
== Editing the REFLECT factor of a xmesh ==
+
==Editing the REFLECT factor of a xmesh==
 
* Menu->Outliner;
 
* Menu->Outliner;
 
* Select '''whatever_auv''';
 
* Select '''whatever_auv''';
Line 65: Line 65:
 
* Select OK and save.
 
* Select OK and save.
  
= Tips =
+
=Tips=
=== Tip 1 ===
+
===Tip 1===
 
If you want to '''unwrap e.g a cylinder''', do this in the "UV Mapping" mode:
 
If you want to '''unwrap e.g a cylinder''', do this in the "UV Mapping" mode:
 
*select all faces of the cylinder;
 
*select all faces of the cylinder;
Line 72: Line 72:
 
*select a edge which goes from the bottom to the top of the cylinder;
 
*select a edge which goes from the bottom to the top of the cylinder;
 
*"{{RMB}} -> Mark Edges For Cut";
 
*"{{RMB}} -> Mark Edges For Cut";
*select all edges of the top and the bottom circel exept for one edge on the top and one on the bottom;
+
*select all edges of the top and the bottom circle except for one edge on the top and one on the bottom;
 
*"{{RMB}} -> Mark Edges For Cut";
 
*"{{RMB}} -> Mark Edges For Cut";
 
**"{{RMB}} -> Continue -> Unfolding".
 
**"{{RMB}} -> Continue -> Unfolding".
Line 82: Line 82:
  
 
Here is a workaround:
 
Here is a workaround:
*After UV Mapping save the UV data: "{{RMB}} in AutoUV -> Quit -> (*) Save UV Coordinates and Texture";
+
* After UV Mapping save the UV data: "{{RMB}} in AutoUV -> Quit -> (*) Save UV Coordinates and Texture";
 
* save the wings file;
 
* save the wings file;
*select one body, and choose "{{RMB}} -> UV Mapping (Experimental) -> Edit existing UV Mapping";
+
* select one body, and choose "{{RMB}} -> UV Mapping (Experimental) -> Edit existing UV Mapping";
 
* Import the Image (now if wings crashes, the uv data is save).
 
* Import the Image (now if wings crashes, the uv data is save).
  
Line 91: Line 91:
 
Or resize the image to 512x512.
 
Or resize the image to 512x512.
  
=== Tip 3===
+
===Tip 3===
 
Use '''jpeg/jpg format for the texture''':
 
Use '''jpeg/jpg format for the texture''':
 
* Its not as free as png, but it's much smaller;
 
* Its not as free as png, but it's much smaller;
Line 103: Line 103:
  
 
Easy answer:
 
Easy answer:
*Convert the uncompressed textures into tga/tif/bmp and jpg;
+
* Convert the uncompressed textures into tga/tif/bmp and jpg;
*import the tga/tif/bmp;
+
* import the tga/tif/bmp;
*uv-map the ship;
+
* uv-map the ship;
*export the ship to xmesh format;
+
* export the ship to xmesh format;
*edit the xmeshes to point to the jpg-files.
+
* edit the xmeshes to point to the jpg-files.
  
=== Tip 4 ===
+
===Tip 4===
 
Use '''different skins for different factions''' in the game:
 
Use '''different skins for different factions''' in the game:
  
Line 116: Line 116:
 
If you make a texture <code>confed_talon.png</code> and another texture <code>retro_talon.png</code> it will nab those before it goes for the default texture"
 
If you make a texture <code>confed_talon.png</code> and another texture <code>retro_talon.png</code> it will nab those before it goes for the default texture"
  
=== Tip 5 ===
+
===Tip 5===
 
Selection Tips - Also works in normal geometry mode:
 
Selection Tips - Also works in normal geometry mode:
 
*To deselect faces just press {{Key:EN:Ctrl}} and draw a rectangle over the faces (rectangle must start out of object);
 
*To deselect faces just press {{Key:EN:Ctrl}} and draw a rectangle over the faces (rectangle must start out of object);
*This in comination with the {{Key:EN:X}}, {{Key:EN:Y}}, {{Key:EN:Z}} and {{Key:EN:Shift left}} +{{Key:EN:X}}, {{Key:EN:Y}}, {{Key:EN:Z}} keys in orthogonal-mode is a very powerfull way to select/deselect specific faces;
+
*This in combination with the {{Key:EN:X}}, {{Key:EN:Y}}, {{Key:EN:Z}} and {{Key:EN:Shift left}} +{{Key:EN:X}}, {{Key:EN:Y}}, {{Key:EN:Z}} keys in orthogonal-mode is a very powerful way to select/deselect specific faces;
 
* use the {{Key:EN:Equal}} and {{Key:EN:Hyphen}} keys to make your selection bigger/smaller;
 
* use the {{Key:EN:Equal}} and {{Key:EN:Hyphen}} keys to make your selection bigger/smaller;
 
* play with the selection modes (faces/vertices/edges) to see the selection behaviour. It is sometimes very helpful.
 
* play with the selection modes (faces/vertices/edges) to see the selection behaviour. It is sometimes very helpful.
  
=== Tip 6 ===
+
===Tip 6===
 
SNAP IMAGES:
 
SNAP IMAGES:
  
 
Another way to texture in wings is by using the snap feature as pictured  
 
Another way to texture in wings is by using the snap feature as pictured  
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image01.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_01.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image02.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_02.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image03.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_03.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image04.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_04.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image05.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_05.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image06.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_06.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image07.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_07.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image08.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_08.png
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image09.png
+
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/snap_image/snap_image_09.png
 
----
 
----
 
{{NAV_Manual |
 
{{NAV_Manual |
| previous=[[HowTo:Create Cockpit in Wings3dManual:Computer:Game menu|In Game Menu]]
+
| previous=[[HowTo:Texture|Creating your own textures]]
| up=[[HowTo]]
+
| up=[[HowTos]]
| next=[[HowTo:Add Engine Glow|Add Engine Glow]]
+
| next=[[HowTo:SuperrealisticTexturing|Tips for realistic-looking textures]]
 
}}
 
}}
  
[[Category:HowTo|Texture in Wings3D]]
+
[[Category:HowTos|Texture in Wings3D]]
 +
[[Category:Artwork|Texture in Wings3D]]
 +
[[Category:Modeling|Texture in Wings3D]]
 +
[[Category:Wings3D|Texture in Wings3D]]

Latest revision as of 13:46, 9 July 2010

arrow_left.png Creating your own textures arrow_up.png HowTos Tips for realistic-looking textures arrow_right.png

Texturing a Ship in Wings3D

Links to other Texturing Howtos/Helps/FAQs

The future of the second UV-Plugin for Wings3D called ExtremeUV and where to find it

A step by step instruction

  • Look for the newest version of Wings3D (AutoUV is in an early state of development right now, so newer version=better AutoUV; but remember: it may also crash more often than a stable release)
  • Create a model HowTo:Create Models;
  • Change to body selection;
  • Select one body, and click "mouse_button_right_small.png -> UV Mapping";
  • Now there are several ways to continue (this is for Wings3D 0.98.26):
    • The primitive way
      • -> Assign an "even" texture with no image manipulation afterwards. This is to show how texturing works:
      • "mouse_button_right_small.png -> Segment by -> Projection";
      • "mouse_button_right_small.png -> Continue -> Projection";
      • "mouse_button_right_small.png in AutoUV -> Create Texture -> OK" (maybe you want to tweak some setting like "Texture size");
      • Close the AutoUV window;
      • "mouse_button_right_small.png on the image (Outliner) -> Make External";
      • Replace this image with the primitive texture you have;
      • "mouse_button_right_small.png on the image (Outliner) -> Refresh (to update the image in Wings3D)".
    • The common way (I think):
      • Sometimes a ""mouse_button_right_small.png -> Segment by -> Projection" or a ""mouse_button_right_small.png -> Segment by -> Feature Detection" is a good start for this;
      • Select contiguous faces of a specific area;
      • "mouse_button_right_small.png -> Select one of the "AuvChartX" Entries";
      • Do this until every face has a color;
      • ""mouse_button_right_small.png -> Continue -> Unfolding" (or ""mouse_button_right_small.png -> Continue -> Projection", this depends on the preferred outcome);
      • Arrange the geometry in the AutoUV Windows so it fits best in the window;
      • ""mouse_button_right_small.png in AutoUV -> Create Texture -> OK" (maybe you want to tweak some setting like "Texture size");
      • Close the AutoUV window;
      • "mouse_button_right_small.png on the image (Outliner) -> Make External";
      • Modify the external image (using you favourite image manipulation program e.g "The GIMP");
      • ""mouse_button_right_small.png on the image (Outliner) -> Refresh (to update the image in Wings3D)"

mapping.jpg Mapping mapping_uvmap.jpg Mapping-UVmap

  • The green edges are the cutting edges.
  • Optional: Per pixel lighting;
  • Optional: Set Reflect factor (if "1" is not needed) The specular map is the color of the light that the object actively reflects. See below: <Mesh texture="normaltexture.png" texture1="specular_map.png">
    • If it's black, the object is matte;
    • If it's white, then the object is totally shiny (window);
    • And if it's like orange, then the object is copperish cus it'll reflect only the orange light that hits it.

Just take the texture you have and run it through like brightness/contrast/saturation

Editing the REFLECT factor of a xmesh

  • Menu->Outliner;
  • Select whatever_auv;
  • mouse_button_right_small.png -> Edit Material;
  • Set Shininess(=reflect) to some value;
  • Select OK and save.

Tips

Tip 1

If you want to unwrap e.g a cylinder, do this in the "UV Mapping" mode:

  • select all faces of the cylinder;
  • assign an "AuvChartX" color to them;
  • select a edge which goes from the bottom to the top of the cylinder;
  • "mouse_button_right_small.png -> Mark Edges For Cut";
  • select all edges of the top and the bottom circle except for one edge on the top and one on the bottom;
  • "mouse_button_right_small.png -> Mark Edges For Cut";
    • "mouse_button_right_small.png -> Continue -> Unfolding".

Example unwrap_cylinder.jpg UnWrap Cylinder

Tip 2

Some pictures may crash wings (even if their size is a power of 2). For more information go here.

Here is a workaround:

  • After UV Mapping save the UV data: "mouse_button_right_small.png in AutoUV -> Quit -> (*) Save UV Coordinates and Texture";
  • save the wings file;
  • select one body, and choose "mouse_button_right_small.png -> UV Mapping (Experimental) -> Edit existing UV Mapping";
  • Import the Image (now if wings crashes, the uv data is save).

If the image is corrupt, try to copy and paste it in an image application and save it under a new filename.

Or resize the image to 512x512.

Tip 3

Use jpeg/jpg format for the texture:

  • Its not as free as png, but it's much smaller;
  • And size DOES matter when it comes to download time!

(but jpeg doesn't preserve an alpha layer, which may be kind of important. -- [Aegidian])

Remember to keep an uncompressed version of the texture!!!

"But Wings3D only imports tga/tif/bmp, how am i supposed to use jpgs?"

Easy answer:

  • Convert the uncompressed textures into tga/tif/bmp and jpg;
  • import the tga/tif/bmp;
  • uv-map the ship;
  • export the ship to xmesh format;
  • edit the xmeshes to point to the jpg-files.

Tip 4

Use different skins for different factions in the game:

Quoted hellcatv:"VS already has the ability to change skins without actually having three units. Say you have a unit that has a mesh file with mesh texture="talon.png";

If you make a texture confed_talon.png and another texture retro_talon.png it will nab those before it goes for the default texture"

Tip 5

Selection Tips - Also works in normal geometry mode:

  • To deselect faces just press CTRL_EN.png and draw a rectangle over the faces (rectangle must start out of object);
  • This in combination with the X_EN.png, Y_EN.png, Z_EN.png and SHIFT_LEFT_EN.png +X_EN.png, Y_EN.png, Z_EN.png keys in orthogonal-mode is a very powerful way to select/deselect specific faces;
  • use the EQUAL_EN.png and HYPHEN_EN.png keys to make your selection bigger/smaller;
  • play with the selection modes (faces/vertices/edges) to see the selection behaviour. It is sometimes very helpful.

Tip 6

SNAP IMAGES:

Another way to texture in wings is by using the snap feature as pictured snap_image_01.png snap_image_02.png snap_image_03.png snap_image_04.png snap_image_05.png snap_image_06.png snap_image_07.png snap_image_08.png snap_image_09.png


arrow_left.png Creating your own textures arrow_up.png HowTos Tips for realistic-looking textures arrow_right.png