[osg-users] Re: need help compiling statically

2020-05-27 Thread Rodrigo Dias
So, no ideas? On Friday, May 15, 2020 at 4:57:52 AM UTC-3, Rodrigo Dias wrote: > > Hi! > > My program is working fine in my own machine. I want to test it in a > different machine now (both using Debian 10), so I want to compile it > statically. For dynamic compiling, I use

Re: [osg-users] Re: texture and DEM data for small area (free)

2020-05-27 Thread Rodrigo Dias
oogle Earth printscreen, which can be done in QGIS, for instance. On Wednesday, May 27, 2020 at 3:35:23 PM UTC-3, Nagendra Babu Yeruva wrote: > > thank you. > but where i get texture data for that particular dem data?? > > On Wed, May 27, 2020 at 11:57 PM Rodrigo Dias > w

Re: [osg-users] Hide mouse cursor from CameraManipulator

2020-05-11 Thread Rodrigo Dias
Add setAllowThrow(false); to your manipulator's constructor. On Monday, January 11, 2016 at 7:00:56 AM UTC-2, Bernard Dalton wrote: > > Thanks for your reply and sorry for the late answer (week-end :) ). > This work as intended and my CameraManipulator is nearly done, I still > have one issue

[osg-users] moving camera from FirstPersonManipulator/StandardManipulator without mouse button

2020-05-11 Thread Rodrigo Dias
I'm trying to adapt camera movement from FirstPersonManipulator or StandardManipulator. I've found an example here and was able to compile it. However, I can't seem to find how to move the camera when there's no mouse button pressed. How

[osg-users] Re: moving camera from FirstPersonManipulator/StandardManipulator without mouse button

2020-05-11 Thread Rodrigo Dias
return performMovementLeftMouseButton( eventTimeDelta, dx, dy ); // <-- HERE } On Monday, May 11, 2020 at 4:39:28 AM UTC-3, Rodrigo Dias wrote: > > I'm trying to adapt camera movement from FirstPersonManipulator or > StandardManipulator. I've found an example here

Re: [osg-users] How to hide mouse cursor?

2020-05-11 Thread Rodrigo Dias
To make it work, I have moved it to after viewer.realize(); like that: viewer.realize(); osgViewer::Viewer::Windows windows; viewer.getWindows(windows); for(auto &window : windows) { window->useCursor(false); window->setCursor(osgViewer::GraphicsWindow::NoCursor);

Re: [osg-users] How to get current position of osgViewer camera

2020-05-12 Thread Rodrigo Dias
I managed to do that inside the `handle` method: osg::Vec3d eyePos; osg::Matrix matrix = _viewer->getCameraManipulator()->getMatrix(); eyePos = matrix.getTrans(); lat = eyePos.y(); lon = eyePos.x(); alt = eyePos.z(); On Wednesday, August 22, 2012 at 3:21:20 PM UTC-3, Paul

Re: [osg-users] setViewMatrixAsLookAt not working to set the initial camera position

2020-05-12 Thread Rodrigo Dias
day, January 8, 2019 at 1:39:53 AM UTC-2, sam wrote: > > After you set the home position try: > viewer.getCameraManipulator()->home(1); > > Sorry I'm not right in front of my computer right now. > > On Mon, Jan 7, 2019 at 7:26 PM Rodrigo Dias > wrote: &g

Re: [osg-users] [forum] Change the position and rotation angle of the camera

2020-05-12 Thread Rodrigo Dias
Dear Robert, this doesn't answer the question. Most of us use a manipulator, so the question is: how to change camera position using a CameraManipulator. Is this possible? Rodrigo. On Thursday, April 17, 2014 at 5:22:32 AM UTC-3, Robert Osfield wrote: > > Hi Becky, > > If you viewer has a Cam

Re: [osg-users] [3rdparty] How to change camera's yaw and pitch, and move front, back and sideways according to that?

2020-05-12 Thread Rodrigo Dias
Hi Sam, I managed to implement my own manipulator (OVNIController, derived from FirstPersonManipulator), but still can't change the camera position (I want to change it in the beginning of the program, and also when the user press the Home key). You can see my code here: https://github.com/ec

Re: [osg-users] [forum] Change the position and rotation angle of the camera

2020-05-12 Thread Rodrigo Dias
Hi Becky, I managed to change the camera position using a manipulator called controller. viewer.setCameraManipulator(controller); viewer.realize(); // osg::Matrix matrix; // matrix.makeLookAt( osg::Vec3(), osg::Vec3(), osg::Vec3() ); osg::Quat quad; // matrix.get(quad);

Re: [osg-users] [3rdparty] Use PNG as texture for terrain in osgEarth

2020-05-13 Thread Rodrigo Dias
Solved: https://github.com/eco-info/osgCookbook/blob/master/outros/terreno1/terreno1.cpp On Wednesday, January 16, 2019 at 2:04:12 PM UTC-2, Rodrigo Dias wrote: > > Thank you, Glenn, but this part was already solved. > > About sending the camera's coordinates to screen t

[osg-users] need help compiling statically

2020-05-15 Thread Rodrigo Dias
Hi! My program is working fine in my own machine. I want to test it in a different machine now (both using Debian 10), so I want to compile it statically. For dynamic compiling, I use: g++ terreno1.cpp -losg -losgDB -losgGA -losgSim -losgText -losgUtil -losgViewer -o terreno1 For static, I le

[osg-users] Assign Vec3d to Node

2020-05-15 Thread Rodrigo Dias
Hi, I'm creating objects that must fall by gravity. So I need to assign a Vec3d, representing speed, to each Node. Is there a proper way to do it? Maybe some variable inside the Node, Geode, ShapeDrawable, etc, or some function for this kind of variable assignment? Or must I create an array ou

Re: [osg-users] Assign Vec3d to Node

2020-05-15 Thread Rodrigo Dias
Hi Trajce, thank you, it's working! Rodrigo. On Friday, May 15, 2020 at 2:23:17 PM UTC-3, Trajce Nikolov NICK wrote: > > Hi, > > have a look at Node::setUserValue > > On Fri, May 15, 2020 at 7:09 PM Rodrigo Dias > wrote: > >> Hi, >> >> I'm c

[osg-users] Cannot compile examples from Cookbook using PickHandler class

2020-05-18 Thread Rodrigo Dias
Hi, Some examples from the Cookbook (book by Rui Wang & Xuelei Qian) use this code snippet, given at page 39. class PickHandler : public osgGA::GUIEventHandler { public: // This virtual method must be overrode by subclasses. virtual void doUserOperations( osgUtil::Li

[osg-users] How to animate the camera in the beginning of the program, then pass it to the controller?

2020-05-18 Thread Rodrigo Dias
I'm showing a large map over a terrain. In the beginning the user sees the whole map from above (call it "position 0"). I want to create an animation before that, with the camera approaching the terrain from very far, up to the initial position (position 0). Only then the user will be able to c

Re: [osg-users] zoom to object with camera

2020-05-19 Thread Rodrigo Dias
One option is to try to adapt the code in the first example of the 5th chapter of "OpenSceneGraph 3 Cookbook", by Rui Wang & Xuelei Qian. I'm trying, but still no success. On Thursday, June 14, 2012 at 3:51:15 AM UTC-3, Jason Anderssen wrote: > > Anyone got a suggestion for this, or am I in the

Re: [osg-users] Text Outline pixelated on close up

2020-05-19 Thread Rodrigo Dias
Thank you, Robert! freetype solved it. On Tuesday, May 19, 2020 at 10:15:25 AM UTC-3, OpenSceneGraph Users wrote: > > Hi Rodrigo, > > From the looks of it you are using the osgText's default font that really > is just there as a fallback, it's not intended for normal application > usage. The O

[osg-users] Adding billboards with different names under the same geometry?

2020-05-20 Thread Rodrigo Dias
Hi, I'm displaying icons over the terrain as billboards (always facing the user). These icons represent structures and landmarks (hydroelectric dams, national parks, mountain peaks, mining projects...), so I'll load some tens of thousands of them, and show some hundred or a few thousand at a ti

Re: [osg-users] Correct way to set auto scale with osg::AutoTransform

2020-05-21 Thread Rodrigo Dias
On Sunday, September 9, 2018 at 10:13:27 AM UTC-3, tom spencer wrote: > > > Have you tried removing the calls to 'setMinimumScale' and > 'setMaximumScale'? Do you have another static object(not auto scaled) in > your scene? > I'm having the same problem. If I want to limit the scale, why remove

Re: [osg-users] Adding billboards with different names under the same geometry?

2020-05-21 Thread Rodrigo Dias
Thank you for your reply, Robert, but one of us is not understanding the other. "if you are reuse the same subgraph the node above the reused part like the osg::Billboard is what is unique so put your unique name on that" Actually, I have only one osg::Billboard (geodeHidreletrica) for hundreds

Re: [osg-users] Adding billboards with different names under the same geometry?

2020-05-21 Thread Rodrigo Dias
Ah, right, now I see it! Thank you both! It's working now. On Thursday, May 21, 2020 at 5:48:32 AM UTC-3, OpenSceneGraph Users wrote: > > Hi Rodrigo, > > from my understanding the number of Billboards, each an individual > instance, is not > the problem in OSG. The cull traversal has to handle i

Re: [osg-users] fontconfig library error in OSG 3.6.4...

2020-05-21 Thread Rodrigo Dias
There might be a better option, but one workaround may be to make a copy of arial.ttf in the specified path ( C:\Windows\Fonts\ ). On Thursday, May 21, 2020 at 12:23:53 PM UTC-3, OpenSceneGraph Users wrote: > > Hello, > > I've just upgraded to OSG 3.6.4 because of upgrading to osgEarth 2.10 > w

[osg-users] Re: texture and DEM data for small area (free)

2020-05-27 Thread Rodrigo Dias
Hi, Nagendra! You can find very good DEM data at http://srtm.csi.cgiar.org/srtmdata/ You can also find other interesting data here: https://gisgeography.com/free-global-land-cover-land-use-data/ https://sedac.ciesin.columbia.edu/data/sets/browse?facets=theme:land-use&facets=data-type:raster Be