Login | Register 
Products Applications Downloads Features Wiki forum Store
 

Kantan Mapper - an approach on simple mapping in TD

Share your components here. First one to 100 wins!

Kantan Mapper - an approach on simple mapping in TD

Postby snaut » Fri Oct 14, 2011 5:58 pm

Hey,

NOTE: The latest version of Kantan Mapper can be found further down this thread:

http://derivative.ca/Forum/viewtopic.php?f=22&t=3070&start=20#p11449

The Kantan Mapper Wiki Page can be found here:
http://www.derivative.ca/wiki/index.php?title=Kantan_Mapper

after painstakingly building masks in Photoshop for a recent Installation here is the foundation for a simple mapping kit which should allow you to mask and map many surfaces and shapes.

The Idea is to draw directly on the projection and follows well known techniques and workflows just implementing them in a TouchDesigner077 environment.

Here are a couple first steps with it:


Note: This is made with and for TouchDesigner077 build 16240. Please make sure your installation is up to date.
I had trouble running this on an ATI Card. Picking Masks was only possible through selecting them in the Mask List.


After loading the tox file, open the Controlpanel of "kantanmapper"
Enter a resolution and select which monitor you want to output to.
Click the Enable button for the Output.
Now click on the Mask List Button to open up the main controls for your masks.

In the Mask List click the "Add Rectangle" button. A rectangle should now appear on your output.
In your output select the newly created rectangle which should reveal a green outline and 4 corner-points. By selecting and dragging the corner-points you can adjust the shape of the rectangle and by dragging anywhere inside the rectangle you move the whole mask.

You can also select one or more corner-points and move them together or use your arrow keys to move them more precise.

Once done with setting up the mask, drag a TOP from your network onto the mask to give it a texture. If you don't see the texture but the mask is colored in a bright color, make sure you enable the Texture Button in the main Controlpanel.

By double-clicking onto the mask in your output, another Controlpanel comes up which lets you edit the texture itself. Hit 't' to bring up a translate handle, 's' to bring up a scale handle, 'r' to rotate and 'p' to see the cornerpin handles.

The same thing can be done with Freeform Masks. To create a Freeform, click "Add Freeform" in the Mask List and click in the output window to add points. When you are done adding points, right-click and you are exiting the Freeform mode. Everything else works the same except you have an extra option to add more inline points to the mask. You find the option for that in the Mask Lister on the bottom when a Freeform Mask is selected. Points in Freeform Masks can also be deleted by selecting them and hitting the 'del' key.

Please let me know of any trouble or ideas. This is really a prototype and your input will be very valuable to make it better.

Cheers
Markus
User avatar
snaut
Staff
 
Posts: 325
Joined: Mon Nov 12, 2007 5:21 pm
Location: Toronto

Re: Kantan Mapper - an approach on simple mapping in TD

Postby snaut » Sat Oct 15, 2011 10:34 am

a small fix where when entering the resolution it would only change the width of the projection.
User avatar
snaut
Staff
 
Posts: 325
Joined: Mon Nov 12, 2007 5:21 pm
Location: Toronto

Re: Kantan Mapper - an approach on simple mapping in TD

Postby jamesbass » Tue Oct 18, 2011 1:55 pm

Wow. This is a really slick UI! Thanks! One comment, I think it's strange to have to enter in network mode to add images. Would be easier if there was a panel which pulled all the tops from the network and allowed you to assign textures while in perform mode.
jamesbass
 
Posts: 105
Joined: Wed Sep 17, 2008 11:15 am

Re: Kantan Mapper - an approach on simple mapping in TD

Postby nabhan » Thu Oct 20, 2011 4:00 am

wow markus!!!

This is incredibly awesome in so many ways...!!!
I'm so gonna find time to break it apart, tinker and probably add stuff to it...
gotta love this tox!!

Cheers,
Imran
User avatar
nabhan
 
Posts: 34
Joined: Wed Jan 21, 2009 12:56 pm
Location: Singapore

Re: Kantan Mapper - an approach on simple mapping in TD

Postby jamesbass » Sun Oct 23, 2011 8:06 pm

Here's a video of a first test with the kantan mapper tox. It took about two hours to do the masks. It would be cool to be able to save while adding masks. Also it would be handy to have the number of the mask displayed so it's easier to keep track of which component belongs to which mask.

jamesbass
 
Posts: 105
Joined: Wed Sep 17, 2008 11:15 am

Re: Kantan Mapper - an approach on simple mapping in TD

Postby snaut » Mon Oct 24, 2011 1:57 pm

Hearing that it takes 2 hours I'm thinking it would also probably be usefull to copy and paste masks?

cheers
Markus
User avatar
snaut
Staff
 
Posts: 325
Joined: Mon Nov 12, 2007 5:21 pm
Location: Toronto

Re: Kantan Mapper - an approach on simple mapping in TD

Postby snaut » Mon Oct 24, 2011 6:56 pm

Some updates to KantanMapper that introduce some improvements and fixes:

  • All controls have been merged into one main UI.
  • Apart from the output window, there is now also an Edit Window which comes in handy when points are not on the screen or can't be located.
  • When a mask is selected in the edit or output window, use the TAB key to cycle through the points.
  • There is an animated indicator when a point of a mask is being selected.
  • The resolution cannot be changed once a mask is created.
  • You can specify your own Sample Image to map onto or to aid with visibility when mapping.
  • The Mask List is ordered by Layer Position of the masks
  • Use Ctrl+c and Ctrl+v to copy and paste masks in the edit or output window.

Enjoy
User avatar
snaut
Staff
 
Posts: 325
Joined: Mon Nov 12, 2007 5:21 pm
Location: Toronto

Re: Kantan Mapper - an approach on simple mapping in TD

Postby introvert » Wed Oct 26, 2011 9:40 am

Hi,

I'm new to TD. This component seems great.
How to send my output (clips, movies, renders) to the container / mapper?

Thanks for help
introvert
 
Posts: 12
Joined: Sun Oct 23, 2011 3:55 pm

Re: Kantan Mapper - an approach on simple mapping in TD

Postby snaut » Wed Oct 26, 2011 12:34 pm

Hey,

you can just drag a TOP node onto a mask on the edit or output screen. Does that help?

cheers
Markus
User avatar
snaut
Staff
 
Posts: 325
Joined: Mon Nov 12, 2007 5:21 pm
Location: Toronto

Re: Kantan Mapper - an approach on simple mapping in TD

Postby snaut » Fri Oct 28, 2011 6:55 pm

Here is an update to the Kantan Mapper which adds support for Bezier Curves. Works the same way as the other object types yet creates nice round shapes with control handles. These are currently still locked, the next update should have the function to unlock them or lock them at different angles.

Another addition is the possibility to display the names of the objects on the edit and output screen. Just click the "Show Names" Button in the controlpanel.

As usual, feedback is greatly appreciated
User avatar
snaut
Staff
 
Posts: 325
Joined: Mon Nov 12, 2007 5:21 pm
Location: Toronto

Next

Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 1 guest