Hi Ying, On 10 June 2014 16:52, ying song <[email protected]> wrote: > Hi Robert, > > I'm trying to implement a distortion function, and the distortion should be > worked in 3D. By using the 2D texture only allows me to achieve the > distortion in 2D. That's why I'm trying to use a 3D texture. > > If this wouldn't work, would you please give me some suggestions? > > I started to learn osg not so long ago. I'm sorry if my question is a little > stupid. :))
I don't think the issue is an OSG one, but the basic concepts in play. I can't work out how your approach is supposed to work. My best guess to what distortion using a 3D texture would be that you want to convert a vertex position to a new vertex position in the vertex shader using a 3D texture. If it isn't this I haven't got a clue. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

