|
From: Erik H. <er...@eh...> - 2023-02-27 13:43:43
|
On 2/25/23 16:08, Erik Hofman wrote: > On 2/25/23 13:40, Erik Hofman wrote: >> Apparently it wasn't compiled in without a clean build. > > I got a bit further. I've no got the root of the problem: In VGInitOperation.cxx the size of the OpenGL viewport is passed to vgCreateContextSH which is always (0, 0, 800, 600) for some reason. ShaderVG takes this input as the maximum area to draw thereby ignoring the "view" property when creating a new canvas in Nasal. If I manually match the parameters parsed to vgCreateContextSH with the canvas "view" parameters everything renders okay. One of the problems is that VGInitOperation is called from osg. Now I need to find out where that is done and how to make it retrieve Canvas::getViewport instead. Erik -- http://aeonwave.xyz High performance audio scenegraph and sound simulation. |