Vanishing Point Tool
Vanishing Point Tool
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.
This file was made in TVP 9.5 Standard if it matters.
Spoiler : :
Re: Vanishing Point Tool
Thank you for sharing
Re: Vanishing Point Tool
Great! Thumbs up!
... and thanks a lot
... and thanks a lot
TVPaint 10.5.7 - Win10/64
TVPaint 11.0.8 - Win10/64
TVPaint 11.0.8 - Win10/64 (Wacom Companion 2)
TVPaint 11.0.8 - Win10/64
TVPaint 11.0.8 - Win10/64 (Wacom Companion 2)
Re: Vanishing Point Tool
This is a rather heavily modified version of KylerK's vanishing point tool.
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
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.
Spoiler : Kyler's tutorial video :
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
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"
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"
Last edited by lemec on 13 Jul 2012, 17:57, edited 3 times in total.
(Win7x64, TVP Pro 11 32-bit)
Re: Vanishing Point Tool
Wow, very nice
Re: Vanishing Point Tool
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?
Not to seem belligerently ignorant, but how does one implement these wonderful scripts?
Re: Vanishing Point Tool
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.
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 11 32-bit)
Re: Vanishing Point Tool
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.
Update: It works flawlessly on Windows. Now I'm extra glad I switched over. Thanks.
Re: Vanishing Point Tool
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!
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!
Windows 10 (64 bit), 8gb ram, intel i5 10400f. TVpaint 11.7
Re: Vanishing Point Tool
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 11 32-bit)
- Peter Wassink
- Posts: 4436
- Joined: 17 Feb 2006, 15:38
- Location: Amsterdam
- Contact:
Re: Vanishing Point Tool
you mean a version with an input of four points that would create a grid to match an existing image?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.
cool idea!
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Re: Vanishing Point Tool
+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.
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
Re: Vanishing Point Tool
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 ...)
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