Frederik Elwert wrote: > Hello, > > while skipping through the wiki, I discovered the "Missing > Documentation" section. I found especially that point > "Warping/distorting/flipping images" very interesting. Could anyone give > me some hints where to look for these features?
Have a look at RasterNode::maxtileheight/width, getOrigVertexCoords() and ::get/::setWarpedVertexCoords(). From https://www.libavg.de/reference/libavg.avg.RasterNode-class.html: "Warping of RasterNodes is implemented using a grid of reference points. The position of each of these points can be changed." > Specifically, I want to transform an image perspectively, making it look > like being on a wall on the left side of the viewer. Would this be > possible using libavg's features? Yes :-) > If I should get something like that to work, I am willing to add the > documentation for that to the wiki. > > And I got another question: Is it possible to scale an AVG scene to a > different resolution? So when I create a scene at 800x600, but later I > want to show it at 1024x768, can I do this without changing the whole > file? Yes: https://www.libavg.de/reference/libavg.avg.Player-class.html#setResolution Obviously, that comes at a loss in quality. I use it mainly to show a development version in a smaller window. Cheers, Uli -- Ulrich von Zadow | +49-172-7872715 Jabber: [EMAIL PROTECTED] Skype: uzadow _______________________________________________ libavg-users mailing list [email protected] https://mail.datenhain.de/mailman/listinfo/libavg-users
