Re: [osg-users] Get objects nodes in *.obj file

2010-09-19 Thread John Kush
Hi, There are 3 objects in *.obj file. Is it possible to get their nodes in OSG in order to set different transformations? Thank you! Cheers, John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31757#31757 ___

[osg-users] GLSL 1.4(1.5) / "in" Storage Qualifier

2010-09-20 Thread John Kush
Hi, How can I pass vertices in GLSL1.4 shaders How can I pass values to "in vec4 vertex" Code example. Code: #version 150 uniform mat4 projectionMatrix; //Specifies that the value is passed to the shader from the application and is constant across a given primitive. uniform mat4 modelViewMat

Re: [osg-users] GLSL 1.4(1.5) / "in" Storage Qualifier

2010-09-20 Thread John Kush
HOw get vertex coordinates? Through variable gl_VertexID? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31858#31858 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscen

[osg-users] Load texture in *.obj

2010-09-22 Thread John Kush
Hi, I'm loading a sphere with texture that was created in Maya. In osg only a black sphere. Why? Code for laoding texture: Code: osg::Image* image = osgDB::readImageFile( "neptune2.jpg" ); if ( image ) { osg::Texture2D* tex2d = new osg::Texture2D;//( image ); tex2d-

Re: [osg-users] Load texture in *.obj

2010-09-23 Thread John Kush
Thank very much! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31959#31959 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce

Re: [osg-users] Load texture in *.obj

2010-09-23 Thread John Kush
Thank very much! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31960#31960 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce

Re: [osg-users] How to programmatically clear trackball manipulator's mouse queue

2010-09-30 Thread John Kush
Hi, When I try this code, I got an error 'class osgGA::TrackballManipulator' has no member named 'setAllThrow'| Code: osg::ref_ptr trackball = new osgGA::TrackballManipulator(); trackball->setAllThrow(true); Why? Thank you! Cheers, John -- Read this topic

[osg-users] [build] OSG2.9.9 mingw4.4.1 osgDB compilation error

2010-10-24 Thread John Kush
Hi, while compiling osg I've got an error. Why Code: [ 13%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/WriteFile.obj [ 13%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/XmlParser.obj Linking CXX shared library ..\..\bin\libosgDB.dll Creating library file: ..\..\lib\libosgDB.dll.a e

[osg-users] load osg-scene as dll

2010-10-25 Thread John Kush
Hi, I need to load osg-scene as dll from my program. Transformation operations will be implemented in main program. How can I send transformation parameters to osg-scene? Should I use WinAPI or something else? Thank you! Cheers, John -- Read this topic online here: http://foru

Re: [osg-users] load osg-scene as dll

2010-10-26 Thread John Kush
I've written osg program in DLL and launch it from another program. I'd like that two programs work independently and main program can pass node transformation parameters to osg-program. Main program must transform nodes' position, rotation... -- Read this topic online here: http

[osg-users] viewer1=viewer2. Is it possible?

2010-10-28 Thread John Kush
Hi, I'd to initialize my scene one cpp-file and launch it in another. Is it possible Code: osgViewer::Viewer pipeviewer; pipeviewer=osgScene(); osgScene(): osgViewer::Viewer osgScene(){ osgViewer::Viewer viewer; ...viewer initialising procedures return viewer; } Thank you! Cheer

Re: [osg-users] viewer1=viewer2. Is it possible?

2010-10-28 Thread John Kush
Thanks. No, there isn't any reason=) Is this code write? I get an error and a program closes. Code: osg::ref_ptr pipeviewer; pipeviewer=osgScene(); while (!pipeviewer->done()) { pipeviewer->frame(); } osgScene(): Code: osg::ref_ptr osgScene() { osg::ref_ptr vie

Re: [osg-users] viewer1=viewer2. Is it possible?

2010-10-28 Thread John Kush
I have an error on such simple code. How must be written viewer? Code: int main() { osg::ref_ptr viewer; viewer.get()->setCameraManipulator(new osgGA::TrackballManipulator()); while(!viewer.get()->done()) { viewer.get()->frame(); } return 0; } --

Re: [osg-users] viewer1=viewer2. Is it possible?

2010-10-28 Thread John Kush
thanks a lot [Exclamation] [Exclamation] [Exclamation] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33197#33197 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscene