It's interesting, because the article also talks about the licenses:
Digging through ÔÇ£freeÔÇØ sites to sort the ÔÇ£free beerÔÇØ from the ÔÇ£free speechÔÇØ content is quite a chore. Many of the sites are not useful for free culture projects, and many make it very difficult to tell. Fortunately for you, I took notes! Here you will find 8 sites with free-licensed content, 8 more with licenses that youÔÇÖll probably find acceptable for many projects, and 20 others that might be useful on some projects if youÔÇÖre not a purist. There are also 22 sites I have to warn you away from, because their terms are incompatible with use in free-licensed productions. [..]
A solution to that is to merge the textures in photoshop, and the transform the UV space for each piece accordingly.
The following code is in python and supports .OBJ files only:
print 'linear transform a model`s uv space, by Beherith (email@example.com)' print 'usage: python uv_linear_transform_obj.py [modelname.obj] [a] [b] [c] [d] [newmodelname.obj]' print 'where A is the multiplier and B is the offset of the U coords' print 'and C is the multiplier and D is the offset of the V coords' print 'Unew=U*a+b Vnew=V*c+d' import sys infile=open(sys.argv,'r').readlines() outfile=open(sys.argv,'w') a=float(sys.argv) b=float(sys.argv) c=float(sys.argv) d=float(sys.argv) for line in infile: if 'vt' in line: linesplit=line.split() u=float(linesplit) v=float(linesplit) u2=a*u+b v2=c*v+d outfile.write('vt '+str(u2)+' '+str(v2)+'\n') else: outfile.write(line) print 'Done!'
Users browsing this forum: No registered users and 1 guest
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