[osg-users] KeBox offset

2017-07-31 Thread Maxim Senin
Hi, how move wall image skybox? or make skybox spgete type, not cube? ... Thank you! Cheers, Maxim -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71352#71352 ___ osg-users mailing list

[osg-users] Problems with view .FBX files

2017-07-28 Thread Maxim Senin
Hi, a load .fbx file and have problems with view. Some times i see full view , but then a rotate image i have bad view. What should I do to make the image rotate when it's always full? ... Thank you! Cheers, [/img] -- Read this topic online here:

[osg-users] How to change "field of view"(FOV), distance.

2017-08-07 Thread Maxim Senin
Hi, How to change "field of view"(FOV) and distance? I used : ... Thank you! Cheers, Maxim Code: osg::CameraView* cameraview = new osg::CameraView(); cameraview->addChild(group); cameraview->setFieldOfView(120.0f); osgViewer::Viewer viewer; viewer.setSceneData(cameraview); but it's not work.

Re: [osg-users] How to change "field of view"(FOV), distance.

2017-08-22 Thread Maxim Senin
Hi, thanks guys!!! Task resolved! ... Thank you! Cheers, Maxim -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71490#71490 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] QPropertyAnimation with openscengraph window

2017-08-22 Thread Maxim Senin
Hi, i have QWidget and i want him to disappear duration X time. In qt my code works: ... Thank you! Cheers, Maxim Code: #include "mainwindow.h" #include "ui_mainwindow.h" #include #include #include MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new

Re: [osg-users] Implementation of movement, rotation of scale

2019-05-31 Thread Maxim Senin
Hi, i finded code, but in this function is failed why? Code: osg::Node* addDraggerToScene(osg::Node* scene, const std::string& name) { scene->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON); osg::MatrixTransform* selection = new osg::MatrixTransform;

Re: [osg-users] Implementation of movement, rotation of scale

2019-05-31 Thread Maxim Senin
Hi, i finded code, but in this function is failed why? Code: osg::Node* addDraggerToScene(osg::Node* scene, const std::string& name) { scene->getOrCreateStateSet()->setMode(GL_NORMALIZE, osg::StateAttribute::ON); osg::MatrixTransform* selection = new osg::MatrixTransform;

[osg-users] Implementation of movement, rotation of scale

2019-05-30 Thread Maxim Senin
Hi, I want to move, rotate and scale the object with the help of auxiliary axes, so as done in the blendar, are there any libraries or code? [img]inspector_gizmo_scale.png[/img] ... Thank you! Cheers, Maxim -- Read this topic online here:

Re: [osg-users] [forum] Dragging individual model nodes

2019-04-29 Thread Maxim Senin
Alberto Luaces wrote: > "Maxim Senin" writes: > > > > Yes, I found the necessary node, what should I do next? > > > > It depends: do you want to completely detach the door, or just rotate it > around its hinges? > > -- > Alberto > >

Re: [osg-users] [forum] Dragging individual model nodes

2019-04-29 Thread Maxim Senin
Alberto Luaces wrote: > "Maxim Senin" writes: > > > > I want to completely detach the door!!! > > > > Nice to know!!! Then what you want is to use > osg::Transform::setReferenceFrame() on the node holding the position of > the door, switc

[osg-users] [forum] Dragging individual model nodes

2019-04-23 Thread Maxim Senin
Hi, I have model - car. It consists of two doors, four wheels . I want select right door by mouse and move it to another area. How and through what should I implement it? Maybe there are examples of this? ... Thank you! Cheers, Maxim -- Read this topic online here:

Re: [osg-users] [forum] Dragging individual model nodes

2019-04-24 Thread Maxim Senin
icf80 wrote: > Hi, > > Get this book, it learns basic stufff: > > https://www.amazon.com/OpenSceneGraph-3-0-Beginners-Rui-Wang/dp/1849512825 > > Thank you! > > Cheers, > Catalin this is a bad answer. -- Read this topic online here:

Re: [osg-users] [forum] Dragging individual model nodes

2019-04-24 Thread Maxim Senin
icf80 wrote: > Hi, > > You have to find the node associated to your object by intersection: > > osgUtil::LineSegmentIntersector::Intersections ints; > bool bHasIntersections = > viewer->computeIntersections(viewer->getCamera(), > osgUtil::Intersector::WINDOW, x, y, ints,