开发者

mapping pictures to a sphere or cylinder

开发者 https://www.devze.com 2022-12-30 12:02 出处:网络
i am developing an application where client can add his photos to appear on a sphere or ball or coffee cup and able to save them and give it for printing using flex. like itasveer.com site. i tried to

i am developing an application where client can add his photos to appear on a sphere or ball or coffee cup and able to save them and give it for printing using flex. like itasveer.com site. i tried to use away3D but if the image is small it is stretched and added to sphere. i dont want it to strech instead the original image shud appear on the sphere. if it is added to cup开发者_如何学Go it shud cover only the circular part it shud not add this to top and bottom. guide me how can i make it work. -thanks in advance-madhu


Here is a tutorial for making a picture into a cylinder. I know it is in flash but I was able to port it into flex quite easily. Essentially it takes a picture and rips it into strips and then (with a ton of math) puts them together to form a picture cylinder. This should help with the body of the coffee cup. There are other examples on the site for spherical photo galleries that may help (though very little) with turning a picture into a sphere.

http://www.flashandmath.com/advanced/rolls/cylin.html

0

精彩评论

暂无评论...
验证码 换一张
取 消