[osg-users] [OSG 3.6.3 Core Profile GL 3+] Weird clipping behaviour in Fragment Shader

2019-09-18 Thread Dan johansson
Hi, New user here, doing a fairly simple program test so far with core profile settings. I'm rendering the program through Qt's QOpenGLWidget, even though i don't think this is causing any particular issues. I'm setting up my Cube model and personal shaders like this Code:

[osg-users] Wrapping Text around object as texture

2019-10-15 Thread Dan johansson
Hello again ! Today i am attempting to create a label on my meshes. The image below shows how i set it up with the osgText::Text class but i would like to extend it to be able to set the texture on the actual mesh itself. [url] https://imgur.com/a/ZdyNQsG [/url] The goal is to make the text

[osg-users] Osg Text issues

2019-11-19 Thread Dan johansson
Hi, I am creating a simple coordinate system and trying to use the osg text for axis labelling and tick information. This is the settings i use for creating the text Code: OsgText2D::OsgText2D() : textGeode_(new osg::Geode), osgText_(new osgText::Text) {

Re: [osg-users] Osg Text issues

2019-11-19 Thread Dan johansson
Don't mind the Code: textType_ = GI::TextType::TEXT_3D; line, its a typo. Sorry for that confusion //Dan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76915#76915 ___ osg-users mailing list

Re: [osg-users] Osg Text issues

2019-11-20 Thread Dan johansson
Hi Robert I understand its difficult to help with such little information, unfortunately that is all there is so i cannot provide more code regarding this specific case. The osgtext example looks splendid, i copied and replaced my code with an example there and it now looks much cleaner. I'm

Re: [osg-users] [OSG 3.6.3 Core Profile GL 3+] Weird clipping behaviour in Fragment Shader

2019-09-23 Thread Dan johansson
Perfect, that solved it. Much appreciated , thanks ! //Dan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76730#76730 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Dan johansson
Hi, I've ran into a seemingly easy problem that i have failed to find an answer for. I've simplified the problem here to quickly describe my question. I'm setting a Pat node as parent to another Pat node and re positioning it. The updated position is not translated to the child and i wonder

Re: [osg-users] Updating a PositionAttitudeTransform node from another PositionAttitudeTransform node

2019-10-09 Thread Dan johansson
Hi! Thanks for the reply, i understand the issue. I'm not really understanding why this isn't built in automatically though. This simple code seemed to do the trick even with multiple Pat's chained Code: osg::NodePathList fullNodePath = node2->getParentalNodePaths(); osg::NodePath

[osg-users] Rotating Osg Text

2020-01-26 Thread Dan johansson
Hello everyone! I am using the osgText::Text class for displaying texts in my program, the texts always facing the camera, thus i have applied the condition setAutoRotateToScreen(true) value. I have a request to rotate the text , i.e. not just displayed horizontally but at any given angle.