Re: [Maya2osg-users] Texture processing
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2011-06-16 15:53:56
|
On Thu, Jun 16, 2011 at 5:27 PM, Jean-Sébastien Guay <jea...@cm...> wrote: > Hi Javier, > >> I'll compile a debug version and see what's going on. > > Of course, I found out about 2 seconds after building in debug, but I > wouldn't even have had to... > > I don't want to generate GLSL shaders. I think your texture processing > code should happen even if only "Export Shaders" is checked, not "Build > GLSL Shaders". > > All use of textures should follow the same rules, whether GLSL shaders > are being generated or not. So I think these calls will need to be moved > somewhere else... Perhaps in Texture::exporta(), which is called by both > FileTexture::getCodeBlock() and Shader::exporta() (indirectly). You're right, I didn't test this case as I was always exporting GLSL shaders. I'll take a look at this issue as soon as I have time. Thanks for the feedback! -- Javier Taibo |