Re: [osg-users] How to properly transfer texture coordinates in geometric shaders in Shader #130 version?

2020-12-12 Thread mirr...@gmail.com
On Wednesday, December 9, 2020 at 9:03:47 PM UTC-5 mirr...@gmail.com > wrote: > >> env is win10 osg3.6.4 GTX1660 >> [image: QQ图片20201210095944.jpg] >> >> osg::ref_ptr createProgram() >> { >> osg::Program *program = new osg::Program(); >>

[osg-users] Is there any way to scale the X axis of the model as well as the XY axis?

2021-01-08 Thread mirr...@gmail.com
sys win10 osg3.6.4 -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[osg-users] Is there any way to osgManipulator::ScaleAxisDragger scale the X axis of the model as well as the XY axis?

2021-01-08 Thread mirr...@gmail.com
Win10 GTX3.x osg3.6.4 -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-19 Thread mirr...@gmail.com
win10 gtx1080 osg3.6.4 osg::ref_ptr image = osgDB::readImageFile( "picture.bmp" ); osg::ref_ptr texture = new osg::Texture2D; texture->setImage( image.get() ); -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from

[osg-users] What numerical parameters are passed when osgUtil::PolytopeIntersector is set MODEL?

2021-01-24 Thread mirr...@gmail.com
void pick(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer* viewer) { osgUtil::PolytopeIntersector* picker; double mx = ea.getXnormalized(); double my = ea.getYnormalized(); double w = 0.05; double h = 0.05;

Re: [osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-24 Thread mirr...@gmail.com
Thank you very much, but this method only works for four point texture coordinates 在2021年1月19日星期二 UTC+8 下午10:32:48 写道: > This should do a 180 rotation: > image->flipVertical(); > image->flipHorizontal(); > Laurens. > > > On Tue, Jan 19, 2021 at 1:21 PM mirr...@gmai

[osg-users] How do I set NodeTrackerManipulator to rotate with the nodes?

2021-01-03 Thread mirr...@gmail.com
W10 gtx3.x OSG3.6.4 osgGA::NodeTrackerManipulator::TrackerMode trackerMode = osgGA::NodeTrackerManipulator::NODE_CENTER_AND_AZIM; osgGA::NodeTrackerManipulator::RotationMode rotationMode = osgGA::NodeTrackerManipulator::TRACKBALL; osg::ref_ptr glider =

[osg-users] How do I flip the texture coordinates of an Image object?

2021-01-05 Thread mirr...@gmail.com
Win10 GTX3.x osg3.6.4 // test for read image osg::ref_ptr texture2d = new osg::Texture2D; osg::ref_ptr img = new osg::Image; img=osgDB::readImageFile("C:\\Users\\Public\\Pictures\\Sample Pictures\\Tulips.jpg"); osg::ref_ptr img2 = new osg::Image;

Re: [osg-users] Why does osg::AutoTransform node disappear when the scene is first created?

2021-03-10 Thread mirr...@gmail.com
Thank you for your question and answer.I have tested Geode to add OSG ::Geometry and this error will also occur? 在2021年3月8日星期一 UTC+8 下午5:25:41 写道: > Hi ? > > There isn't any way to know what settings are provoking these errors, the > best thing you can do is compile a debug version of the OSG

[osg-users] Why are the two osg::Polytope results different when using the transform method?

2021-03-13 Thread mirr...@gmail.com
win10 // osg::Matrixd proj = osg::Matrixd::identity(); proj.makePerspective(60, frustumAspectWidth/frustumAspectHeight, frustumNear, frustumFar); // const double mynear = proj(3, 2) / (proj(2, 2) - 1.0); const double myfar = proj(3, 2) / (1.0 + proj(2, 2)); //

[osg-users] How to use the Intersector: : VIEW mode when osgUtil: : PolytopeIntersector and scene node intersection

2021-03-13 Thread mirr...@gmail.com
win10 BoundingBox bb; bb._min = osg::vec3d(0,0,0); bb._max = osg::vec3d(1000,1000,1000); Polytope poly; poly.setToBoundingBox(bb); // osg::ref_ptr picker = new osgUtil::PolytopeIntersector(osgUtil::Intersector::VIEW,poly); picker->setPrecisionHint(osgUtil::Intersector::USE_DOUBLE_CALCULATIONS);

Re: [osg-users] Please mirro187, work on your communication

2021-03-16 Thread mirr...@gmail.com
Sorry, I don't have Internet in my work environment.Unable to provide complete test information 在2021年3月16日星期二 UTC+8 下午5:20:25 写道: > Do you not wonder yourself, why hardy anyone answers to you? > > If you put a bit more work into your messages, then this might change > quite a bit, because

[osg-users] How do you create the osg::Planeof PolytopeIntersector that will give you the right intersection?

2021-03-16 Thread mirr...@gmail.com
win10 // osg::Matrixd proj = osg::Matrixd::identity(); proj.makePerspective(60, frustumAspectWidth/frustumAspectHeight, frustumNear, frustumFar); // const double mynear = proj(3, 2) / (proj(2, 2) - 1.0); const double myfar = proj(3, 2) / (1.0 + proj(2, 2)); // const

[osg-users] How does OsgAnimation: : Vec3CubicBezier three p, I, o parameters work?

2021-02-24 Thread mirr...@gmail.com
win10 -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[osg-users] What does this OsgAnimation: : Vec3CubicBezier three p, I, o parameters mean?

2021-02-24 Thread mirr...@gmail.com
win10 -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

[osg-users] How to change QOpenGLWidget in OsgQt module to another thread rendering?

2021-02-20 Thread mirr...@gmail.com
win10 -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: [osg-users] How can I hide this white geometry without using the color transparency method and intersect?

2021-02-22 Thread mirr...@gmail.com
() { OpenThreads::ScopedReadLock locker(_osgMutex); if (_isFirstFrame) { _isFirstFrame = false; m_renderer->getCamera()->getGraphicsContext()->setDefaultFboId(defaultFramebufferObject()); } m_renderer->frame(); } 在2021年2月8日星期一 UTC+8 下午9:30:15 写道: > On Mon, 8 Feb 2021 at 13:21, mirr...@g