[osg-users] Distortion

2010-06-11 Thread Naresh Palaiya
Hi, Hello Guys, Actually i have to create radial distortion in an image using osg. So i created root node then camera node then geode and atlast i was trying to create the geometry which i can attach to the geode node. I am assuming distortion to be like this D = (1 +k1*r*r + k2*r*r*r*r);

Re: [osg-users] Distortion

2010-06-22 Thread Naresh Palaiya
Hi, I already took a look at osg distortion but i couln't understand how am i supposed to parametrise the function so that it gives the barrel and Pincushion distorted image for positive and negative value of k. Right now also i am getting the distortion but that is not a desired distortion