Re: [osg-users] transparency problem

2009-06-03 Thread su hu
Hi Robert, There are lots of transparent objects/nodes in my scene. I need to place them in the depth sorted bin. How can I find out these transparent nodes quickly? Thanks a lot. Regards, Su Hu 2009/5/28 Tomlinson, Gordon gtomlin...@overwatch.textron.com Also make sure you multi-sampling

Re: [osg-users] transparency problem

2009-05-27 Thread su hu
Hi Robert, Thanks for your reply. Our 3D modeler tell me that the same model is shown right in vega view. We will break large objects up into small parts and try it again. Thanks a lot. Regards, Su Hu 2009/5/27 Robert Osfield robert.osfi...@gmail.com Hi Su Hu, You need to place

Re: [osg-users] Can not create OpenGL texture in OSG

2009-04-16 Thread su hu
Thank you, ulrich. Now I load texture files in camera callback and solve the problem. I use ms3d models and render them by OpenGL. So I have to load model and texture files by myself. Thanks for your help. Su Hu 2009/4/16 Ulrich Hertlein u.hertl...@sandbox.de The reason

[osg-users] Can not create OpenGL texture in OSG

2009-04-15 Thread su hu
) { Viewer.frame(); } else if(LoadTexture) { GLuintTexID = 0; glGenTextures(1, TexID ); } } Version of my osg is 2.8 for vs2005. OS is Win XP professional. Graphics card is ATI X1600. Thanks for your help! Su Hu

Re: [osg-users] Can not create OpenGL texture in OSG

2009-04-15 Thread su hu
between the execution of *glBegin* and the corresponding execution of *glEnd*. But I dont know how to do. Thanks for your help. Su Hu 2009/4/16 su hu ttts...@gmail.com Hi all, When I tried to create a texture by glGenTextures in OSG, I met a problem. glGenTextures can not create

[osg-users] how to draw ms3d model

2009-03-20 Thread su hu
and update models in the NodeCallback 6. draw models in drawImplementation of the Drawable (using OpenGL). Maybe there is better way to render ms3d model. Could you please give me some advice? Thanks for your helps. Su Hu ___ osg-users mailing list osg

Re: [osg-users] Edge blending

2008-10-15 Thread su hu
Hi Robert Thanks for your reply. I will see the osghud example and try your method. Thanks. Best Regards, Su Hu 2008/10/15 Robert Osfield [EMAIL PROTECTED] Hi Su Hu, I haven't personally implemented edge blending yet, but it should be straight forward. All you need to do is render

Re: [osg-users] moving models...

2008-08-02 Thread su hu
MotionMatrix--setMatrix(osg::Matrix::translate(Pos)); //your position data ... Viewer.frame(); ... } su hu 2008/8/2, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC [EMAIL PROTECTED]: This is probably a silly and simple question, but does anyone have an example of how to move

[osg-users] how to release loaded model

2008-07-24 Thread su hu
appreciation to any reply. Regards, Su Hu ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] how to release loaded model

2008-07-24 Thread su hu
Hi Robert, I set ref_ptr to null. It works well. Thanks a lot. Best Regards, Su Hu 2008/7/24 Robert Osfield [EMAIL PROTECTED]: Hi Su, You shouldn't be called ref_ptr.release() in this context, you should be just setting the ref_ptr to null. ref_ptr::release() is a specialist helper

Re: [osg-users] how to release loaded model

2008-07-24 Thread su hu
Hi Ümit Thanks for you suggestion. There are several scene models in our application and they are large. So we have to release them when we start a new scene. Thanks again. Kind Regards, Su Hu 2008/7/24 Ümit Uzun [EMAIL PROTECTED]: Hi Su, I think you shoul use Switch node to change

[osg-users] how to use OpenGL code in osg

2008-05-02 Thread su hu
Hi all, I have some opengl codes and want to use these codes in osg program. I do it as follow: 1. Add a geode to root scene and define a drawable (derived from osg::Drawable). 2. The drawable is added as child of the geode. OpenGL code is added in DrawCallback of the drawable(in

Re: [osg-users] how to use OpenGL code in osg

2008-05-02 Thread su hu
list the first time drawn. so, disable display lists on that drawable, and you'll be set! bob On May 2, 2008, at 5:13 AM, su hu wrote: Hi all, I have some opengl codes and want to use these codes in osg program. I do it as follow: 1. Add a geode to root scene and define a drawable