Difference between revisions of "OXP howto texture"

From Elite Wiki
(links)
m (Internal Links: Added link)
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
== Step 1 ==
 
== Step 1 ==
  
Get a good [[List of software|grafic editing software programme]], something a bit more elaborate than MS-paint.
+
Open a good [[List of software|graphic editing application]], something a bit more elaborate than MS-paint.
  
  
 +
=== Custom texture native models ===
  
=== Custom textures from native models ===
+
You can create custom textures for any Oolite native entities, the steps to follow are:
 
+
*Edit the chosen native texture to your own liking.
You can create custom textures for native entities, the steps to follow are:
+
*Duplicate the chosen ''Xnative_ship''.dat model, and alter the file name. Open the copy in a text editor, and change all referances from ''Xnative_ship''.png to the name of your ''custom_texture''.png.
*Edit the native texture to your own liking.
+
*Create a custom [[shipdata.plist]], with a [[like_ship shipdata.plist example|like_ship]] entry which refers to the original, and place your components into the appropriate folders, making a complete, [[OXP_howto|funcional OXP]].   
*Copy and change the native_ship.dat to refer to your custom texture.png.
 
*Create a custom-[[shipdata.plist]], with a [[like_ship]] entry refering to the original and change the filename refered to by [[model]] to your custom_ship.[[dat]].   
 
 
 
  
  
 
=== Textures from a wings3D model ===
 
=== Textures from a wings3D model ===
  
After you have created a model, you need to apply an [[AUV]], this defines the way your future texture-file will be stretched accross your model.
+
After you have created a model, you need to apply an [http://en.wikipedia.org/wiki/UV_mapping UV-Map], this defines the way your future texture-file will be stretched accross your model.
 
Use hard edges to mark where to 'cut' the textures.  
 
Use hard edges to mark where to 'cut' the textures.  
  
There are two ways Wings-3D will extract an AUV:  
+
There are two ways Wings-3D will extract an UV-Map:  
  
 
(1) Fold: like a papermodel, the model is folded out to the flat plane of the texture. Can be usefull for small details, but may be difficult to line up correctly.  
 
(1) Fold: like a papermodel, the model is folded out to the flat plane of the texture. Can be usefull for small details, but may be difficult to line up correctly.  
Line 25: Line 23:
 
(2) Projection: the less complicated approach, will project (average normal) the sections unto the texture canvas.
 
(2) Projection: the less complicated approach, will project (average normal) the sections unto the texture canvas.
  
Move around the sections untill you are satisfied. Then create a texturemap from the AUV, do not forget to set 'draw all lines' in the [[dra_AUV_wings3D|options]].  
+
Move around the sections untill you are satisfied. Then create a texturemap from the UV-Map, do not forget to set 'draw all lines' in the options.
Repeat this for all AUV's the model uses. Close the AUV-window and rename the texture file in the 'outliner'. Export the file.  
+
Repeat this for all UV's the model uses. Close the UV-window and rename the texture file in the 'outliner'. Export the file.  
 
(note: win-wings does not support PNG-format, use BMP)
 
(note: win-wings does not support PNG-format, use BMP)
  
 +
You may want to look at Daniel Walker's [[F_C_Textures|texture guide]].
  
 +
Beginners and non-2D-artists may prefer to begin [[Modelling_103:_Texturing_for_the_2D_Challenged|here]], instead.
  
 
== Step2 ==
 
== Step2 ==
  
Now edit the file in your grafic software.
+
Now edit the file in your graphic software.
  
 
When you are satisfied with your results, save and go back to wings3D.
 
When you are satisfied with your results, save and go back to wings3D.
 
Most probably you have saved under a new filename, so 'import-image' it.
 
Most probably you have saved under a new filename, so 'import-image' it.
Now drag the edited texture to it's corresponding AUV.  
+
Now drag the edited texture to it's corresponding UV-Map.  
Your texture should now appear on the model (place some [[Lightsources_in_wings3D|lightsources]] first).  
+
Your texture should now appear on the model (place some light sources first).  
 
Check if all the various parts line up correctly.
 
Check if all the various parts line up correctly.
 
   
 
   
Edit the texture some more if you are not impressed with your results, save under the same name and in wings3D select 'refresh' image in the outliner.  
+
Edit the texture some more if you are not impressed with your results, save under the same name and in wings3D select 'refresh' image in the outliner.
 
 
 
 
  
 
== Export model ==
 
== Export model ==
Line 51: Line 49:
  
 
win-wings users:
 
win-wings users:
* Export in *.OBJ + *.MTL.  
+
* Export in *.obj + *.mtl.  
* Rename the texture references in the MTL-file from *.BMP to *.PNG)
+
* Rename the texture references in the mtl-file from *.bmp to *.png)
* Open texturefiles and save as *.PNG.
+
* Open texturefiles and save as *.png.
* [[Convert OBJ2DAT|Convert]] the OBJ+MTL files to DAT format.
+
* [[Oolite Converters|Convert]] the obj+mtl files to *.dat format via Obj2DatTexNorm.py.
 +
 
  
 
== Internal Links ==
 
== Internal Links ==
*[[OXP_Howto]]
 
 
*[[OXP]]
 
*[[OXP]]
*[[Wings3D]]
+
*[[OXP howto]]
*[[OXP_Howto_textures]]
+
*[[OXP howto model]]
 +
*[[Smivs'_texture_tutorial]]
 +
*[[Texturing tips and tricks by Theta Seven]]
 +
*[[Oolite Converters]]
  
 
== External Links ==
 
== External Links ==
 
*[http://www.wings3d.com/ Wings3D official home]
 
*[http://www.wings3d.com/ Wings3D official home]
*[http://www.geocities.com/paulthepuzzles/aardvarks.html Tuts and tips Wings3D, by Aardvark]
+
*[http://www.wings3d.com/paulthepuzzles/aardvarks.html Tuts and tips Wings3D, by Aardvark]
  
 
[[Category:Oolite]][[Category:Factual]]
 
[[Category:Oolite]][[Category:Factual]]

Revision as of 11:25, 25 March 2017

Step 1

Open a good graphic editing application, something a bit more elaborate than MS-paint.


Custom texture native models

You can create custom textures for any Oolite native entities, the steps to follow are:

  • Edit the chosen native texture to your own liking.
  • Duplicate the chosen Xnative_ship.dat model, and alter the file name. Open the copy in a text editor, and change all referances from Xnative_ship.png to the name of your custom_texture.png.
  • Create a custom shipdata.plist, with a like_ship entry which refers to the original, and place your components into the appropriate folders, making a complete, funcional OXP.


Textures from a wings3D model

After you have created a model, you need to apply an UV-Map, this defines the way your future texture-file will be stretched accross your model. Use hard edges to mark where to 'cut' the textures.

There are two ways Wings-3D will extract an UV-Map:

(1) Fold: like a papermodel, the model is folded out to the flat plane of the texture. Can be usefull for small details, but may be difficult to line up correctly.

(2) Projection: the less complicated approach, will project (average normal) the sections unto the texture canvas.

Move around the sections untill you are satisfied. Then create a texturemap from the UV-Map, do not forget to set 'draw all lines' in the options. Repeat this for all UV's the model uses. Close the UV-window and rename the texture file in the 'outliner'. Export the file. (note: win-wings does not support PNG-format, use BMP)

You may want to look at Daniel Walker's texture guide.

Beginners and non-2D-artists may prefer to begin here, instead.

Step2

Now edit the file in your graphic software.

When you are satisfied with your results, save and go back to wings3D. Most probably you have saved under a new filename, so 'import-image' it. Now drag the edited texture to it's corresponding UV-Map. Your texture should now appear on the model (place some light sources first). Check if all the various parts line up correctly.

Edit the texture some more if you are not impressed with your results, save under the same name and in wings3D select 'refresh' image in the outliner.

Export model

Before you export, make sure the texture images are 'internal'. Export in *.dat-format.

win-wings users:

  • Export in *.obj + *.mtl.
  • Rename the texture references in the mtl-file from *.bmp to *.png)
  • Open texturefiles and save as *.png.
  • Convert the obj+mtl files to *.dat format via Obj2DatTexNorm.py.


Internal Links

External Links