I almost titled this: "How to Turn Max into the Most Expensive Photoshop Plugin of all Time."
This is a technique I've been using off and on for a long time and kinda figured everyone knew it, but it seems maybe not, so thought I would share.
The basic idea is to map an image to a piece of geometry and then use Max's (or any modeler really, but I use Max) tools to manipulate the image as you might in Photoshop, but in ways that are difficult or destructive in Photoshop. By using a simple script and a few edit poly modifiers the setup is fast and you can get endless control and levels of detail out of it, and the rendered images are actually capable of being even better than what can be done in Photoshop (my tests show that Max produces considerably sharper warps than Liquify, which is notorious for blurring images).
The new Puppet Warp tool does provide a lot of this kind of functionality, but it's not nearly as versatile or as precise (when you need that) and not everyone has CS5 . However, the real beauty of this technique IMO is that it provides limitless control and "editability" which cannot be matched in Photoshop.
Here are a couple of super quick image examples and video references of what I'm talking about:
*EDIT* - had to remake and move the vids due to bandwidth issues. New (and smaller) demos on YouTube:
Basic setup: http://www.youtube.com/watch?v=BVBWn4e8ymU
Basic use: http://www.youtube.com/watch?v=rkqR4KyjXcc
Fixing perspective: http://www.youtube.com/watch?v=OBNfWzdAC_w
Bit more perp fix and some goofing around: http://www.youtube.com/watch?v=rkqR4KyjXcc
The basic idea is this:
1) Download Martin Breidt's great free script called "Image Plane" (link below). This automates the process of creating a geometry plane perfectly in line with a Max camera (must be a Max camera) and perfectly sized to match your render output.
2) Select a file for warping. Take note of it's image dimensions in pixels. Create a new Max file (or use the one supplied below) and change the render output settings to match the image dimensions *exactly*
3) In your Max file (if not using mine) create a Max camera. For ease of use throughout having it aligned to the Front direction.
4) From a Front view create an Image Plane object (once the script is installed it is found in the create tab under "MB Tools". It is its own object type. Just draw it out anywhere and any size for now.
5) Go to the modifer tab for the IP object and choose your Max camera. The image plane should snap to fill the full frame of the camera view, which should perfectly match your render output size. Make sure "safe frames" are on for the camera view. If the IP does not perfectly match then go to the modifers for that and change the "distance" parameter to any value, and then put it back to the default 100. That should refresh the image.
6) In the Mat Editor create a new Standard material. Apply your chosen warping image to both the diffuse slot (for viewport visibility) and to the Self-Illumination slot. The SE map is what you will actually render (no lights used) and it should perfectly match the original image. Use the render settings in the supplied file and the rendered output will be virtually exactly the same as the original. I could not see any measurable differences - which is important (no quality loss just from putting the image through this process).
7) Apply the material to the IP and make the map viewable in the viewport. The camera view should look like a snapshot of your image, exactly as it would appear in Photoshop.
# To do basic "Liquify" type warping simply up the subdivisions of the image plane to create some nice geometry and start moving verts around. I use the Shift tool that is part of the Graphite modeling tools but there are countless ways to do it. Soft selections also provide a lot of flexible control.
9) To make it easier while working I usually switch to a Front view - which should look exactly like the camera view anyway - so I can pan and zoom around without messing up the image/camera alignment.
10) When done just render it out and move it back to Photoshop for further editing/blending etc.
Because this is done with Edit Poly modifiers you can adjust it one vert at a time, or by edges, or any way you like, and can go back and change it as much as you like. Just keep adding more EP modifiers and you can stack up "layers" of warping. Adding Turbosmooth modifers *on top* of your warping provides a way of smoothing out sharp corners and "relaxing" stretching.
A few tips:
For cases where you want to move image parts around but preserve straight lines (almost impossible with Photoshop's warping tools) it is best to work with very low geometry - much like modeling. Use an EP modifer with "preserve UVs" activated and either move the edges around or create new edges that align with the image areas you want to move (i.e lay edges out along the sides of a building). Using "connect" and "cut" etc you can pretty much carve out whatever shapes you need. Then create a new EP modifier above that one, make sure "preserve UVs" is OFF, and edit the edges etc to do things like correct perspectives and manipulate more "geometrically".
There are links to two quick example vids I made to show the basic idea. They are just playing around but the possibilities should be clear. The potential power is pretty high actually, and once the base file is setup it is very quick to change images out so you can save the base file as a "master" and just swap images and change the output render size to match and you can be up and running with a new image in seconds. Because it doesn't use lights and it does use Scanline the output renders are very fast - often just as fast or faster than Photoshop's tools would be.
The two images attached (One is from an image library one is from the web) are just *super* fast/rough images I did to get the idea across. They show two general uses pretty well but ain't portfolio pieces
The attached file is for Max 2010/2011 only. If you cant use it then you'll have to reconstruct it - I am only running those versions now.
Have fun with the technique and if there are questions I will try and answer as best I can.
b
Link to Max 2010/2011 basic setup file:
http://www.simmsimaging.com/upload/f...geWarp.zip.zip (849.57 KB)
Image Plane script
http://scripts.breidt.net/ImagePlane145.ms
This is a technique I've been using off and on for a long time and kinda figured everyone knew it, but it seems maybe not, so thought I would share.
The basic idea is to map an image to a piece of geometry and then use Max's (or any modeler really, but I use Max) tools to manipulate the image as you might in Photoshop, but in ways that are difficult or destructive in Photoshop. By using a simple script and a few edit poly modifiers the setup is fast and you can get endless control and levels of detail out of it, and the rendered images are actually capable of being even better than what can be done in Photoshop (my tests show that Max produces considerably sharper warps than Liquify, which is notorious for blurring images).
The new Puppet Warp tool does provide a lot of this kind of functionality, but it's not nearly as versatile or as precise (when you need that) and not everyone has CS5 . However, the real beauty of this technique IMO is that it provides limitless control and "editability" which cannot be matched in Photoshop.
Here are a couple of super quick image examples and video references of what I'm talking about:
*EDIT* - had to remake and move the vids due to bandwidth issues. New (and smaller) demos on YouTube:
Basic setup: http://www.youtube.com/watch?v=BVBWn4e8ymU
Basic use: http://www.youtube.com/watch?v=rkqR4KyjXcc
Fixing perspective: http://www.youtube.com/watch?v=OBNfWzdAC_w
Bit more perp fix and some goofing around: http://www.youtube.com/watch?v=rkqR4KyjXcc
The basic idea is this:
1) Download Martin Breidt's great free script called "Image Plane" (link below). This automates the process of creating a geometry plane perfectly in line with a Max camera (must be a Max camera) and perfectly sized to match your render output.
2) Select a file for warping. Take note of it's image dimensions in pixels. Create a new Max file (or use the one supplied below) and change the render output settings to match the image dimensions *exactly*
3) In your Max file (if not using mine) create a Max camera. For ease of use throughout having it aligned to the Front direction.
4) From a Front view create an Image Plane object (once the script is installed it is found in the create tab under "MB Tools". It is its own object type. Just draw it out anywhere and any size for now.
5) Go to the modifer tab for the IP object and choose your Max camera. The image plane should snap to fill the full frame of the camera view, which should perfectly match your render output size. Make sure "safe frames" are on for the camera view. If the IP does not perfectly match then go to the modifers for that and change the "distance" parameter to any value, and then put it back to the default 100. That should refresh the image.
6) In the Mat Editor create a new Standard material. Apply your chosen warping image to both the diffuse slot (for viewport visibility) and to the Self-Illumination slot. The SE map is what you will actually render (no lights used) and it should perfectly match the original image. Use the render settings in the supplied file and the rendered output will be virtually exactly the same as the original. I could not see any measurable differences - which is important (no quality loss just from putting the image through this process).
7) Apply the material to the IP and make the map viewable in the viewport. The camera view should look like a snapshot of your image, exactly as it would appear in Photoshop.
# To do basic "Liquify" type warping simply up the subdivisions of the image plane to create some nice geometry and start moving verts around. I use the Shift tool that is part of the Graphite modeling tools but there are countless ways to do it. Soft selections also provide a lot of flexible control.
9) To make it easier while working I usually switch to a Front view - which should look exactly like the camera view anyway - so I can pan and zoom around without messing up the image/camera alignment.
10) When done just render it out and move it back to Photoshop for further editing/blending etc.
Because this is done with Edit Poly modifiers you can adjust it one vert at a time, or by edges, or any way you like, and can go back and change it as much as you like. Just keep adding more EP modifiers and you can stack up "layers" of warping. Adding Turbosmooth modifers *on top* of your warping provides a way of smoothing out sharp corners and "relaxing" stretching.
A few tips:
For cases where you want to move image parts around but preserve straight lines (almost impossible with Photoshop's warping tools) it is best to work with very low geometry - much like modeling. Use an EP modifer with "preserve UVs" activated and either move the edges around or create new edges that align with the image areas you want to move (i.e lay edges out along the sides of a building). Using "connect" and "cut" etc you can pretty much carve out whatever shapes you need. Then create a new EP modifier above that one, make sure "preserve UVs" is OFF, and edit the edges etc to do things like correct perspectives and manipulate more "geometrically".
There are links to two quick example vids I made to show the basic idea. They are just playing around but the possibilities should be clear. The potential power is pretty high actually, and once the base file is setup it is very quick to change images out so you can save the base file as a "master" and just swap images and change the output render size to match and you can be up and running with a new image in seconds. Because it doesn't use lights and it does use Scanline the output renders are very fast - often just as fast or faster than Photoshop's tools would be.
The two images attached (One is from an image library one is from the web) are just *super* fast/rough images I did to get the idea across. They show two general uses pretty well but ain't portfolio pieces
The attached file is for Max 2010/2011 only. If you cant use it then you'll have to reconstruct it - I am only running those versions now.
Have fun with the technique and if there are questions I will try and answer as best I can.
b
Link to Max 2010/2011 basic setup file:
http://www.simmsimaging.com/upload/f...geWarp.zip.zip (849.57 KB)
Image Plane script
http://scripts.breidt.net/ImagePlane145.ms
Comment