Wings3D Texture Question...

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
Phoenix4
Dangerous
Dangerous
Posts: 85
Joined: Wed Feb 01, 2006 1:35 pm

Wings3D Texture Question...

Post by Phoenix4 »

Hi guys,

I'm still plodding along learning Wings3D in my spare time, but I have a couple of questions re. texturing.

Firstly, I've seen a couple of walkthroughs on websites where they show an object using multiple texture sheets instead of just one. Is this supported by Oolite?

Secondly, can anyone suggest any recommend texturing tutorials they have used - from building a ship through to final product?

Aside from space probes I've put together a few ships, one of which is shown below as a WIP, but the whole texturing process is confusing me a little. :oops:

Cheers!
Px4

The cockpit is facing to the lower left - the recessed portion:
Image

Underside:
Image
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 »

Oolite can use more than one texture file per model, however obj2datTex.py will only export the first texture.

Nice ship! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Post by Smivs »

Hi Phoenix4,
Very nice ship! :)
I don't know if you've had a look at my new Texture Tutorial but you might find it helpful.
Oolite can support more than one 'texture' for a ship, to be specific (for non-shader graphics) a diffuse_map (the ship's 'skin'), an illumination_map (for spotlighting etc) and an emission_map (for lights and 'glows'). However it is more efficient, and therefore recommended, to combine the illumination_map and emission_map into a combined emission_map.
My tutorial explains in detail how to do this.
I can't advise you on Shaders I'm afraid. You'll need someone like Griff for that.
Anyway, I hope this helps.
Cheers,
Smivs.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Phoenix4
Dangerous
Dangerous
Posts: 85
Joined: Wed Feb 01, 2006 1:35 pm

Post by Phoenix4 »

Cheers guys, thanks for the info and compliments! :D

@Smivs, I'll definitely follow your tutorial and see what happens - thanks!

@Kaks. not quite sure what you mean by "Oolite can use more than one texture file per model, however obj2datTex.py will only export the first texture"

Does that mean that any additional texture files will be lost? - I'm not sure what the obj2datTex.py actually does.

Thanks,

Px4
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 »

I'm referring to this:

https://bb.oolite.space/viewtopic.php?p=28362

Hope that after reading that thread everything will make sense! :)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Phoenix4
Dangerous
Dangerous
Posts: 85
Joined: Wed Feb 01, 2006 1:35 pm

Post by Phoenix4 »

Aha! Cheers Kaks, thanks for the link :D

Px4
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Kaks wrote:
I'm referring to this:

https://bb.oolite.space/viewtopic.php?p=28362

Hope that after reading that thread everything will make sense! :)
That link is from 2007. The current python script does support more than one texture, I used it often on multi texture ships. Only the converter dat->obj is old and only converts one texture. But when starting with wings you won't need conversion in that direction.

The most current converters are found here. The drop converters are mac only. The two you are interested in are the bottom two. Obj2DatTexNorm.py will only generate 1.74+ files, the Obj2DatTex.py will create dat foles usable for all oolite versions.

And Phoenix4, Oolite wants triangles. So before you start exporting you must divide all four-angles in triangles. Wings has a command to do that in one click.
Phoenix4
Dangerous
Dangerous
Posts: 85
Joined: Wed Feb 01, 2006 1:35 pm

Post by Phoenix4 »

Oolite wants triangles. So before you start exporting you must divide all four-angles in triangles. Wings has a command to do that in one click.

Thanks, I'll check that out.

One other thing re. textures. I've just tried the following in Wings but wonder if Oolite supports it - I took a cube and textured it then saved the file. Afterwards I opened a blank file and created a cylinder and textured that too (both in Photoshop). I then used the Merge command in Wings to bring them both together and then combined them as a single object.

Question is, will Oolite support a model created that way? It gives a lot more control over each piece of a model in my opinion, but is there a better way?

Thanks,
Px4
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Yes it will, as in essence merging them will make them a single object. But if they have separate textures associated with them then the previously made comments about obj2dat applies.
User avatar
Selezen
---- E L I T E ----
---- E L I T E ----
Posts: 2530
Joined: Tue Mar 29, 2005 9:14 am
Location: Tionisla
Contact:

Post by Selezen »

Just for reference, the command to turn quads into triangles is Tesselate->Triangulate. It's in the right click menu when in face mode.
Phoenix4
Dangerous
Dangerous
Posts: 85
Joined: Wed Feb 01, 2006 1:35 pm

Post by Phoenix4 »

Thanks for the clarification guys! :D

The separate texture issue is interesting. I guess I'll just have to use a larger texture file to incorporate all the various graphic elements.

Cheers!
Px4
Post Reply