sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Closed Thread
 
Thread Tools
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Perhaps useful:

Try the script:
http://jmsoler.free.fr/util/blenderfile/py/uvpaint08.py
The official page :
http://jmsoler.free.fr/didacticiel/b...ainting_en.htm

- 08/27/2005 -
Short keys Documentation

KEYS
M : display/hide GUI Menu
D : Set/Unset Documentation
S : Save current window content in a tga file
Q or ESC : Exit
T : Set/Unset Transparency
L : Set/Unset lines
E : Set/Unset outline
B : Set lines color to Black
W : Set lines color to white
ARROW : displace model on
UP/DOWN/LEFT/RIGHT side
PADPLUS : increase ZOOM
PADMINUS : decrease ZOOM
HOME : cancel display modifs

Mouse button
RIGHTMOUSE : same as arrows
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#1   Old 21-Apr-04, 15:26   


Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
yay that rules!!
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#2   Old 21-Apr-04, 15:29   
dante's Avatar
dante dante is offline
Member
 
Join Date: Dec 2002
Posts: 2,278
Could we maybe have a little more of an explaination?

Looks like a neat script. Yours always are, jms

dante
............................................
germanSpeak: These are quite level.
#3   Old 21-Apr-04, 22:00   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
since i have been wanting a feature like this, i will explain the usefulness as I see it.. Basically you could use vertex paint, also face select, to map out your 'paintjob' before doing an unwrap. say I have a head and i want to do a sphere unwrap on it. i do the sphere unwrap, and all of a sudden I have no clue which face is where, UV coord-wise. With this script that is no longer a problem. You will know exactly where your faces were unwrapped too, and they will be half painted already. Anyway I am going to try this out in one sec,...
<edit> ok, it works. cool! jms thanks!
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#4   Old 21-Apr-04, 23:14   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Excellent explanation.

New version, with abiliity to save a tga file. The quality of colors
is not as good as we could hope for it because the
GL_BYTE format returns only value between 0 and 127, not
between 0 and 255. This value has to be multiplied by
two.

http://jmsoler.free.fr/util/blenderf.../uvpaint02.zip
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#5   Old 21-Apr-04, 23:40   
z3r0 d's Avatar
z3r0 d z3r0 d is offline
Moderator
 
Join Date: May 2002
Location: /dev/null
Posts: 7,270
actually I see another use for this

if you get a good lighting setup (control+z view mode) and can make good vertex colors with it, this would give a good start for when painting textures.

like as suggested at
http://www.3dtotal.com/team/Tutorial...textures_1.asp
............................................
For fast-acting relief, try slowing down.
#6   Old 22-Apr-04, 00:07   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
seems like that use would be particularly good with the game engine, because you could sort of paint in the shadow. I didn't try it with a light map yet but that is a really interesting idea. btw for anyone who can't get it to run, i noticed you have to have your object selected, or the UI won't come up.
<edit> I tried to save, but an error came up relating to the save destination, so I changed that line from D/:test.tga to C/:test.tga, and it saved ok, but then my computer wouldn't read it, so I went back and made sure my output format was set to tga, and tried it again. Same thing, computer would not read the tga. Of course I can always take a screenshot though, so it's not preventing me from using it anyway.
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#7   Old 22-Apr-04, 00:17   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
I am still playing with this,....man, it is soooooo useful. This is so cool jms. Pleeeease someone fix the export problem,....this script is a major UV mapping development IMO. wow!!!
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#8   Old 22-Apr-04, 03:13   
z3r0 d's Avatar
z3r0 d z3r0 d is offline
Moderator
 
Join Date: May 2002
Location: /dev/null
Posts: 7,270
few things to do

line input for where the file goes, probably default to the location of the .blend file

with a full python install (os module avalible) would be
Code:
import os default_file = Blender.sys.dirname(Blender.Get ("filename")) + os.sep + objname
but the os module probably isn't needed much, and this line needs some minor changes (you don't use default_file or objname, you ought to be able to get the idea)

repeat what goes beyond the uv coordinates, this may mean you have to render multiple times. uv coordinates on textures wrap around the edge, would be helpful if this could too
............................................
For fast-acting relief, try slowing down.
#9   Old 22-Apr-04, 06:29   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Quote:
Originally Posted by Modron
I am still playing with this,....man, it is soooooo useful. This is so cool jms. Pleeeease someone fix the export problem,....this script is a major UV mapping development IMO. wow!!!
Curious.

Gimp reads the file without problem, but not irfanview
nor in photoshop 4.0 . These TGA files appear
in the blender image browser .
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#10   Old 22-Apr-04, 08:43   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
Ok, i found the error!!
irfanview sees the pict now, and photoshop too.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#11   Old 22-Apr-04, 09:08   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
Awesome, I'm glad it works now because i will use this constantly...check out this test I did,...ok, I know rocks are boring subject, but because of the uneven surface of the rocks it would be a matter of guessing to properly UV map them without this, so I used rocks for a test. It's just a simple sphere unwrap with the Vpaint UV coords put through some photoshop filters.
<edit> and here's a quick bird I did too.

<edit> in case I didn't make it noticable enough, the depressed areas are dark, and the raised areas are light.
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#12   Old 22-Apr-04, 09:22   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
It seems really useful.
Corrected file:
http://jmsoler.free.fr/util/blenderf.../uvpaint03.zip
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#13   Old 22-Apr-04, 10:15   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
the new one works great. here is what Z3R0d was suggesting, using it to make a paintable light map. works well I'd say.
<edit> I just did this same thing to suzanne! lol ( really cool! )
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#14   Old 22-Apr-04, 11:29   
nozzy's Avatar
nozzy nozzy is offline
Member
 
Join Date: Oct 2001
Location: Sweden,Stockholm.
Posts: 202
Great script jms, very useful as your scripts always are

/nozzy
#15   Old 22-Apr-04, 16:19   
steve's Avatar
steve steve is offline
 
Join Date: Nov 2001
Location: Grand Rapids, MI, United States
Posts: 55
Thanks sooooooooo much. This script has made my seemingly impossible job of painting on the UV map for my really complex monster model really short work. I will post a picture when I finish.

Thanks again,
Steve
............................................
www.o9studios.com
#16   Old 22-Apr-04, 22:03   
Modron's Avatar
Modron Modron is offline
Member
 
Join Date: Aug 2003
Posts: 11,047
I just realized a cool thing, and I tested it to make sure it works,...here's what you do for super accuracy on a low poly mesh,...
first set the UV coords of your low poly mesh and run the script on it to make sure everything is in the right place,....then,....
put your original mesh aside, and duplicate it, then take the duplicate mesh, which will have the same UV coords, and subdivide it until it is quite vert heavy,....this is so we can paint in details,....then paint it, and run the script on it. now you will have a QUITE detailed map, and the UV coords will fit perfectly with your original low poly mesh. If you are a good painter, you can do most of the paint job right on your mesh from within blender. Game makers rejoice!
............................................
Here's a nodes tutorial on Using UV mapping to define material values: http://blenderartists.org/forum/showthread.php?t=73088
And here's another nodes tutorial on how to do a custom sequence wipe: http://blenderartists.org/forum/showthread.php?t=90989
#17   Old 25-Apr-04, 06:47   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
new improvements:
http://jmsoler.free.fr/util/blenderf.../uvpaint04.zip
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#18   Old 25-Apr-04, 13:24   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,475
http://jmsoler.free.fr/util/blenderf.../UVpaint05.zip

#----------------------------------------------
# Official page :
# http://jmsoler.free.fr/didacticiel/b...uvpainting.htm
# Communicate problems and errors on:
# http://www.zoo-logique.org/3D.Blende...oup=3D.Blender
#---------------------------------------------
# this script is released under GPL licence
# for the Blender 2.33 scripts distribution
#----------------------------------------------
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#19   Old 02-May-04, 11:25   
JA-forreal's Avatar
JA-forreal JA-forreal is offline
Member
 
Join Date: Sep 2003
Posts: 1,373
This seems unreal it's so good! Thanks jms!
............................................
“Blender, Alternative 3D”

-Itchy render fingers
#20   Old 05-May-04, 01:36   
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:36.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists