HI Neil,

(moving this thread to osg-users list)

can you provide a simplified repro test example?

fyi, Uniform::apply() is called by Program::PerContextProgram::apply(), which is
defined inline in include/osg/Program.

Thanks
-- mew


neil south wrote:
> There seems to be a problem …
> 
>  
> 
> Ive set up the uniform ok and change the vales every frame with the
> setElement() method, in the debugger the values internal to uniform are
> being updated to the given numbers (and  the modifiedCount is
> incremented) . BUT the apply function is NEVER called, so the shader
> never sees the values.
> 
>  
> 
> Ive looked at uniform and uniform.cpp and cant see anything wrong and Im
> not sure what calls the uniform.apply (or should do) so I don’t know
> where to look for the problem.
> 
>  
> 
> Cheers
> 
> Neil
> 
>  
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *On Behalf Of *neil
> south
> *Sent:* 22 May 2006 17:25
> *To:* 'Bug fixes, enhancements, code changes for OSG'
> *Subject:* RE: [osg-submissions] more GLSL uniform array stuff + .ive plugin
> 
>  
> 
> DOH!
> 
>  
> 
> I just realised that I left the code in software skinning mode, so
> although the code posted does work, it wont work if you force HW skinning.
> 
>  
> 
> Sorry Ill have a look at this tonight.
> 
>  
> 
> Cheers
> 
> Neil
> 
>  
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *On Behalf Of *neil
> south
> *Sent:* 19 May 2006 14:12
> *To:* 'Bug fixes, enhancements, code changes for OSG'
> *Subject:* RE: [osg-submissions] more GLSL uniform array stuff + .ive plugin
> 
>  
> 
> The Matrix arrays seem to work fine with the new uniform.cpp files,
> cheers Mike J
> 
>  
> 
> Ill put the new osgCharacter up either over the weekend, or on Monday.
> 
>  
> 
> Cheers
> 
> Neil
> 
>  
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *On Behalf Of *neil
> south
> *Sent:* 19 May 2006 10:29
> *To:* [EMAIL PROTECTED]; 'Bug fixes, enhancements, code changes
> for OSG'
> *Subject:* RE: [osg-submissions] more GLSL uniform array stuff + .ive plugin
> 
>  
> 
> Im just about to try this with the new Uniform stuff, so Ill let you know.
> 
>  
> 
> I didn’t have any problems on any nvidia hardware I tried it on (about 6
> cards)
> 
>  
> 
> I did try it on an ATI 1900XT but it didn’t work (surprise surprise)
> when I looked further into it, it didn’t seem like even user attribute
> arrays were being passed correctly ?!
> 
>  
> 
> So I gave up J
> 
>  
> 
> Cheers
> 
> Neil
> 
>  
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *On Behalf Of
> *Robert Osfield
> *Sent:* 17 May 2006 16:24
> *To:* Mike Weiblen
> *Cc:* Bug fixes, enhancements, code changes for OSG
> *Subject:* Re: [osg-submissions] more GLSL uniform array stuff + .ive plugin
> 
>  
> 
> On 5/17/06, *Mike Weiblen* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 
> wrote:
> 
>     Ok, so I suggest reverting osgshaders to its previous non-array
>     state, and we'll
>     come up with something else.
> 
>     Given the delicate state of array support across platforms, perhaps move
>     discussion to osg-users to find some code that will work on multiple
>     GPUs.
> 
> 
> Neil South had arrays working with his osgCharacter library so it looks
> like there is some driver support for it.  Moving discussion to
> osg-users is definately the next thing to do.  Do you want to kick it off?
> 
> Robert.
> 
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to