TVPaint Home Update TVP Animation TVPaint Gallery Tutorials F.A.Q. Newsletter

Vanishing Point Tool

Contents shared by users to users ! (you need to be registered to read posts in this section)

Vanishing Point Tool

Postby v.veidt » Wed Jun 27, 2012 8:42 am

I've made this brush to serve as a vanishing point tool for creating perspective grids. It's a fairly simple set of radiating lines, which is scalable and can be modified by the Tint brushes in the Sketch Panel. I hope you find it useful.

Spoiler : :
vp1.png
vp3.png


vanishingpoint.tvpx

This file was made in TVP 9.5 Standard if it matters.
You do not have the required permissions to view the files attached to this post.
v.veidt
 
Posts: 61
Joined: Mon Oct 19, 2009 2:23 am

Re: Vanishing Point Tool

Postby Elodie » Wed Jun 27, 2012 9:53 am

Thank you for sharing :)
/!\ Never give your activation codes to someone else than a TVPaint team's member
/!\ Ne donnez jamais vos codes d'activation à quelqu'un d'autre qu'un membre de l'équipe TVPaint
/!\ TVPaintアクティベーションコードは貴方だけのものです。決して他人に口外しないで下さい。
User avatar
Elodie
 
Posts: 5099
Joined: Tue Jan 06, 2009 11:53 am
Location: Metz

Re: Vanishing Point Tool

Postby Animark » Wed Jun 27, 2012 2:00 pm

Great! Thumbs up!

... and thanks a lot :-)
TVPaint 10.0.14 - Win7/64 - Quadcore
User avatar
Animark
 
Posts: 339
Joined: Thu Oct 16, 2008 5:26 pm
Location: Berlin

Re: Vanishing Point Tool

Postby lemec » Thu Jul 12, 2012 11:15 pm

This is a rather heavily modified version of KylerK's vanishing point tool.

Spoiler : Kyler's tutorial video :


This version automatically switches you to the propelling pencil and restores your brush afterwards.
It makes use of the tv_undoOpenStack and tv_undoCloseStack commands to avoid clobbering your undo buffer
It locks/unlocks the display during operation for faster results.
It also uses tv_zLine to fade the opacity at the center point to eliminate the "fuzzy navel" artifact at the vanishing point

vp0.png

Code: Select all
Param Circle

Parse result command Cx Cy r button

tv_getActiveTool
oldTool = Result

if r>800
   t=800
Else
   t=r
End

tv_projectInfo
parse Result name width height extra

maxLen = sqr(width*width + height*height)

tv_propelling mode "color" power 100 opacity 100 dry 0 aaliasing 1 gradient 0 cpower "10;2 0 1 0 0 1 1 "
tv_undoOpenStack
tv_lockDisplay
FOR i = 1 TO t
   angle = i * (360 / t)
   x1=COS(angle) * maxLen
   y1=SIN(angle) * maxLen

   tv_ZLine Cx Cy x1+Cx y1+Cy button 0 255
END
tv_UnLockDisplay
tv_cmd oldTool
tv_undoCloseStack "Perspective Guide"


This one is a little different in that it randomizes the angle and the distance to the center point. It doesn't affect the current tool, so it's useful for various zooming effects.

vp1.png

Code: Select all
Param Circle

Parse result command Cx Cy r button

tv_projectInfo
parse Result name width height extra
maxLen = sqr(width*width + height*height)

r = 800 * (r / (maxLen / 3))

if r>800
   t=800
Else
   t=r
End

tv_undoopenstack
tv_LockDisplay
FOR i = 1 TO t
   r1 = rnd(maxLen / 2)
   o2 = 255 * (1 - (r1 / (maxLen / 2)))
   angle = rnd(3600)
   x2=COS(angle/10)
   y2=SIN(angle/10)
   x1=x2 * maxLen
   y1=y2 * maxLen
   x2 = x2 * r1
   y2 = y2 * r1
   
   tv_ZLine x2+Cx y2+Cy x1+Cx y1+Cy button 0 o2
END
tv_UnLockDisplay
tv_undoclosestack "Radial Burst"
You do not have the required permissions to view the files attached to this post.
Last edited by lemec on Fri Jul 13, 2012 7:57 pm, edited 3 times in total.
(Win7x64, TVP Pro 9.5 32-bit)
User avatar
lemec
 
Posts: 1453
Joined: Sun Feb 19, 2006 10:54 am
Location: Toronto, Ontario, Canada

Re: Vanishing Point Tool

Postby lemec » Thu Jul 12, 2012 11:32 pm

vPForestTool.png


vPForest.png
You do not have the required permissions to view the files attached to this post.
(Win7x64, TVP Pro 9.5 32-bit)
User avatar
lemec
 
Posts: 1453
Joined: Sun Feb 19, 2006 10:54 am
Location: Toronto, Ontario, Canada

Re: Vanishing Point Tool

Postby Elodie » Fri Jul 13, 2012 8:55 am

Wow, very nice :D
/!\ Never give your activation codes to someone else than a TVPaint team's member
/!\ Ne donnez jamais vos codes d'activation à quelqu'un d'autre qu'un membre de l'équipe TVPaint
/!\ TVPaintアクティベーションコードは貴方だけのものです。決して他人に口外しないで下さい。
User avatar
Elodie
 
Posts: 5099
Joined: Tue Jan 06, 2009 11:53 am
Location: Metz

Re: Vanishing Point Tool

Postby v.veidt » Fri Jul 13, 2012 9:39 am

Wow, thanks for all the work, especially with the "fuzzy navel" issue. I suppose I should really learn to script for TVP.

Not to seem belligerently ignorant, but how does one implement these wonderful scripts?
v.veidt
 
Posts: 61
Joined: Mon Oct 19, 2009 2:23 am

Re: Vanishing Point Tool

Postby lemec » Fri Jul 13, 2012 10:44 am

1: create a new custom panel action (right click an empty spot on an EDITABLE custom panel and choose Add Action)
2: edit the new action (right click it)
3: Choose Embedded Script
4: copy/paste the script of your choice into the script window that comes up.
(Win7x64, TVP Pro 9.5 32-bit)
User avatar
lemec
 
Posts: 1453
Joined: Sun Feb 19, 2006 10:54 am
Location: Toronto, Ontario, Canada

Re: Vanishing Point Tool

Postby v.veidt » Sat Jul 14, 2012 12:09 am

I can't seem to get either of these scripts to work. The Param Circle command is definitely working and I don't get an error message, but there is no result when I use the action. Is there any reason this would not work on Mac OS X?

Update: It works flawlessly on Windows. Now I'm extra glad I switched over. Thanks.
v.veidt
 
Posts: 61
Joined: Mon Oct 19, 2009 2:23 am

Re: Vanishing Point Tool

Postby kariP » Tue Jul 24, 2012 9:34 am

They both seem to work on my mac, very nice, especially the perspective tool!
I adjusted the opacity of the endpoint from 0 to 3. Now it creates a small dot into the horizon, which is a bit clearer for me. And with low amount of lines, no funny stuff on the navel area either. A Big thank you for the script!
Kari Pieskä
macbook pro 15" osx 10.7.5 - tvp pro 10.0.14 - 32 bits
kariP
 
Posts: 77
Joined: Tue Jul 20, 2010 9:14 pm
Location: Turku, Finland

Re: Vanishing Point Tool

Postby lemec » Tue Jul 24, 2012 9:56 am

Hm. Maybe I should make a version that will set the vanishing point to the intersection of two non-parallel lines. Might be useful for getting perspective guides for imagery that has an existing vanishing point.
(Win7x64, TVP Pro 9.5 32-bit)
User avatar
lemec
 
Posts: 1453
Joined: Sun Feb 19, 2006 10:54 am
Location: Toronto, Ontario, Canada

Re: Vanishing Point Tool

Postby Fabrice » Tue Jul 24, 2012 10:05 am

hey Mark and Vincent Veidt, excellent job, as usual ;)
Fabrice Debarge, Sales Manager, TVPaint Team
Ask me if you need animbruhes !
http://www.tvpaint.com/
User avatar
Fabrice
 
Posts: 4162
Joined: Tue Jul 17, 2007 5:00 pm

Re: Vanishing Point Tool

Postby Peter Wassink » Wed Aug 08, 2012 5:09 pm

lemec wrote:Hm. Maybe I should make a version that will set the vanishing point to the intersection of two non-parallel lines. Might be useful for getting perspective guides for imagery that has an existing vanishing point.

you mean a version with an input of four points that would create a grid to match an existing image?
cool idea!
Peter Wassink - 2D animator

• win 7 - 64bit - TVPaint 10.0.11 Pro (both 32 & 64 bit versions)
• win vista - 32 bit - TVPaint 10.0.06 Pro
User avatar
Peter Wassink
 
Posts: 2590
Joined: Fri Feb 17, 2006 5:38 pm
Location: Amsterdam

Re: Vanishing Point Tool

Postby slowtiger » Wed Aug 08, 2012 6:26 pm

+1. That's something so fundamental, yet I haven't seen it in any graphics program yet: let the user create a rectangle or tetragon, and the script would create a grid of that. Adjust the original tetragon, and the grid changes with it.

grid.png
You do not have the required permissions to view the files attached to this post.
TVP 10.0.11, Mac Pro Quadcore 3 GHz, 16 GB RAM, OS 10.6.8, QT 7.6.6
User avatar
slowtiger
 
Posts: 1245
Joined: Thu May 08, 2008 11:10 pm
Location: berlin, germany

Re: Vanishing Point Tool

Postby Fabrice » Thu Aug 09, 2012 2:32 pm

Maybe it can help :
The vanishing points are usable in the warp tool.
So if you draw a grid on the screen, you can use the warp tool to put it in perspective, using the vanishing points of the warp tool.

nb : This kind of grid is in the ToDo list for a future 10.x version. with the complete renewal of grid, guides, etc ... (old code ...)
Fabrice Debarge, Sales Manager, TVPaint Team
Ask me if you need animbruhes !
http://www.tvpaint.com/
User avatar
Fabrice
 
Posts: 4162
Joined: Tue Jul 17, 2007 5:00 pm

Next

Return to Contents Sharing

Who is online

Users browsing this forum: No registered users and 1 guest