My first ship...

Off topic discussion zone.

Moderators: another_commander, winston, Cody

User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

My first ship...

Post by DaddyHoggy »

The reason this announcement is in Outworld rather than Expansion Packs is simply because of the nature of this new ship.

As I had to learn to use the new version of AC3D because I have to teach it next term I thought I'd combine my two interests of the moment - Oolite and Jonnie Rocket.

So I built myself Tycho 8 - Jonnie's mode of transport as he explores the Universe.

Now I've got to work out what to do with it now I've exported it as an OBJ file (v1.4 according to the documentation on the exporter) to get it in to Oolite...

Anyway, here it is:

Image

and it's supposed to look a bit like this:

Image

From here: http://www.jonnierocket.com/about.php
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6878
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

Cool! Two minor suggestions: are the two little side-pods supposed to be mounted on little wings? In the drawing they look more like they're flush with the side of the ship. Also, should the dome be longer, i.e. should its rear edge extend backwards to nearly the end of the red bodywork? Ooh, and a third one: the big "8" needs to be chunkier. :D
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Side pods are definitely on wings - other images I have show this.

Chunkier no. 8 - yup.

Re: Cockpit dome - some of the drawings in the book have it almost spherical (as I have created it) others more like the image I included in my post - that's the problem with basing it on a "cartoon" - there are slight variations in every image of it.

Looking forward to getting it in to Oolite so I can also play with lighting maps and (gosh) perhaps even shaders and Normal maps!!!!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6878
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

I think the dome would look better stretched, i.e. more like an aeroplane canopy.

It'll be interesting to see if, when flying it, you can bring yourself to blow open some harmless trader ... :twisted:
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2269
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

lovely work - except for the colour scheme, lol, man that's...uh...vivid!!

the only thing to consider, is if it's in scale in Oolite, going by the comic illo there, it's gonna by tiny.
User avatar
snork
---- E L I T E ----
---- E L I T E ----
Posts: 551
Joined: Sat Jan 30, 2010 4:21 am
Location: northern Germany

Post by snork »

To put it into Oolite : attach a laser. 8)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

I'm going to make it a very rare NPC ship - super fast and will injector and jump out at the first sign of trouble - no weapons - Jonnie R's not that kind of pilot...

Anyway, proper noobie question - putting this into Oolite - I guess I need to install Python - yes? Then find the python scripts that take my AC3D exported OBJ file and do something whizzy with it. Will somebody point me at the right thread/download links? :oops: :roll: :oops: Nearly four years on this forum and this will be my first ship - tragic...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

DaddyHoggy wrote:
Nearly four years on this forum and this will be my first ship - tragic...
In my case it could be forty years and I still wouldn't be able to produce a ship. Well done!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

DaddyHoggy wrote:
Will somebody point me at the right thread/download links? :oops: :roll: :oops: Nearly four years on this forum and this will be my first ship - tragic...
'Course, it had to be on the wiki... the cached version should be reachable here,:

http://webcache.googleusercontent.com/s ... en&strip=1

this also contains a link to the current version of obj2dattex.py (needing python 2.6 - right click, save).

Tsk, it looks like that 'you'll make an OXP' curse is working, after all... ;)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Kaks wrote:
DaddyHoggy wrote:
Will somebody point me at the right thread/download links? :oops: :roll: :oops: Nearly four years on this forum and this will be my first ship - tragic...
'Course, it had to be on the wiki... the cached version should be reachable here,:

http://webcache.googleusercontent.com/s ... en&strip=1

this also contains a link to the current version of obj2dattex.py (needing python 2.6 - right click, save).

Tsk, it looks like that 'you'll make an OXP' curse is working, after all... ;)
Thanks Kaks - the cache link works - going to go download python now.

What does this line mean (exactly):
to obj( mtl texture) and convert to *.dat format
What's an "mtl texture" - I don't recall being given any texture options as part of my export from .ac to .obj from AC3D


EDIT: Have also found a .mtl file in same directory as .obj file - doesn't seem to be much in it (1KB file), but until proven otherwise will presume this is normal!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

DaddyHoggy wrote:
What's an "mtl texture" - I don't recall being given any texture options as part of my export from .ac to .obj from AC3D
“MTL” files define materials for OBJ files. They aren’t textures, just text files telling us what texture to use.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2269
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

DH,
when you run the OBJTODAT it'll have a line at the top of the DAT file like this :

// original file: "biggerwolf3.obj"
//
// model size: 113.472 x 34.016 x 122.835
//
// textures used: ['metalliwolfskin.png']


the textures will be the texture from your modelling program, i usually rename mine (cos it's usually originally called "testskin" or summat) for the game so here i've overtyped it w/ "metalliwolfskin.png", which is the texture that will be in the OXP folder.
same as per the bottom of the DAT, thre's a wad of stuff mapping textures to verts etc :

TEXTURES
metalliwolfskin.png 1.0 1.0 0.00430 0.73089 0.04901 0.78781 0.13034 0.76914
metalliwolfskin.png 1.0 1.0 0.00430 0.73089 0.13034 0.76914 0.13034 0.73107
metalliwolfskin.png 1.0 1.0 0.20874 0.37598 0.00430 0.60212 0.13034 0.60231
metalliwolfskin.png 1.0 1.0 0.00430 0.60212 0.00430 0.73089 0.13034 0.73107



again, i just search/replace whatever was in there w/ the name of the texture file that's going to be in the OXP.

when you create/export a file in OBJ you get an OBJ file and an MTL file, but it's not relevant to the OXP beyond this point.
User avatar
Zieman
---- E L I T E ----
---- E L I T E ----
Posts: 680
Joined: Tue Sep 01, 2009 11:55 pm
Location: in maZe

Post by Zieman »

If you open the .mtl file, you'll see something like this (this one exported from Wings3D):

Code: Select all

# Exported from Wings 3D 1.1.12
newmtl cube2_auv
Ns 100.0
d 1.0
illum 2
Kd 1.0 1.0 1.0
Ka 1.0 1.0 1.0
Ks 1.0 1.0 1.0
Ke 0.0 0.0 0.0
map_Kd cube2_auv.tga
I just replace cube2_auv.tga with *mytexturename*.png before running obj2dattex.py (the python script works via command prompt in WinXP), so the resulting .dat will have correct texture references already in place.
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Or alternatively, use the 'right' texture .png to begin with!

If you use 'texturefilenameusedinsideoolite.png' inside your 3d progam, you don't need the extra steps mentioned by KW & Zieman. :)



And yes, it's normal. When you export to .obj you actually generate two files instead of one: .obj & .mtl
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Killer Wolf wrote:
DH,
when you run the OBJTODAT it'll have a line at the top of the DAT file like this :

// original file: "biggerwolf3.obj"
//
// model size: 113.472 x 34.016 x 122.835
//
// textures used: ['metalliwolfskin.png']


the textures will be the texture from your modelling program, i usually rename mine (cos it's usually originally called "testskin" or summat) for the game so here i've overtyped it w/ "metalliwolfskin.png", which is the texture that will be in the OXP folder.
same as per the bottom of the DAT, thre's a wad of stuff mapping textures to verts etc :

TEXTURES
metalliwolfskin.png 1.0 1.0 0.00430 0.73089 0.04901 0.78781 0.13034 0.76914
metalliwolfskin.png 1.0 1.0 0.00430 0.73089 0.13034 0.76914 0.13034 0.73107
metalliwolfskin.png 1.0 1.0 0.20874 0.37598 0.00430 0.60212 0.13034 0.60231
metalliwolfskin.png 1.0 1.0 0.00430 0.60212 0.00430 0.73089 0.13034 0.73107



again, i just search/replace whatever was in there w/ the name of the texture file that's going to be in the OXP.

when you create/export a file in OBJ you get an OBJ file and an MTL file, but it's not relevant to the OXP beyond this point.
The start of my dat file looks like this:

Code: Select all

// output from Obj2DatTex.py Wavefront text file conversion script
// (c) 2005 By Giles Williams
// 
// original file: "tycho8_obj.obj"
// 
// model size: 4.614 x 3.214 x 9.500
// 
// textures used: ['tycho8.png']
// 
NVERTS 984
NFACES 1352
I've just realised that my ship may be a realistic in the real world (i.e. a small 8 year old boy could fit in to the cockpit) but in Oolite terms its teeny-weeny - much rescaling needed! :roll:

By the way is 1352 a lot for number of faces? (I know it's not a lot in "modern" gaming terms - but is it too many for Oolite? I hear this number 800 in the back of my mind...

The end of my .dat file looks like this:

Code: Select all

TEXTURES
tycho8.png	1.0 1.0	0.12519 0.51155	0.01888 0.51778	0.05076 0.28801
tycho8.png	1.0 1.0	0.12519 0.51155	0.05076 0.28801	0.07139 0.27339
tycho8.png	1.0 1.0	0.12519 0.51155	0.07139 0.27339	0.07077 0.26002
tycho8.png	1.0 1.0	0.12519 0.51155	0.07077 0.26002	0.14518 0.25566
Which then goes along the same lines for another 1300+ lines (same as the no. of faces I guess?)

My .mtl file looks like this:

Code: Select all

newmtl acmat_0
Kd 1 1 1
Ka 0.2 0.2 0.2
Ks 0.2 0.2 0.2
Ns 128
Tr 0
map_Kd tycho8.png
newmtl acmat_1
Kd 1 1 0
Ka 0.2 0.2 0.2
Ks 0.2 0.2 0.2
Ns 128
Tr 0
map_Kd tycho8.png
newmtl acmat_2
Kd 1 0 0
Ka 0.2 0.2 0.2
Ks 0.2 0.2 0.2
Ns 128
Tr 0
map_Kd tycho8.png
newmtl acmat_3
Kd 0.533333 0.533333 0.533333
Ka 0.2 0.2 0.2
Ks 0.2 0.2 0.2
Ns 128
Tr 0
map_Kd tycho8.png
newmtl acmat_4
Kd 0 0 1
Ka 0.2 0.2 0.2
Ks 0.2 0.2 0.2
Ns 128
Tr 0
map_Kd tycho8.png
So, basically I think this model for Oolite is WWWWAAAAYYYYYY too small - rescaling is easy, and has too many polygons - harder to fix.

Can somebody confirm this for me?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Post Reply