The tweaking of the Scene object is necessary to make sure the UV texture request gets expanded properly when the ScanlineRender is in uv render mode. If you don't care about uv render mode you can just comment out the projection mode changes in the vertex_shader() method.
Unfortunately I wasn't able to convince the Foundry to open the permissions on the Scene class during the last round of API change opportunities, so you'll have to manually edit the DDImage/Scene.h header file and change line 73 from 'protected:' to 'public:'. If you don't want to change the Nuke install package file you can copy the Scene.h file local to the plugin dir and do the edit there, but you also have to change the includes to the full DDImage path rather than a local path - like so: #include "GeoInfo.h" becomes #include <DDImage/GeoInfo.h> Then in the UVTile.cpp file you include the local Scene.h file instead. To make it compile across multiple Nuke versions you'll need add'l switches to go between 6.2 and 6.3 versions - so I usually change the name of the localized header file to include the version: 'Scene_6.2.h' and 'Scene_6.3.h'. -jonathan On Nov 28, 2011, at 6:27 PM, Blake Sloan wrote: > Hi Nuke Dev, > > Downloaded Jonathan Egstadt's UVTile plugin source at the request of a TD who > suggested it is the only way to get Mari-style texture indexing -- as far as > I understand, multiple textures are referenced by *offset* unit values ie. > texturemap #3 would be accessed by uv values between 2.0 and 2.999~ for one > of the axes. > > UVTile seems to be incompatible with the 6.2v5 API. A member variable of > DD::Image::Scene is no longer writable directly or through a 'set' method. > > Now that the Foundry is managing both Nuke and Mari, is there a built-in way > to get this behavior that has replaced UVTile. > > Hope this is an easy question for somebody...Jonathan? > > Thanks, > > -b > > -- > * * * * * * * * * * * > B l a k e S l o a n > * * * * * * * * * * * > > _______________________________________________ > Nuke-dev mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev _______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
