[osg-users] How are the MatrixTransform matrices of type parent and child nodes multiplied within the osg engine?

2023-01-05 Thread mirr...@gmail.com
osg::ref_ptr node = osgDB::readNodeFile("cow.osg"); osg::ref_ptr mt1 = new osg::MatrixTransform(); osg::Matrix m; m.makeTranslate(osg::Vec3(10.0f, 0.0f, 0.0f)); m.makeRotate(45.0f, 1.0f, 0.0f, 0.0f); mt1->setMatrix(m); // osg::ref_ptr mt2 = new osg::MatrixTransform();

[osg-users] Why does the osgDB::readNodeFile method return a null value when it reads gltf file?

2022-12-12 Thread mirr...@gmail.com
osg::ref_ptr loadedModel = osgDB::readNodeFile("F:/osgverse-master/assets/models/Sponza/Sponza.gltf"); -- 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] Why can't the operator switch CameraManipulator when adding CompositeViewer in this osgdeferred example?

2022-07-11 Thread mirr...@gmail.com
env:gl3 OpenSceneGraph /examples / osgdeferred Pipeline createPipelinePlainOSG(

[osg-users] Why is the texture object null in Frame Buffer Object Camera test program?

2021-12-26 Thread mirr...@gmail.com
env is osg3.6.4 // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace osg; void setGaussianBlurShader(osg::ref_ptr outStateSet, osg::ref_ptr hotspot) { osg::Texture2D *

[osg-users] Why can't I call computeLocalToWorldMatrix virtual function overwritten by osg::MatrixTransform?

2021-10-12 Thread mirr...@gmail.com
evn is win10 I want to implement drag and drop zooming with the screen when I rewrite module osgManipulator. #ifndef Dragger_H #define Dragger_H #include "Export.h" #include #include #include #include #include #include "Constraint.h" #include "Command.h" namespace osgManipulatorEx {

[osg-users] How to call computeLocalToWorldMatrix virtual function overwritten by osg::MatrixTransform?

2021-10-12 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 resolve the application crash when OSG integrates Silverlining on OsgQT?

2021-09-22 Thread mirr...@gmail.com
osg3.6.4& latest Silverlining Book Edition // https://github.com/openscenegraph/osgQt #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include

[osg-users] How to resolve the application crash when OSG integrates Silverlining on OsgQT?

2021-09-22 Thread mirr...@gmail.com
osg3.6.4& latest Silverlining Book Edition // https://github.com/openscenegraph/osgQt -- 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] Why is the scene black when using AMD Radeon R5 240 ?

2021-09-06 Thread mirr...@gmail.com
Core i7-8700 @ 3.20GHz AMD Radeon R5 240 Win10 system I use the following QT framework and test program. https://github.com/openscenegraph/osgQt #include #include #include #include #include #include #include #include #include #include #include #include #include #include

[osg-users] How to solve the problem of rendering color fusion when the transparent node and the text node are under the same parent node?

2021-06-18 Thread mirr...@gmail.com
osg::ref_ptr pTexture2D = createTexture2D(iconImage); if (pTexture2D.valid()) { osg::ref_ptr blend = new osg::BlendFunc; blend->setFunction(osg::BlendFunc::SRC_ALPHA, osg::BlendFunc::ONE_MINUS_SRC_ALPHA); quad_geo->getOrCreateStateSet()->setAttributeAndModes(blend, osg::StateAttribute::ON |

[osg-users] How does OSG deep copy models when loading ive files?

2021-04-26 Thread mirr...@gmail.com
win10 Why is the following function deep copy the same data? *class SCENETOOL_API NodeDeepCopy : public osg::CopyOp* * {* * public:* * inline NodeDeepCopy(CopyFlags flags = SHALLOW_COPY) :* * osg::CopyOp(flags) { _nodeCopyMap.clear(); }* * virtual osg::Node* operator() (const osg::Node* node)

[osg-users] Re: 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] 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] 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] 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

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

[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

[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 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] 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] 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] 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;

[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] Re: 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(); >>

Re: [osg-users] How do I render a.ive model with shader?

2020-12-09 Thread mirr...@gmail.com
i find this setUseVertexAttributeAliasing must be set in Osg when using higher versions of Shader. Otherwise it won't work gc->getState()->setUseVertexAttributeAliasing(true); 在2020年11月28日星期六 UTC+8 上午11:14:29 写道: > I'm new to this. To be honest, I don't understand. > > I want to know how

Re: [osg-users] Why not show textures when rendering geometry with PrimitiveSet::TRIANGLES using Shader330 version?

2020-12-09 Thread mirr...@gmail.com
i find this setUseVertexAttributeAliasing must be set in Osg when using higher versions of Shader. Otherwise it won't work gc->getState()->setUseVertexAttributeAliasing(true); 在2020年12月5日星期六 UTC+8 下午5:22:22 写道: > On Sat, 5 Dec 2020 at 04:31, OpenSceneGraph Users < >

Re: [osg-users] Why not show textures when rendering geometry with PrimitiveSet::TRIANGLES using Shader330 version?

2020-12-04 Thread mirr...@gmail.com
My working environment is closed and I cannot provide complete code. Does the geometry of triangles primitives rendered in Shader 330 version lack any properties? 在2020年12月5日星期六 UTC+8 上午7:37:28 写道: > I doubt anyone will be able to help given the information. You are diving > into providing

Re: [osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?

2020-11-27 Thread mirr...@gmail.com
Is there a problem with adding or removing OSG nodes directly in the Qt Widget events? My idea is to send OSG USER events to complete the operation of adding and removing OSG nodes. 在2020年11月25日星期三 UTC+8 下午3:56:36 写道: > On Wed, 25 Nov 2020 at 02:04, OpenSceneGraph Users < >

Re: [osg-users] How do I render a.ive model with shader?

2020-11-27 Thread mirr...@gmail.com
I'm new to this. To be honest, I don't understand. I want to know how to render a complex OBJ model with Shader.Do you want to render the children of the OBJ model separately? 在2020年11月25日星期三 UTC+8 下午3:59:26 写道: > You can't expect people to help you when you don't explain the problem you >

Re: [osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?

2020-11-24 Thread mirr...@gmail.com
I Send USER events loading model from qt . Is this the right approach? I want the progress bar in the QT to show that the model is loaded. So, Check whether USER evnet has been processed completely. Are there any good Suggestions? 在2020年11月18日星期三 UTC+8 上午12:30:37 写道: > On Tue, 17 Nov

Re: [osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?

2020-11-20 Thread mirr...@gmail.com
thank you for your reminder . I Send USER events loading model from qt . Is this the right approach? I want the progress bar in the QT to show that the OSG Scene is loaded. So, Check whether USER evnet has been processed completely. 在2020年11月18日星期三 UTC+8 上午12:30:37 写道: > On Tue, 17

Re: [osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?

2020-11-16 Thread mirr...@gmail.com
Thank you for your questions.I want to know if the sent GUIEventAdapter::USER message has been processed completely. Check whether GUIEventAdapter::USER has been processed completely. Should I count the USER by myself? 在2020年11月16日星期一 UTC+8 下午5:42:05 写道: > On Mon, 16 Nov 2020 at 05:05,

Re: [osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?

2020-11-15 Thread mirr...@gmail.com
sorry,I mean what method get the number of GUIEventAdapter::USER in OSG? 在2020年11月12日星期四 UTC+8 上午3:51:21 写道: > EventHandlers are given single events not queues. > > If you want to process the while event queue then you'll need to do this > in the main loop. > -- You received this message

[osg-users] How can I know the number of GUIEventAdapter::USER in the message queue for GUIEventHandler?

2020-11-10 Thread mirr...@gmail.com
system Win10 ,osg 3.6.4, osgearth 2.10.0,GTX1660 -- 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

Re: [osg-users] How to use setUseVertexAttributeAliasing?Why is there an error in the model texture display when this function is turn on?

2020-10-15 Thread mirr...@gmail.com
sorry,I have reposted it, please help me check it out https://groups.google.com/g/osg-users/c/Cg7AXJ4fEzA 在2020年10月12日星期一 UTC+8 下午4:35:10 写道: > You haven't provided any information about your hardware, OS, OSG version, > what GL version you are targeting, how you have constructed your scene

[osg-users] Re: Why can't ive format model texture show when turn on setUseVertexAttributeAliasing(true)?

2020-10-15 Thread mirr...@gmail.com
sorry,I have reposted it, please help me check it out https://groups.google.com/g/osg-users/c/Cg7AXJ4fEzA 在2020年10月15日星期四 UTC+8 下午1:41:58 写道: > env is system Win10 ,osg 3.6.4, osgearth 2.10.0,GTX1660 TI > > Why is there an error in the model texture display when this function is > turn on? >

[osg-users] Why does the modified 0SGsimpleGl3 sample render cow.OSg model not show textures?

2020-10-10 Thread mirr...@gmail.com
#include #include #include #include #include #include #include #include #include void configureShaders( osg::StateSet* stateSet ) { const std::string vertexSource = "#version 130 \n" " \n" "uniform mat4 osg_ModelViewProjectionMatrix; \n" "uniform mat3

[osg-users] To set the glContextVersion number in the code, do I need cmake to configure the OSG_GL3_AVAILABLE option?

2020-10-10 Thread mirr...@gmail.com
const int width( 800 ), height( 450 ); const std::string version( "3.0" ); osg::ref_ptr< osg::GraphicsContext::Traits > traits = new osg::GraphicsContext::Traits(); traits->x = 20; traits->y = 30; traits->width = width; traits->height = height; traits->windowDecoration =

[osg-users] Re: Are there any good effects libraries that can be integrated into OSG?

2020-09-29 Thread mirr...@gmail.com
- hi~Vaillancourt .What effects libraries are there to implement shadow and SSAO rendering effects for scenes? 在2020年9月21日星期一 UTC+8 下午11:43:34 写道: > Hello Mirr..o? > > You might want to describe what features you're after exactly, others will > be able to get you

[osg-users] Are there any good effects libraries that can be integrated into OSG?

2020-09-20 Thread mirr...@gmail.com
~~~ -- 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