Re: [osg-users] Simple question about loading Texture!

2008-12-10 Thread Tuan Do
Could any one help me with this problem? *I've read this book, but I still don't know how to change this stateset. I try to disable texture of this model: osg::StateSet *state = myModel->getOrCreateStateSet(); state->setTextureMode(0,GL_TEXTURE_2D,osg::StateAttribute::PROTECTED | osg::StateAttribut

Re: [osg-users] Creating window

2008-12-10 Thread Tuan Do
Hi. You see in the viewer, there's setupviewerinwindow method to run your application in windowed mode. Regards! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Simple question about loading Texture!

2008-12-09 Thread Tuan Do
I've read this book, but I still don't know how to change this stateset. I try to disable texture of this model: osg::StateSet *state = myModel->getOrCreateStateSet(); state->setTextureMode(0,GL_TEXTURE_2D,osg::StateAttribute::PROTECTED | osg::StateAttribute::OFF); but it doesn't work. And I'm con

[osg-users] Simple question about loading Texture!

2008-12-09 Thread Tuan Do
Hi all! I have an .flt model file with some of its textures. In my program, first I load this model with a texture, after that, I want to change to another texture of this model. I don't know how to do it. Please support me, thank you! ___ osg-users mai

Re: [osg-users] Load animated model?

2008-10-27 Thread Tuan Do
This problem was solved in the past. http://groups.google.com/group/osg-users/browse_thread/thread/b9725f6566bd92f3/700f0659ed89598e?lnk=gst&q=animate+model#700f0659ed89598e Please search the group before posting. Hĩ ;) ___ osg-users mailing list osg-user

Re: [osg-users] Problem with local coordinate!

2008-09-19 Thread Tuan Do
Thanks, I've done it. I don't know how to reply a post, because this group is annoucement only!? -- ЯicKy ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Problem with local coordinate!

2008-09-17 Thread Tuan Do
Hi all, just a simple question, and I can't find related topics on the group. How can I get/set my components' local center coordinate? I have lots of components, all of them are contained in one 3DS model and have it's own local coordinate. I used matrixtransform to set a component's position to (

[osg-users] Problems with loading model in OSG 2.2

2008-06-17 Thread Tuan Do
I used OSG 1.2 before and didn't meet problems like this. I've just tried OSG 2.2 with VS 2005 SP1, a simple code: loading a model. The code like this: osg::ref_ptr m_Node = new osg::Node(); osg::ref_ptr root = NULL; osgViewer::Viewer viewer; osg::Vec3 nodePosit; osg::ref_ptr no

[osg-users] Reference Pointers

2008-06-13 Thread Tuan Do
I see references to "Reference Pointers" all through the OSG source, but what are Reference pointers? What are the differences between Reference Pointer of OSG and normal Pointer of C++ ? I'm newbie and don't know many reference books about OSG. Thank you! -- ЯicKy ___