Difference between revisions of "HowTo:Create Ships in Wings3D"

From VsWiki
Jump to: navigation, search
m (add links)
m ([vega-bot] [replace] 1 instances of 'http://vegastrike.sourceforge.net/forums' for 'http://forums.vega-strike.org')
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{NAV_Manual |
 
{{NAV_Manual |
 
| previous=[[HowTo:Create Models|Create Models]]
 
| previous=[[HowTo:Create Models|Create Models]]
| up=[[HowTo]]
+
| up=[[HowTos]]
| next=[[HowTo:Edit Unit Files|Edit Unit Files]]
+
| next=[[HowTo:Unwrap|Unwrapping Models]]
 
}}
 
}}
 
----
 
----
= Introduction =
 
  
So you want to create a new ship for Vega Strike do you?  Well before you start cranking out wonderfully designed models, we request that you first check what models are still required.  Refer to this [http://vegastrike.sourceforge.net/forums/viewtopic.php?t=2491 link] to find out what ships need to be modelled.
+
= Sad Note =
  
We recommend you have Wings3D and the Xmesh Export Plugin installed to model ships using the following format; see [[Howto:Install Wings3d]]. '''This howto assumes that the version of the plugin you're using is 1.3b4 or newer'''. If you want to stay with the old plugin look at [[Howto:Create Ships with xmesh plugin 1.3b3]]. The old format for lights is no longer used by the plugin script.
+
Since I'm wrapped up in real life for some time now I do not actively develop or maintain the plugin anymore ... chances are high that it will not work at all with a current version of Wings3D.
 +
Not to speak from myself switching to blender just a few weeks after I stopped developing the plugin.  
  
Feel free to use a different modelling program, but it must be able to export models in .obj or .xmesh format.
+
So in order for people to still access the plugin (be it working or not) and/or usign the source code I've uploaded it here:
 +
http://vegastrike.sourceforge.net/users/pontiac/xmesh/
 +
 
 +
This file not only contains all versions of the plugin ever made, but also the latest nightly and the images used in this howto.
 +
 
 +
=Introduction=
 +
 
 +
Vega Strike has grown as an open source creation over time, and most contributors use other open source programs to produce models for the universe.  Where using the following guide, we recommend you have Wings3D and the (LINK BROKEN, See top of the page; Xmesh Export Plugin) installed to model using the following format; see [[HowTo:Install Wings3d]] for instructions on obtaining Wings3D and the Xmesh Export Plugin.
 +
 
 +
'''This howto assumes that the version of the plugin you're using is 1.3b4 or newer'''.  If you want to stay with the old plugin look at [[Howto:Create Ships with xmesh plugin 1.3b3]]. The old format for lights is no longer used by the plugin script.
 +
 
 +
Feel free to use a different modelling program, but it must be able to export models in .obj or .xmesh format (for later conversion to .bfxm format).
  
 
Lastly, we recommend following the processes below in order, until you know what you're doing.
 
Lastly, we recommend following the processes below in order, until you know what you're doing.
  
== Creating Your Ship ==
+
==Creating Your Model==
The first (and most enjoyable) job is to design and draw your ship (the geometrical object) within your program.  The way how to create geometry in Wings3D is fairly self-explanatory, but if you have problems refer to the [http://www.wings3d.com/ Wings3d homepage] (especially the [http://www.wings3d.com/tutorials.php tutorials page] or the [http://pub33.ezboard.com/fnendowingsmiraifrm3.showMessage?topicID=249.topic tutorials thread], and the [http://pub33.ezboard.com/fnendowingsmiraifrm12 manual section of the discussion board]).
+
The first (and most enjoyable) job is to design and draw your model (the geometrical object) within your program.  The way to create geometry in Wings3D is fairly self-explanatory, but if you have problems refer to the [http://www.wings3d.com/ Wings3d homepage] (especially the [http://www.wings3d.com/tutorials.php tutorials page] or the [http://pub33.ezboard.com/fnendowingsmiraifrm3.showMessage?topicID=249.topic tutorials thread], and the [http://pub33.ezboard.com/fnendowingsmiraifrm12 manual section of the discussion board]).
  
 
'''Rename the objects you create''' to something good sounding: [Window] -> [Object] -> {{RMB}} RMB on object -> [rename]
 
'''Rename the objects you create''' to something good sounding: [Window] -> [Object] -> {{RMB}} RMB on object -> [rename]
Line 25: Line 36:
 
* Do not use materials (or vertex color or whatever this is called) in Wings3D (in combination with the plugin of course; especially not the ''hole'' material). The (correct) use of material colors is not yet supported. Normal 'textures' are supported fine though :)
 
* Do not use materials (or vertex color or whatever this is called) in Wings3D (in combination with the plugin of course; especially not the ''hole'' material). The (correct) use of material colors is not yet supported. Normal 'textures' are supported fine though :)
  
=== Modeling tips: ===
+
===Modeling tips===
 
* start with a simple cube
 
* start with a simple cube
 
* stay with low polygon-count (no extreme round shapes, etc ...)
 
* stay with low polygon-count (no extreme round shapes, etc ...)
* Please mind the ''max. polycount'' values (its not to prevent good looking ships, but to make Vega Strike run smoothly an slower computers; not everyone has an GeForce VI with 512MB/1,8GHz and an Athlon 5,2THz):
+
* Please consider the [[Development:Model_Guidelines#Polygon.2FVertex_Count|poly count recommendation]]
*''without LOD mesh(es)'':
 
** fighter 1024
 
** capship 2048
 
** station(part) 4096 ???
 
*''Only when using LOD mesh(es)'':
 
** fighter 2048
 
** capship 4096
 
** station(part) 8192 ???
 
  
=== Orientation of the objects ===
+
===Orientation of the objects===
 
*front= Z-axis = blue
 
*front= Z-axis = blue
 
*up= Y-axis = green
 
*up= Y-axis = green
  
 +
<!-- See the zip file -->
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/orientation.jpg
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/orientation.jpg
  
== Additional Points ==
+
==Additional points==
 
Once your basic design is complete, Vega Strike requires a few additional items created on your ship.
 
Once your basic design is complete, Vega Strike requires a few additional items created on your ship.
  
===Creating Weapon Mounts===
+
===Creating weapon mounts===
 
These are the locations of the physical mount points for the weapon systems of your ship.  Vega Strike uses independant weapon models, and requires these mount points to know where to attach them.
 
These are the locations of the physical mount points for the weapon systems of your ship.  Vega Strike uses independant weapon models, and requires these mount points to know where to attach them.
  
Line 55: Line 59:
 
** The longer side of the triangle must point in the direction the weapon should point.
 
** The longer side of the triangle must point in the direction the weapon should point.
  
 +
<!-- See the zip file -->
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/weapons_2.jpg
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/weapons_2.jpg
  
===Creating Turret Mounts===
+
===Creating turret mounts===
 
Similarly, if your ship is to mount turrets, these points must be recorded.
 
Similarly, if your ship is to mount turrets, these points must be recorded.
  
Line 67: Line 72:
 
** The shorter side of the triangle must point in the forward direction.
 
** The shorter side of the triangle must point in the forward direction.
  
 +
<!-- See the zip file -->
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/turrets_2.jpg
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/turrets_2.jpg
  
===Creating Docking Ports===
+
===Creating docking ports===
 
If the ship is designed to be docked to (e.g. a capital ship or large cargo vessel), the docking points must also be recorded.
 
If the ship is designed to be docked to (e.g. a capital ship or large cargo vessel), the docking points must also be recorded.
  
Line 75: Line 81:
 
*'''place it''' where you want to have the dock (the point in the 90° angle is the base).
 
*'''place it''' where you want to have the dock (the point in the 90° angle is the base).
  
 +
<!-- See the zip file -->
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/docks_2.jpg
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/docks_2.jpg
  
===Creating Engines===
+
===Creating engines===
 
Lastly, create the points for the engines.
 
Lastly, create the points for the engines.
  
Line 85: Line 92:
 
** The longer side of the triangle must point in the direction the engine should point (normally points back).
 
** The longer side of the triangle must point in the direction the engine should point (normally points back).
  
 +
<!-- See the zip file -->
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/engines_2.jpg
 
http://vegastrike.sourceforge.net/users/pontiac/wings_plugin/doc/engines_2.jpg
  
 
'''"Spot" lights should have another position than their aim point.'''
 
'''"Spot" lights should have another position than their aim point.'''
  
== Assigning UV-maps ==
+
==Assigning UV-maps==
 
* Go to [[HowTo:Texture in Wings3d]]
 
* Go to [[HowTo:Texture in Wings3d]]
  
 
'''You need the UV-data and a texture to display the ship correctly in VS.''' If you didn't do that you will get some scrambled geometry. In the worst case it won't even export.
 
'''You need the UV-data and a texture to display the ship correctly in VS.''' If you didn't do that you will get some scrambled geometry. In the worst case it won't even export.
  
=== Converting Texture Maps ===
+
===Converting texture maps===
 
*Use an image manipulation program to convert the .tga files to a compressed (smaller) file format vegastrike can read like png or jpg;
 
*Use an image manipulation program to convert the .tga files to a compressed (smaller) file format vegastrike can read like png or jpg;
 
*Edit the name of the image files in the .xmesh files
 
*Edit the name of the image files in the .xmesh files
Line 100: Line 108:
 
Some image manipulation/convertion programs are at [[Links:Graphic Applications]].
 
Some image manipulation/convertion programs are at [[Links:Graphic Applications]].
  
==Saving and Exporting==
+
==Saving and exporting==
 
* Save your file as <code>.wings</code>
 
* Save your file as <code>.wings</code>
 
* now you have two options:
 
* now you have two options:
Line 113: Line 121:
 
**the sample config.txt included in the plugin has a editing-description in it;
 
**the sample config.txt included in the plugin has a editing-description in it;
 
**the sample data is located in the '''<code>xmesh_sample_data</code>'''-directory in your Wings3D-dir (to be precise they are in '''<code>.../YourWings3dDirectory/lib/wings-0.xx.xx/plugins/xmesh/xmesh_sample_data</code>''');
 
**the sample data is located in the '''<code>xmesh_sample_data</code>'''-directory in your Wings3D-dir (to be precise they are in '''<code>.../YourWings3dDirectory/lib/wings-0.xx.xx/plugins/xmesh/xmesh_sample_data</code>''');
** some tips for [http://vegastrike.sourceforge.net/forums/viewtopic.php?p=6376#6376 editing config.txt]:
+
** some tips for [http://forums.vega-strike.org/viewtopic.php?p=6376#6376 editing config.txt]:
 
* ''Note that you must enter a name with the extension .xunit in the export dialog, but it will be cut away by the plugin''
 
* ''Note that you must enter a name with the extension .xunit in the export dialog, but it will be cut away by the plugin''
 
* The files are saved like this:
 
* The files are saved like this:
Line 122: Line 130:
 
to check the correctness of the files rename them into .xml and drag them into Mozilla, IE or another XML-understanding browser. They will show you an error if the syntax of the file is corrupt.
 
to check the correctness of the files rename them into .xml and drag them into Mozilla, IE or another XML-understanding browser. They will show you an error if the syntax of the file is corrupt.
  
==Creating Logos (a workaround right now)==
+
==Creating logos (a workaround right now)==
*search in Wings3D for a polygon you want to put the logo on;
+
* Search in Wings3D for a polygon you want to put the logo on;
*switch to vertice-mode by pressing '''[v]''';
+
* Switch to vertice-mode by pressing '''[v]''';
*select all vertices of this poly one by one and write down the numbers displayed in the upper left corner of the screen;
+
* Select all vertices of this poly one by one and write down the numbers displayed in the upper left corner of the screen;
*also remember the name of the object, the polygon is owned by;
+
* also remember the name of the object, the polygon is owned by;
*Edit the xmesh file of the object and insert this before the '''<code><nowiki><\Mesh></nowiki></code> line.
+
* Edit the xmesh file of the object and insert this before the '''<code><nowiki><\Mesh></nowiki></code> line.
*See Definition of the Logo here: [[Howto:Edit Mesh Files]].
+
* See Definition of the Logo here: [[Howto:Edit Mesh Files]].
  
 
'''TIP''': You can scale the tag-objects as much as you want. Also the length of the sides can vary (but they must not be the same length). Be sure it has an rectangular angle where the position Point is.
 
'''TIP''': You can scale the tag-objects as much as you want. Also the length of the sides can vary (but they must not be the same length). Be sure it has an rectangular angle where the position Point is.
Line 142: Line 150:
 
* Viewing the '''defined hotkeys''': <br>Menu [Help] -> [Defined Hotkeys]
 
* Viewing the '''defined hotkeys''': <br>Menu [Help] -> [Defined Hotkeys]
 
* '''Defining your own Hotkeys''':<br>Menu [Help] -> [How To Define Hotkeys]
 
* '''Defining your own Hotkeys''':<br>Menu [Help] -> [How To Define Hotkeys]
 +
 
----
 
----
 
{{NAV_Manual |
 
{{NAV_Manual |
 
| previous=[[HowTo:Create Models|Create Models]]
 
| previous=[[HowTo:Create Models|Create Models]]
| up=[[HowTo]]
+
| up=[[HowTos]]
| next=[[HowTo:Edit Unit Files|Edit Unit Files]]
+
| next=[[HowTo:Unwrap|Unwrapping Models]]
 
}}
 
}}
[[Category:HowTo|Create Ships in Wings3D]]
+
 
 +
[[Category:HowTos|Create Ships in Wings3D]]
 +
[[Category:Modeling|Create Ships in Wings3D]]
 +
[[Category:Wings3D|Create Ships in Wings3D]]

Latest revision as of 22:29, 8 January 2013

arrow_left.png Create Models arrow_up.png HowTos Unwrapping Models arrow_right.png

Sad Note

Since I'm wrapped up in real life for some time now I do not actively develop or maintain the plugin anymore ... chances are high that it will not work at all with a current version of Wings3D. Not to speak from myself switching to blender just a few weeks after I stopped developing the plugin.

So in order for people to still access the plugin (be it working or not) and/or usign the source code I've uploaded it here: http://vegastrike.sourceforge.net/users/pontiac/xmesh/

This file not only contains all versions of the plugin ever made, but also the latest nightly and the images used in this howto.

Introduction

Vega Strike has grown as an open source creation over time, and most contributors use other open source programs to produce models for the universe. Where using the following guide, we recommend you have Wings3D and the (LINK BROKEN, See top of the page; Xmesh Export Plugin) installed to model using the following format; see HowTo:Install Wings3d for instructions on obtaining Wings3D and the Xmesh Export Plugin.

This howto assumes that the version of the plugin you're using is 1.3b4 or newer. If you want to stay with the old plugin look at Howto:Create Ships with xmesh plugin 1.3b3. The old format for lights is no longer used by the plugin script.

Feel free to use a different modelling program, but it must be able to export models in .obj or .xmesh format (for later conversion to .bfxm format).

Lastly, we recommend following the processes below in order, until you know what you're doing.

Creating Your Model

The first (and most enjoyable) job is to design and draw your model (the geometrical object) within your program. The way to create geometry in Wings3D is fairly self-explanatory, but if you have problems refer to the Wings3d homepage (especially the tutorials page or the tutorials thread, and the manual section of the discussion board).

Rename the objects you create to something good sounding: [Window] -> [Object] -> mouse_button_right_small.png RMB on object -> [rename]

ATTENTION:

  • Don't give multiple objects the same name, they will all be written in the same xmesh file.
  • Don't name an object like this: "tag_....."
  • Do not use materials (or vertex color or whatever this is called) in Wings3D (in combination with the plugin of course; especially not the hole material). The (correct) use of material colors is not yet supported. Normal 'textures' are supported fine though :)

Modeling tips

  • start with a simple cube
  • stay with low polygon-count (no extreme round shapes, etc ...)
  • Please consider the poly count recommendation

Orientation of the objects

  • front= Z-axis = blue
  • up= Y-axis = green

orientation.jpg

Additional points

Once your basic design is complete, Vega Strike requires a few additional items created on your ship.

Creating weapon mounts

These are the locations of the physical mount points for the weapon systems of your ship. Vega Strike uses independant weapon models, and requires these mount points to know where to attach them.

  • mouse_button_right_small.png -> [Vegastrike Tags] -> [Mount (Weapon)]
  • place it where you want to have the weapon (move/rotate/...);
    • The point in the 90° angle is the base - attaching to the ship;
    • The longer side of the triangle must point in the direction the weapon should point.

weapons_2.jpg

Creating turret mounts

Similarly, if your ship is to mount turrets, these points must be recorded.

  • mouse_button_right_small.png -> [Vegastrike Tags] -> [Subunit]
  • the type of the subunit is specified in the config.txt
  • place it where you want to have the subunit (move/rotate/...);
    • The point in the 90° angle is the base;
    • The longer side of the triangle must point in the direction the top of the turret should point;
    • The shorter side of the triangle must point in the forward direction.

turrets_2.jpg

Creating docking ports

If the ship is designed to be docked to (e.g. a capital ship or large cargo vessel), the docking points must also be recorded.

  • mouse_button_right_small.png -> [Vegastrike Tags] -> [Dock]
  • place it where you want to have the dock (the point in the 90° angle is the base).

docks_2.jpg

Creating engines

Lastly, create the points for the engines.

  • mouse_button_right_small.png -> [Vegastrike Tags] -> [Light (Engine)]
  • Place it where you want to have the engine.
    • The point in the 90° angle is the base;
    • The longer side of the triangle must point in the direction the engine should point (normally points back).

engines_2.jpg

"Spot" lights should have another position than their aim point.

Assigning UV-maps

You need the UV-data and a texture to display the ship correctly in VS. If you didn't do that you will get some scrambled geometry. In the worst case it won't even export.

Converting texture maps

  • Use an image manipulation program to convert the .tga files to a compressed (smaller) file format vegastrike can read like png or jpg;
  • Edit the name of the image files in the .xmesh files

Some image manipulation/convertion programs are at Links:Graphic Applications.

Saving and exporting

  • Save your file as .wings
  • now you have two options:
    • Select [File] -> [Export] -> [Vega Strike (.xunit/.xmesh) ...]
    • Select [File] -> [Export] -> the grey square right of Vega Strike (.xunit/.xmesh) ...In this dialog you can set the export options. (they will be saved in your Wings3D-Preferences and not in the .wings file);
      • Export as cockpit - use BSP=binary space partition;
      • Ignore export-config - Ignores the conf files located in .../exportdir/config/*;
      • Export image maps (as TGA files) - check if you want to export the texture maps (as tga-files);
      • Use Scale for whole xunit - Uncheck to scale single objects/xmeshes;
      • Export scale - the value which is written into the xunit/xmesh;
  • If you are using the config-export method you must EDIT THE CONFIG.TXT to meet your idea of the ship;
    • the sample config.txt included in the plugin has a editing-description in it;
    • the sample data is located in the xmesh_sample_data-directory in your Wings3D-dir (to be precise they are in .../YourWings3dDirectory/lib/wings-0.xx.xx/plugins/xmesh/xmesh_sample_data);
    • some tips for editing config.txt:
  • Note that you must enter a name with the extension .xunit in the export dialog, but it will be cut away by the plugin
  • The files are saved like this:
    • Unit Files: like specified in the config.txt;
    • Object/Mesh File(s): yourmodelname_objectnameinwings.xmesh;
    • Texture Map(s): yourmodelname_objectnameinwings_diffuse.tga.

to check the correctness of the files rename them into .xml and drag them into Mozilla, IE or another XML-understanding browser. They will show you an error if the syntax of the file is corrupt.

Creating logos (a workaround right now)

  • Search in Wings3D for a polygon you want to put the logo on;
  • Switch to vertice-mode by pressing [v];
  • Select all vertices of this poly one by one and write down the numbers displayed in the upper left corner of the screen;
  • also remember the name of the object, the polygon is owned by;
  • Edit the xmesh file of the object and insert this before the <\Mesh> line.
  • See Definition of the Logo here: Howto:Edit Mesh Files.

TIP: You can scale the tag-objects as much as you want. Also the length of the sides can vary (but they must not be the same length). Be sure it has an rectangular angle where the position Point is.

TIP: If you don't see the logo, make it very big to locate it.

Miscellaneous

Description of xunit

Wings tips and tricks


arrow_left.png Create Models arrow_up.png HowTos Unwrapping Models arrow_right.png