[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); where k1 and k2 are the coefficient of 
distortion and r is the distance between ideal image coordinate(x and y). So i 
want to get Barrel distorted image and Pincushion distorted image for postive 
and negative values of k. But i couldn`t understand which geometry i should 
attach to get those kind of image.

So if anybody knows about this then please let me know.

Thanks in advance

Thank you!

Cheers,
Naresh

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=28774#28774





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 (barrel and  
Pincushion). So what changes should i make?

Thank you!

Cheers,
Naresh

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29264#29264





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org