View topic - Convert UV maps into paths for Photoshop



All times are UTC + 1 hour


Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: 04 May 2010, 07:52 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
I made a tool that can convert any .obj file's UV map into paths (vector masks) . It will outline each face on a document of your specified size, so you can then texture the faces easily. It exports an Adobe Illustrator file. Most graphics software can read then, and then can even take unions of paths, which will result in a single outline for each UV fragment.

Image

Makes for some easy rapid texturing with the illustration software of your choice.

Source:
http://pastebin.com/6Pm2HKBV

Oh, you need python 2.6 installed. Then take the source code, and paste it into a text file with a .py extension.
Make sure to change the object file name and the sizes to your info.
Double click on .py file (make sure the .obj file is next to it) and it will net you an .ai file.


Attachments:
obj2illustrator.7z [1.33 KiB]
Downloaded 28 times
Top
 Offline Profile  
 
PostPosted: 04 May 2010, 08:20 
Moderator
User avatar

Joined: 23 Nov 2005, 06:16
Location: Dunedin, New Zealand
You know what you have to do now, right?


Top
 Offline Profile  
 
PostPosted: 04 May 2010, 08:24 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
What do I have to then, eh?


Top
 Offline Profile  
 
PostPosted: 04 May 2010, 08:27 
Moderator
User avatar

Joined: 23 Nov 2005, 06:16
Location: Dunedin, New Zealand
Make a converter in the opposite direction. :wink:


Top
 Offline Profile  
 
PostPosted: 04 May 2010, 08:29 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
The opposite does not make sense :( as there is no unique mapping of 2d space to 3d space, especially without vertex position information...


Top
 Offline Profile  
 
PostPosted: 04 May 2010, 08:33 
Modeler
User avatar

Joined: 28 Apr 2005, 20:07
Location: Next to the girl with kaleidascope eyes
Um... sorry, how do we use this? As in, install it. I have no idea what to do with the source you linked to. This is something I've wanted for ages.


Top
 Offline Profile  
 
PostPosted: 04 May 2010, 08:37 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
Oh, you need python 2.6 installed. Then take the source code, and paste it into a text file with a .py extension.
Make sure to change the object file name and the sizes to your info.
Double click on .py file (make sure the .obj file is next to it) and it will net you an .ai file.

I just made my first proper model, and was surprised such a tool has not existed (or i have not known about it), so i spliced the UV data from obj files (chosen cause it was plain text) into illustrator file (also plain text, supported by all adobe apps)

Edit: It has come to my attention that this kind of export is possible from Maya.


Top
 Offline Profile  
 
PostPosted: 05 May 2010, 07:00 
Damned Developer
User avatar

Joined: 01 Jun 2006, 12:15
Location: Banned user for reason “Do not post pictures of people fucking cars”
Guessmyname wrote:
Um... sorry, how do we use this? As in, install it. I have no idea what to do with the source you linked to. This is something I've wanted for ages.
Texporter plugin for 3ds max does the same, except that it outputs a PSD file. I'd suggest killing off all overlapping UVs before using either tool.


Top
 Offline Profile  
 
PostPosted: 05 May 2010, 07:26 
Tournaments Moderator
User avatar

Joined: 08 Dec 2007, 17:39
Location: UK - England
Wow, you're using Fireworks. I thought I was the only one in the world! Best. Application. Ever.


Top
 Offline Profile  
 
PostPosted: 20 May 2010, 04:32 
Zero-K Developer
User avatar

Joined: 10 Sep 2008, 02:11
Location: In search for TheTruth (TM)
Could you make a Blender plugin version of this, please?

Jazcash wrote:
Wow, you're using Fireworks. I thought I was the only one in the world! Best. Application. Ever.
Kaiser uses it, too.


Top
 Offline Profile  
 
PostPosted: 20 May 2010, 08:55 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
Im sorry, but I heard blender and max already have their own plugins for this. This is just a tiny script. And its very easy to use.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.