Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Help with Models for Absolute Beginners (wings3d and PC)

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Amen Brick
Deadly
Deadly
Posts: 187
Joined: Sat May 10, 2008 5:22 pm
Location: Bolton!

Help with Models for Absolute Beginners (wings3d and PC)

Post by Amen Brick »

I struggled to get my first model to dat format, mostly because I am an utter newb to scripting/programming/computer software tweaking. I've decided to write a quick abc for others with a similar lack of experience who want to join in but are anxious of wasting time.

I found the page http://oolite.aegidian.org/cyoship2/ useful for modelling with Wings3d upto a point, but one or two things could be clearer for the newb.

A: Make your model. How to do that is out of my scope, but the above page is helpful here.

B: Select Whole Object (the fully shaded cube), select your model and check the number of surfaces and vertices. Try not to have too many of these, less than 200 of each, if possible. You can have more for a bigger ship. More complex ships tax your graphics card more and may slow down the game.

C: Follow the guide above until it says 'Save Your Work". Make sure your auv and model file have the same name (I got a fault on converting, when they were different).

D: Press the menu marked 'Window' and choose Outliner.

E: Choose the auv file you chose and right click and choose 'Make External' (It took me an hour to find this out by myself!). Save it as a .png.

F: Follow the guide until it says: 'Converting for Oolite'

G: Get a copy of Model Utilities, available in on this board and Python25 (if you don't already have it) from http://www.python.org/download/releases/2.5/.

H: Download this to your main drive (C: for example)

I: Put the Obj2DatTex.py file from the Model Utility file into the Python25 main folder

I: Export your Model as a Wavefront (obj) to the Python25 folder. This will also make a .mtl file, which is your uv graphics.

J: Open up your 'DOS' box, by pressing Start on you PC, then choosing 'Run' and entering CMD.

I: In the Black Box, change your drive to Python25 thus:

cd\python25

J: Then type: Obj2DatTex.py <Your Model Save File Name>.obj (i.e Obj2DatTex.py Hornet.obj) and press enter.

This will then convert the file and you will have a dat file in the main Python25 folder.

I hope I didn't miss anything out.

I'd like to thank CptKey, who was a life saver and everyone else who got me to the finishing post.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8512
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

As I would like to start modelling ships - this is very useful - thank-you.

Should it be a sticky oh great and powerful moderators?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by CaptKev »

Amen Brick wrote:
I'd like to thank CptKey, who was a life saver and everyone else who got me to the finishing post.
Glad to be of help :D
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by Prester John »

Amen Brick wrote: Fri Jun 06, 2008 10:11 am
I struggled to get my first model to dat format, mostly because I am an utter newb to scripting/programming/computer software tweaking. I've decided to write a quick abc for others with a similar lack of experience who want to join in but are anxious of wasting time.

I found the page http://oolite.aegidian.org/cyoship2/ useful for modelling with Wings3d upto a point, but one or two things could be clearer for the newb.

A: Make your model. How to do that is out of my scope, but the above page is helpful here.

B: Select Whole Object (the fully shaded cube), select your model and check the number of surfaces and vertices. Try not to have too many of these, less than 200 of each, if possible. You can have more for a bigger ship. More complex ships tax your graphics card more and may slow down the game.

C: Follow the guide above until it says 'Save Your Work". Make sure your auv and model file have the same name (I got a fault on converting, when they were different).

D: Press the menu marked 'Window' and choose Outliner.

E: Choose the auv file you chose and right click and choose 'Make External' (It took me an hour to find this out by myself!). Save it as a .png.

F: Follow the guide until it says: 'Converting for Oolite'

G: Get a copy of Model Utilities, available in on this board and Python25 (if you don't already have it) from http://www.python.org/download/releases/2.5/.

H: Download this to your main drive (C: for example)

I: Put the Obj2DatTex.py file from the Model Utility file into the Python25 main folder

I: Export your Model as a Wavefront (obj) to the Python25 folder. This will also make a .mtl file, which is your uv graphics.

J: Open up your 'DOS' box, by pressing Start on you PC, then choosing 'Run' and entering CMD.

I: In the Black Box, change your drive to Python25 thus:

cd\python25

J: Then type: Obj2DatTex.py <Your Model Save File Name>.obj (i.e Obj2DatTex.py Hornet.obj) and press enter.

This will then convert the file and you will have a dat file in the main Python25 folder.

I hope I didn't miss anything out.

I'd like to thank CptKey, who was a life saver and everyone else who got me to the finishing post.
What's happening when you only have the file.obj (and, of course, NOT the file.mtl)?
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by Prester John »

Amen Brick wrote: Fri Jun 06, 2008 10:11 am
I struggled to get my first model to dat format, mostly because I am an utter newb to scripting/programming/computer software tweaking. I've decided to write a quick abc for others with a similar lack of experience who want to join in but are anxious of wasting time.

I found the page http://oolite.aegidian.org/cyoship2/ useful for modelling with Wings3d upto a point, but one or two things could be clearer for the newb.

A: Make your model. How to do that is out of my scope, but the above page is helpful here.

B: Select Whole Object (the fully shaded cube), select your model and check the number of surfaces and vertices. Try not to have too many of these, less than 200 of each, if possible. You can have more for a bigger ship. More complex ships tax your graphics card more and may slow down the game.

C: Follow the guide above until it says 'Save Your Work". Make sure your auv and model file have the same name (I got a fault on converting, when they were different).

D: Press the menu marked 'Window' and choose Outliner.

E: Choose the auv file you chose and right click and choose 'Make External' (It took me an hour to find this out by myself!). Save it as a .png.

F: Follow the guide until it says: 'Converting for Oolite'

G: Get a copy of Model Utilities, available in on this board and Python25 (if you don't already have it) from http://www.python.org/download/releases/2.5/.

H: Download this to your main drive (C: for example)

I: Put the Obj2DatTex.py file from the Model Utility file into the Python25 main folder

I: Export your Model as a Wavefront (obj) to the Python25 folder. This will also make a .mtl file, which is your uv graphics.

J: Open up your 'DOS' box, by pressing Start on you PC, then choosing 'Run' and entering CMD.

I: In the Black Box, change your drive to Python25 thus:

cd\python25

J: Then type: Obj2DatTex.py <Your Model Save File Name>.obj (i.e Obj2DatTex.py Hornet.obj) and press enter.

This will then convert the file and you will have a dat file in the main Python25 folder.

I hope I didn't miss anything out.

I'd like to thank CptKey, who was a life saver and everyone else who got me to the finishing post.
So, if I get it right, this conversion will not work if you don't have the *.mtl file with the model.obj. Right?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6569
Joined: Wed Feb 28, 2007 7:54 am

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by another_commander »

.mtl files specify the textures and material properties corresponding to those textures of a model. It might just be possible to use an obj file without the mtl (disclaimer: not sure, never done it), but I would expect that information related to textures of that model will be lost. It might also depend on the software used to do the conversion. Maybe our experienced modelers can chime in for more specifics.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by Svengali »

another_commander wrote:
It might just be possible to use an obj file without the mtl (disclaimer: not sure, never done it), but I would expect that information related to textures of that model will be lost.
Yep.

BTW: The recommended converter script these days is Obj2DatTexNorm.py. It requires (if I recall it right) Python 2.7.
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by Prester John »

Svengali wrote: Sun Oct 07, 2018 11:09 am
another_commander wrote:
It might just be possible to use an obj file without the mtl (disclaimer: not sure, never done it), but I would expect that information related to textures of that model will be lost.
Yep.

BTW: The recommended converter script these days is Obj2DatTexNorm.py. It requires (if I recall it right) Python 2.7.
:| On the Wiki, I saw "download Python 2.6", when I dowloaded Obj2Dat.py.
So you mean I have to re-download Python 2.7 for *points at link above*?
:x *GRUMF!* Okay, I note.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by Svengali »

Prester John wrote: Sun Oct 07, 2018 5:39 pm
:| On the Wiki, I saw "download Python 2.6", when I dowloaded Obj2Dat.py.
So you mean I have to re-download Python 2.7 for *points at link above*?
:x *GRUMF!* Okay, I note.
Seems the WIKI is outdated as well. See this post by Ahruman.
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: Help with Models for Absolute Beginners (wings3d and PC)

Post by Prester John »

Svengali wrote: Sun Oct 07, 2018 6:02 pm
Prester John wrote: Sun Oct 07, 2018 5:39 pm
:| On the Wiki, I saw "download Python 2.6", when I dowloaded Obj2Dat.py.
So you mean I have to re-download Python 2.7 for *points at link above*?
:x *GRUMF!* Okay, I note.
Seems the WIKI is outdated as well. See this post by Ahruman.
Checked.... *breathes deeeply* thank you :roll:
Post Reply