CLI : Is There A Script To Skew Image With A Curve
Looking for a script that will skew an image for me through the command line.
The skew needs be a curve; stead the angle skews offered by imagemagick or lunapic. I want it to look like it is placed up in a celestial sphere. Basically able to fit inside of these boxes. Thanks. ... fred's scripts: skew ... http://www.fmwconcepts.com/imagemagick/skew/index.php ... lunapic.com ... http://www.lunapic.com/editor/?action=skew ... wiki: Celestial Sphere ... http://en.wikipedia.org/wiki/Celestial_sphere ... wireframe of inside sphere ... http://www.dreamstime.com/royalty-fr...-image11717706 |
You might need to use something like Povray.
|
Skew With A Curve
Thanks for the suggestion. I am looking at the software now and it seems like a 3D image renderer, but do you know if it can or how to manipulate 2D images to appear to be resting on the inside of an invisible sphere?
Looks like it can, using hollow spheres. Installing now, I will update if it works. ... http://www.povray.org/documentation/view/3.6.0/155/ |
I've used blender rather than povray. I think you want to use the pictures as textures.Getting the lighting and environment right may be the hardest part.
|
Figured
Now that I have had some time to play around with it, I have POVRay acting as I had hoped.
Here is the setup: The .pov and .ini files are sort of hacked up from multiple sources. For the layout and bulk of the .ini and .pov files :: http://www.mpa-garching.mpg.de/~msel...ay/povray.html For the sphere texture :: http://www.f-lohmueller.de/pov_tut/tex/tex_876e.htm Also the texture is applied to the outside of the sphere so for the image to be viewed from inside out and have the proper view you will have to transform the image as a horizontal mirror image. Code:
# convert -flop InIMG.jpg OutIMG.jpg Code:
Input_File_Name=MYPOVFILE.pov ; input file name(s) Code:
global_settings Keep the values small, ie .1, .3, else you may go outside the sphere. Code:
# ls Code:
# convert -transparent white MYPOVFILE.png MYTRANSPARFILE.png |
All times are GMT -5. The time now is 07:25 PM. |