Re: [osg-users] pass mat4 as attribute for glsl

2018-11-26 Thread Cong Ye
I found the gpuculling example. It may solve my problem.. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75250#75250 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscen

[osg-users] pass mat4 as attribute for glsl

2018-11-26 Thread Cong Ye
Hi, I am currently working on a project requires gpu instancing. I worked out a way to do the instancing with vec4 as position attribute in. However, in the real case, instances need to be scaled/rotated/translated. Now, I want to send the transform matrix as an attribute to the shader. Normall

Re: [osg-users] update node in view using cullcallback

2018-08-29 Thread Cong Ye
One following question is how can I do the same for drawable and attribute callback? sirian_ye wrote: > Hi, > > I am recently working on a big scene simulation project. To optimize the > performance, we consider to only update elements (material color, position, > rotation etc.) in frustum or

Re: [osg-users] Shadow in GraphicsWindowEmbedded

2018-08-29 Thread Cong Ye
Hi Robert Thanks very much for your reply. I check the osgQt after your suggestion, I know the problem now. However, it still doesn't work after I add gl_back. As it is not high priority, I will implement shadow myself later. robertosfield wrote: > On Thu, 16 Aug 2018 at 09:29,

[osg-users] update node in view using cullcallback

2018-08-29 Thread Cong Ye
Hi, I am recently working on a big scene simulation project. To optimize the performance, we consider to only update elements (material color, position, rotation etc.) in frustum or not culled. The most straightforward method come to me is using cullcallback to do the update. I implemented it a

Re: [osg-users] Shadow in GraphicsWindowEmbedded

2018-08-16 Thread Cong Ye
robertosfield wrote: > Hi Cong, > > On Thu, 16 Aug 2018 at 06:32, Cong Ye <> wrote: > > > I agree this is a problem. But i don't think it causes the shadow not > > displays in embedded window problem. Could I ask where can I specific the > > graphics

Re: [osg-users] Shadow in GraphicsWindowEmbedded

2018-08-15 Thread Cong Ye
Hi Robert Thanks very much for the quick reply. I agree this is a problem. But i don't think it causes the shadow not displays in embedded window problem. Could I ask where can I specific the graphicscontext to shadow camera? That may be the problem? Didn't find any methods in shadow technolo

[osg-users] Shadow in GraphicsWindowEmbedded

2018-08-15 Thread Cong Ye
Hi, I am recently encountered an interesting problem. I am trying to add shadow to a scene embedded in osgViewer::GraphicsWindowEmbedded. Most of shadow algorithms are working fine if i use osg::Viewer only. However, if I use them in GraphicsWindowEmbedded, nothing will be displayed. The setti