Re: [osg-users] How to properly compile osg with EGL support?

2019-04-29 Thread Trajce Nikolov NICK
Hi Community,

we are back on this issue now days. I have tried the osgEGL project from
guthub and I am having the same problem I had before. Crash .. Here is the
stack trace. Any clue?

0glGetString0x762ccae9
1osg::State::initializeExtensionProcs()0x76d1e3ed
2osg::GraphicsContext::makeCurrent()0x76c2a4f2
3osg::GraphicsThread::run()0x76c30117
4OpenThreads::ThreadPrivateActions::StartThread(void *)
0x76873375
5start_thread
/usr/lib/debug/.build-id/b1/7c21299099640a6d863e423d99265824e7bb16.debug
3330x748d46ba
6clone/usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so109
0x7599741d




On Fri, Jan 25, 2019 at 9:47 AM Omar Álvarez  wrote:

> I have created a small repo with my changes based on your code. I will try
> to update the readme today, but compiling it is pretty straightforward.
>
> https://github.com/omaralvarez/osgEGL
>
> I still need to clean up the code and see what is going on with the
> warnings, but it looks like it is working properly with the OSG master
> branch.
>
> El jue., 24 ene. 2019 a las 23:49, Trajce Nikolov NICK (<
> trajce.nikolov.n...@gmail.com>) escribió:
>
>> Hi,
>>
>> here is how far we have got (not too far but I think it is in the right
>> direction). Let see if you have some
>>
>> On Thu, Jan 24, 2019 at 12:06 AM Omar Álvarez 
>> wrote:
>>
>>> Hi,
>>>
>>> Sounds good. Tomorrow morning I will compile it. I will probably also
>>> make some changes in how GL is used in CMake since to make EGL work you
>>> need to link to GLVND GL. Thanks for the tips to get OSG to compile.
>>>
>>> If you have some code already I will gladly take a look and see if I can
>>> make it work. I’ll be happy to share my findings with everybody. If
>>> everything goes ok we should have a working example and maybe a tutorial.
>>> Do you have a github repo?
>>>
>>> Regards,
>>>
>>> Omar.
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>
>>
>> --
>> trajce nikolov nick
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Convert .earth file to .osg format

2019-04-29 Thread Chris Hanson
On Mon, Apr 29, 2019 at 9:09 PM Steven Jones  wrote:

> I receive no error messages, and the build completes, but when I use
> osgviewer to inspect the .ive file, it is completely flat - no visible
> change in elevation - terrain resolution is perfect though.


  Is the imagery in place and proper resolution?


> Below is the command line that I've used to build the database - I've
> changed the LOD level to various settings, even up to 8, and tried other
> settings based on osgdem's -h info (such as --PagedLOD), but no joy.
> osgdem --geocentric -t C:\DB\N33\W118\004_Imagery -d
> C:\DB\N33\W118\001_Elevation -l 8 -o db.ive
>

  What elevation units is your elevation data in?

  Can you verify that OSG or osgDEM is able to read it ok otherwise? Do you
have any other known-good sample data to throw at it to see if your
elevation file values just aren't being understood correctly?


> Also, if I create the database as .osg instead of .ive, osgviewer throws
> the following error:  "Problem, no locator found in any of the terrain
> layers."
>

  Is your OSG even built with the deprecated .osg format plugin?

  You can save as the more modern .osgb (binary) and .osgt (text) formats
instead of .osg and .ive. They are preferred now, though I haven't tried
them with VPB/osgdem myself.

  If you can get it into .osg or .osgt format -- or use osgconv to convert
the successful .ive file(s) to .osg/.osgt you might be able to examine the
data values in the created rasters and see if there are all zeros or just
some VERY small values.


> Maybe I'm missing something obvious, but for the life of me I can't get
> past this point... ;-(   (It is very important that the database render the
> elevation in a 3D format.)
> One other item of interest is that neither --interpolate-imagery nor
> --interpolate-terrain work in osgDem... They both throw errors that they
> are unrecognized commands. The version of VPB/osgDem I'm running is 0.9.11
> (I was trying different options to generate the database when I encountered
> this.)
>

  Huh. I can't recall if I ever used them. You'd have to look into the
source to see if they're even there or if they're able to be made to work.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Convert .earth file to .osg format

2019-04-29 Thread Steven Jones
Chris,

I've been trying osgdem to build the database, and pointing to the overall 
imagery and elevation sub-directories works fine.

I receive no error messages, and the build completes, but when I use osgviewer 
to inspect the .ive file, it is completely flat - no visible change in 
elevation - terrain resolution is perfect though. (When I view the .earth file 
in osgearth_viewer, the terrain's elevation is rendered correctly.)

Below is the command line that I've used to build the database - I've changed 
the LOD level to various settings, even up to 8, and tried other settings based 
on osgdem's -h info (such as --PagedLOD), but no joy.

osgdem --geocentric -t C:\DB\N33\W118\004_Imagery -d 
C:\DB\N33\W118\001_Elevation -l 8 -o db.ive

Also, if I create the database as .osg instead of .ive, osgviewer throws the 
following error:  "Problem, no locator found in any of the terrain layers."

Maybe I'm missing something obvious, but for the life of me I can't get past 
this point... ;-(   (It is very important that the database render the 
elevation in a 3D format.)

One other item of interest is that neither --interpolate-imagery nor 
--interpolate-terrain work in osgDem... They both throw errors that they are 
unrecognized commands. The version of VPB/osgDem I'm running is 0.9.11 (I was 
trying different options to generate the database when I encountered this.)

... 

Cheers,

Steven

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75915#75915





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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, switching from RELATIVE_RF to ABSOLUTE_RF so its coordinates
> are in the global system and not in the coordinate system of the whole
> car.
> 
> -- 
> Alberto
> 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum

Is there an example or sample of such a solution?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75914#75914





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2019-04-29 Thread Alberto Luaces
"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, switching from RELATIVE_RF to ABSOLUTE_RF so its coordinates
are in the global system and not in the coordinate system of the whole
car.

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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
> 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum


I want  to completely detach the door!!!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75911#75911





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org