Discussion:
[osg-users] Osgdem created terrains not displaying textures on MacOS
D.J. Caldwell
2018-10-24 19:31:44 UTC
Permalink
We have run into an issue using textured terrain files under the MacOS that
have been created using the osgdem utilities of Virtual Planet Builder. The
terrains have been created on both Linux and the Mac directly and display
OK under Linux. On the Mac we are seeing the following error when
displaying the terrain file “Warning: detected OpenGL error ‘invalid
operation’ at after RenderBin::draw(..)”. The terrain is displayed but no
texture is displayed.


We have a cross platform software system developed for solar system scale
visualization of spacecraft systems that runs under Windows, Linux and
Mac. The Mac port is a recent addition. We provide the ability to have
terrain for planets and moons. These terrain files are working fine under
Windows and Linux, but are not displaying properly (as described above) on
the Mac. We are using OSG 3.4 and VPB-master as of that release. We have
created terrain files on both the Linux and Mac systems with the resultant
model files working on Linux, regardless of where the files were created.
Neither work on Mac properly. The Mac Laptop is running 10.12.6 Sierra with
a GeForce GT750M 2G graphics card.


Some additional information: Other model files of all different formats
seem to work fine on the Mac including ive, osgb, flt, fbx, and obj. These
models display fine with their textures on the Mac.


A simple test we ran was downloading the Blue Marble imagery, specifically
world.topo.bathy.200410.3x5400x2700.jpg and created a whole earth model
using “osgdem --terrain --geocentric --radius-polar 6371000
--radius-equator 6371000 --whole-globe -t
world.topo.bathy.200410.3x5400x2700.jpg –l 4 -o
wholeEarthBlueMarbleTest.ive”. This displays fine on our Linux machine but
not the Mac. We created the terrain on both machines for testing
purposes. We have also added the texture type options, trying compressed,
rgba-compressed, rgba, rgb-16.


Any insight into this problem would be appreciated.


Thanks...


D.J.
Remo Eichenberger
2018-10-24 20:10:39 UTC
Permalink
Hi,

Try to use OSG 3.6.3 with activated GLCore on MacOSX. For example: We only have minor issues with osgEarth on MacOSX. It works great.

Cheers,
Remo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75120#75120
Chris Hanson
2018-10-24 20:29:30 UTC
Permalink
Have you cranked up the OSG Notify level higher to see if OSG is logging
any particular OpenGL errors?

Have you tried running it under a GL debugging tool like Nvidia's NSight
Eclipse ( https://developer.nvidia.com/nsight-eclipse-edition ) or APItrace
( https://apitrace.github.io/ )?

Either of those might be able to pinpoint what extension you're trying to
use that isn't working, or other OpenGL MacOS issues that are triggering
the failure.

If you don't pin it down, email me privately and I can give you some other
suggestions. We've worked on similar tools and multiple platforms and we
should chat anyway.
Post by Remo Eichenberger
Hi,
Try to use OSG 3.6.3 with activated GLCore on MacOSX. For example: We only
have minor issues with osgEarth on MacOSX. It works great.
Cheers,
Remo
------------------
http://forum.openscenegraph.org/viewtopic.php?p=75120#75120
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Chris 'Xenon' Hanson, omo sanza lettere. ***@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 <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
D.J. Caldwell
2018-10-25 14:41:08 UTC
Permalink
Thanks for the advice.

Remo, it appears we are having some success with OSG 3.6.3. We still
need to build and test our main project, but it looks like osgviewer
is able to show both the terrain and the texture on a Mac.

Chris: we were not able to immediately see anything meaningful in the
OSG Notify output, but we may keep digging on that front. Your
suggestion of GL debugging tools is one we had not thought of, yet. We
may pursue that line of research as time permits.

Thanks, again...

D.J.
Have you cranked up the OSG Notify level higher to see if OSG is logging any particular OpenGL errors?
Have you tried running it under a GL debugging tool like Nvidia's NSight Eclipse ( https://developer.nvidia.com/nsight-eclipse-edition ) or APItrace ( https://apitrace.github.io/ )?
Either of those might be able to pinpoint what extension you're trying to use that isn't working, or other OpenGL MacOS issues that are triggering the failure.
If you don't pin it down, email me privately and I can give you some other suggestions. We've worked on similar tools and multiple platforms and we should chat anyway.
Post by Remo Eichenberger
Hi,
Try to use OSG 3.6.3 with activated GLCore on MacOSX. For example: We only have minor issues with osgEarth on MacOSX. It works great.
Cheers,
Remo
------------------
http://forum.openscenegraph.org/viewtopic.php?p=75120#75120
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...