Loading textured Oolite objects into 3d program

Off topic discussion zone.

Moderators: winston, another_commander, Cody

Post Reply
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2028
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Loading textured Oolite objects into 3d program

Post by maik »

I started playing a bit with Apple's iBooks Author and it can show 3D objects in Collada (.dae) format. Knowing nothing about 3D modeling I took a look at some of the freely available modelers (Sketchup, Wings, Blender), downloaded Griff's .obj models, and tried to get them into the modeling applications. The intention is to export them into .dae format.

I can load the bare model, but how do I go about texturing it with the .pngs? Or if I use the dat2obj converter, is there any way I can use the resulting .mtl definitions in any of those modelers?

Pointers in the right direction are much appreciated!

Cheers,
-Maik
User avatar
Ironfist
Commander
Commander
Posts: 218
Joined: Tue Jun 28, 2011 2:16 pm
Location: London

Re: Loading textured Oolite objects into 3d program

Post by Ironfist »

maik,

Please be careful in the use of this software, Apple's EULA can end up being a bit of a problem. See the following link and you can find a lot more on-line. I don't think it will be a problem, but I think it might be against the Creative Commons License terms.

http://betanews.com/2012/01/22/apples-i ... you-think/

Ironfist
64bit Mint 10 and Win 8 64bit on E8400 at 3.6GHz - ATI HD5750 graphics.
Concentration is the ability to think of absolutely nothing when it is absolutely necessary.
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Loading textured Oolite objects into 3d program

Post by Griff »

Hi Maik
Here's how to get the textures onto the obj's in Wings
1. First of all in Wings Load the ship .obj
File -> Import -> Wavefront (.obj)...
Image
As you've seen, they import with just the default material (a blank grey) applied

2. Load your ships texture image (in my shipset these usually have 'Diffuse' somewhere in the filename)
File -> Import Image...

3. Open the 'Outliner' window in wings
Window -> Outliner
This will give you a list of your current projects surface 'materials' and also any image files you currently have loaded
To apply the image to your ship, just drag & drop the image from it's place in the outliner window list and drop it on the Material
above it in the list (this material will have a different name depending on what ship you have loaded, but it will always have an
icon of a M in a white box
As you let go of the mouse button a 'Texture Type' pop-up will appear, choose 'Diffuse' from the list

Image

4 Editing UV's
if you want to edit the ship's UV's, first select the entire Object (click on it after first clickiing on the "Select Entire Object" button - The red cube on the top menu bar)
Your whole object turns red to show it is selected (you can de-select objects by pressing the space bar), with the object selected go to
Window -> UV Editor Window on the Menu
The UV Layout will appear with the the ships texture already loaded as its background
Image


5 Re-saving the obj and keeping it obj2dattex.py friendly
I don't know if it's me or not but the obj2dattex.py script doesn't seem to work with objects with more than one material
If you want to run this ship through the script, then drag & drop the image onto the Default material icon in the outliner window and delete any other materials (ones with a "White Box M" icon) - you may no longer see the texture being displayed on the ship at this point, bit it all seems to work OK in the final .dat
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2028
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Loading textured Oolite objects into 3d program

Post by maik »

Thanks, Griff, works like a charm!
Ironfist wrote:
Please be careful in the use of this software, Apple's EULA can end up being a bit of a problem.
I will carefully review it if I ever get anywhere near to making something publicly available. For now, I'm just intrigued by the idea of authoring Lave Academy textbooks on piloting a Cobra Mk 3 and playing around with the options that iBook Author offers.
Post Reply