Re: [osg-users] Thoughts on Gitter, or other forums as alternative to our current forum/ML?

2018-09-14 Thread Chris Hanson
I have no experience. I'd maybe suggest Google Groups as a lazy way out.

On Fri, Sep 14, 2018 at 12:27 PM Robert Osfield 
wrote:

> Hi All,
>
> I would like feedback on the community about possible forum/mailing
> list tools that we could adopt for the OSG and VSG projects.  I don't
> have any significant experience with Gitter but have just started
> looking into it - I see that osgjs has a presence.
>
> Would love to hear what others experiences have been with Gitter or
> other similar tools/services.
>
> Cheers,
> Robert.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
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] osgQt + OSG 3.6.2 Status

2018-09-14 Thread Robert Osfield
Hi Werner,

On Tue, 11 Sep 2018 at 12:02, Werner Modenbach
 wrote:
> My integration is dated April 2013 and I didn't need any changes since then.

It might not have any issues with the usage case you have, but it
doesn't necessarily mean that it will work with all usage cases.

One area that broke causing problems for some users was when render to
texture was used with a Qt/OSG application.  The OSG would set/reset
OpenGL glRead/DrawBuffer state based on the values set up for the
osg::Camera.  All the src/osgViewer/config implementation correctly
set the Camera::setDrawBuffer/setReadBuffer() values for single and
double buffer windows rather than leave as defaults.

You may be able to get away with not setting the
Camera::setDrawBuffer/ReadBuffer settings if you don't use render
texture, but even then you are still leaving a bit dangerously, you
are basically running with "uninitialzed" values.

In the osgQt repo we fixed things so that the examples do correctly
set up the osg::Camera, but we can't fix 3rd party code that is living
out there in user applications, the best we can do is discuss the
issue.

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


Re: [osg-users] osgQt include files

2018-09-14 Thread Mathieu MARACHE
Hi Michael,

I'd like the output of the command :

cmake -DOpenSceneGraph_DEBUG=On ./

Regards
--
nǝıɥʇɐƜ


On Wed, 12 Sep 2018 at 02:56, Michael W. Hall  wrote:

> I attached the log file.  When I do cmake, I am just doing cmake ./  I am
> not really sure what you are asking for in your second question.
>
> On Mon, 2018-09-10 at 18:12 +0200, Mathieu MARACHE wrote:
>
> Hi Michael,
>
> It's difficult to tell what went wrong, could you try to add the
> 'OpenSceneGraph_DEBUG' variable when running cmake ? And also include the
> parameters you set to your cmake call for osgQt ?
>
> > cmake -DOpenSceneGraph_DEBUG=True ...
>
> Regards
> --
> nǝıɥʇɐƜ
>
>
> On Sun, 9 Sep 2018 at 08:04, Michael W. Hall  wrote:
>
> Got the osgQt from github.  When I try to configure I am getting the
> following error.
>
>  CMake Error at
>  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
>  (message):
>Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
>OSGDB_FOUND OSGGA_FOUND OSGUTIL_FOUND OSGTEXT_FOUND OSGVIEWER_FOUND
>OSGWIDGET_FOUND OPENTHREADS_FOUND) (found suitable version "3.7.0",
> minimum
>required is "3.0.0")
>  Call Stack (most recent call first):
>/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
>  (_FPHSA_FAILURE_MESSAGE)
>/usr/share/cmake-3.5/Modules/FindOpenSceneGraph.cmake:234
>  (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>CMakeLists.txt:130 (FIND_PACKAGE)
>
> I have osg 3.7.0 installed.  Any idea why it is not finding it?
>
> Thanks,
> Michael
>
> On Sun, 2018-08-12 at 08:09 -0500, Michael W. Hall wrote:
>
> Thanks,
>
> On Sun, 2018-08-12 at 08:36 +0300, Konstantin Podsvirov wrote:
>
> Hello Michael!
>
> 0:13, 12 August 2018 г., "Michael W. Hall" :
>
> This may have been answered.  I got the latest version of
> OpenSceneGraph from github.  It is version 3.7.  I built and installed.
> When I try to compile my program I am getting the following error:
>
> In file included from
> /home/hallmw/Projects/osgMap/applications/osgmap/osgmap.cpp:12:0:
> /home/hallmw/Projects/osgMap/include/osgmap/MainWindow:31:34: fatal
> error: osgQt/GraphicsWindowQt: No such file or directory
>
> I can check that directory and there are no header files in it.  Any
> idea whey they are missing?
>
> Thanks,
> Michael
>
>
> The osgQt now is a separate project.
> You should build and install osgQt too.
>
> https://github.com/openscenegraph/osgQt
>
> --
> Regards,
> Konstantin Podsvirov
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraphorg/listinfo.cgi/osg-users-openscenegraph.org
> 
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://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
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgQt + OSG 3.6.2 Status

2018-09-14 Thread Mathieu MARACHE
Hi Werner,

We share the same belief around Qt.

Concerning your implementation, it's not clear how you integrate the OpenGL
window into Qt. If you are willing to share a simple application that
demonstrates your setup that would be a nice start to understand and
discuss your approach ?

Recent versions of Qt5 use OpenGL to render many UI components and thus it
is not unfrequent to have many OpenGL context created inside an
application. It is my understanding that QOpenGLWidget and QOpenGLWindow
manage to make these OpenGL context handling transparent.
The main difference between these two is that the QOpenGLWidget is rendered
inside a ImageBuffer or something like that and that the QOpenGLWindow
mimics the Qt4's QGLWidget we were used to allowing QuadBuferring etc.. But
being a Window lots of the Widget inherited things have to be implemented
(mostly UI events).

Regards
--
nǝıɥʇɐƜ


On Tue, 11 Sep 2018 at 13:02, Werner Modenbach 
wrote:

> Hi Mathieu,
>
> thanks for your support for OSG/Qt integration. I think there are really
> many people using OSG together with Qt.
> Qt is just great for building multi environment user interfaces.
> But there is one thing I don't really understand. There is some discussion
> sometimes about difficulties in this integration.
> My integration is dated April 2013 and I didn't need any changes since
> then.
>
> class Cl_3D_OsgViewer_QT : public QWidget, public osgViewer::Viewer {...
>
>  It works without any problems with every version of Qt since that time.
> So where is the problem?
>
> OK, I'm not using VS 20xx but Qt Creator and g++ instead. Maybe that makes
> the difference. But in this case
> it isn't really a problem of Qt integration but a VS problem.
> I see that some people tend integrating OSG into QOpenGLWindow.  In my
> opinion this is a stony way
> because Qt GL wasn't that stable and finally decided since many years now.
> So things change frequently
> and this is always causing headache for keeping integrations running.
>
> On the other hand I think there is nothing more developed and stable than
> QWidget.
> If someone needs help send me a PM and I'm willing to share my integration
> class.
>
> - Werner -
>
> Am 10.09.2018 um 18:42 schrieb Mathieu MARACHE:
>
> Back from holidays...
>
> Community support is thin when considering OpenSceneGraph with Qt. I am
> currenlty the only maintainer of osgQt because I have a software using it
> and I didn't want the project to be tossed out.
>
> The Qt4 way of doing things with legacy osgQt (that was droped from
> OpenSceneGraph) doesn't fit well with the Qt5 way of doing things. Since
> Qt5.7 there are even incompatibilities (black screens, etc.).
>
> Qt4 support is getting difficult, even debian is dropping Qt4 (
> https://wiki.debian.org/Qt4Removal).
>
> In anticipation I have proposed to drop Qt4 and concentrate only on Qt5.
> Robert only asked to keep the Qt4 version around and make it clear which
> version of osg compiles with which version/branch of osgQt.
>
> There is a feature branch (since Feb '18) of the Qt5 way of doing things
> awaiting testing and validation from the community. This is the code I use
> in my application which was crafted by paid support from KDab's Mike Krus
> (from which I had authorization to open source).
>
> https://github.com/openscenegraph/osgQt/tree/feature/osgQOpenGL
>
> Regards
> --
> nǝıɥʇɐƜ
>
>
> On Mon, 30 Jul 2018 at 17:07, Robert Osfield 
> wrote:
>
>> On Mon, 30 Jul 2018 at 15:59, Andrew Cunningham  wrote:
>> >
>> > Back on the original topic :)
>> >
>> > This is a really simple QtOSGWidget that I used as a starting point for
>> an OSG widget in a QDialog. Simple and works fine.
>> >
>> > https://github.com/vicrucann/QtOSG-hello
>>
>> Just had a quick look at the code.  It only works "fine" because there
>> it's a trivial example, it's buggy.  Please compare to the the
>> osg::Camera setup in the osgQt master and see if you can see the
>> error, in this example.  If you can then you'll be able to spot what
>> to fix in your own programs.
>>
>> Robert.
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://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
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Robert Osfield
HI Glenn,

We did some work for 3.6.3 to smooth the transition between glTexImage
and glTexStorage remapping to sized types where possible, perhaps this
particular image format it's not remapped properly.

The best thing to do now is create a small example/provide data to
illustrates the problem then we can work out what the short term
application fix would be and what the longer term OSG fix might be if
appropriate.

Now that 3.6.3 is tagged I'll be taking a step back from testing and
debugging on the OSG side.  If there are bugs that appear in 3.6.3
that need to be addressed I'll return to another cycle of testing,
debugging and working towards a 3.6.4 release.  I won't push for 3.6.4
for another couple of months though - I have plenty of other work to
get on with :-)

Cheers,
Robert.
On Fri, 14 Sep 2018 at 14:50, Glenn Waldron  wrote:
>
> Robert,
> Transparency wasn't an issue (that was a missing GL_BLEND) but there are a 
> couple other interesting things I discovered with texture arrays:
>
>
> 1) After loading a GIF, I had to manually call 
> image->setInternalTextureFormat(GL_RGBA8), otherwise I get this message and a 
> blank texture:
>
> Warning: Texture2DArray::applyTexImage2DArray_subload(..) given image do have 
> wrong dimension or internal format.
>
> The original internal texture format was "4" which doesn't appear to be legal 
> even for glTexImage; perhaps glTexStorage is being more strict.
>
>
> 2) When using the LINEAR_MIPMAP_LINEAR minfilter, along with calling 
> tex->setResizeNonPowerOfTwoHint(false), the image appears black and I see 
> this message:
>
> Warning: detected OpenGL error 'invalid operation' at 
> StateSet::compileGLObejcts() compiling texture attribute Texture2DArray.
>
>
> Again, these may just be glTexStorage strictly enforcing things that 
> glTexImage was lenient about.
>
> Glenn
>
>
> On Fri, Sep 14, 2018 at 8:56 AM Robert Osfield  
> wrote:
>>
>> On Fri, 14 Sep 2018 at 13:08, Glenn Waldron  
>> wrote:
>> > False alarm on the transparency report -- sorry!
>>
>> That's a relief, didn't want to break the record of hearing of the
>> first bug right after tagging a first release.
>>
>> Thanks for the testing,
>> Robert.
>> ___
>> 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
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problems porting from osg-3.4.0 to osg-3.6.0

2018-09-14 Thread Robert Osfield
Hi Herman,

On Fri, 14 Sep 2018 at 15:00, Herman Varma  wrote:
> Thanks to your input I have Ben Discoe's software up and running with
> OSG-3.6.2.  He does not appear to be supporting VTP since 2015.

Good to hear that you've completed the port.

OpenSceneGraph-3.6.3 is out now so you'll have to start all over again!

Thought this time is shouldn't be anything more than a recompile :-)

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


Re: [osg-users] Problems porting from osg-3.4.0 to osg-3.6.0

2018-09-14 Thread Herman Varma
Hi Robert

Just to let you know everything compiled and worked.
Thanks to your input I have Ben Discoe's software up and running with
OSG-3.6.2.  He does not appear to be supporting VTP since 2015.


Thank you!

Cheers,
Herman

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





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


Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Robert Osfield
On Fri, 14 Sep 2018 at 13:08, Glenn Waldron  wrote:
> False alarm on the transparency report -- sorry!

That's a relief, didn't want to break the record of hearing of the
first bug right after tagging a first release.

Thanks for the testing,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] maillist new

2018-09-14 Thread jonasydy







http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org









 










jonasydy




jonas...@gmail.com








签名由
网易邮箱大师
定制

 



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


Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Glenn Waldron
Robert,
False alarm on the transparency report -- sorry!

Glenn Waldron / Pelican Mapping


On Fri, Sep 14, 2018 at 3:35 AM Robert Osfield 
wrote:

> GL_BLEND if the image was translucent and tested it with
> OpenSceneGrpaph-Data/Images/trree0.rgba and it worked fine.  The
> modified file is attached.
> ___
> 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


[osg-users] Thoughts on Gitter, or other forums as alternative to our current forum/ML?

2018-09-14 Thread Robert Osfield
Hi All,

I would like feedback on the community about possible forum/mailing
list tools that we could adopt for the OSG and VSG projects.  I don't
have any significant experience with Gitter but have just started
looking into it - I see that osgjs has a presence.

Would love to hear what others experiences have been with Gitter or
other similar tools/services.

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


[osg-users] OpenSceneGraph-3.6.3 stable release has been made!

2018-09-14 Thread Robert Osfield
Hi All,

I have tagged the 3.6.3 stable release:

https://github.com/openscenegraph/OpenSceneGraph/tree/OpenSceneGraph-3.6.3

Changes since 3.6.2 in June have been mainly focused on bug and
warning fixes.  Features wise I merged the glTexStorage changes from
OSG master into 3.6.3.

One the fixes changed the API slightly so the ABI has changed albeit
in a minor way, so I've SO version number has bumped up.  This means
3.6.3 won't be a drop in replacement for 3.6.2, you'll need to
recompile your application to make sure everything is solid.

Thanks to everyone who's helped with testing and bug fixings,
Robert.

-- ChangeLog since 3.6.2
Fri, 14 Sep 2018 10:41:24 +0100
Author : Robert Osfield
Updated version number and date for 3.6.3 stable release

Thu, 13 Sep 2018 08:52:21 +0100
Author : Robert Osfield
Updated ChangeLog for 3.6.3-rc3

Thu, 13 Sep 2018 08:47:17 +0100
Author : Robert Osfield
Updated for 3.6.3-rc3

Wed, 12 Sep 2018 17:45:49 +0100
Author : Robert Osfield
Standardized the glTexStorage*() calls to use
osg::maximum(_numMipmapLevels,1) of rnumber of mipmaps to keep the
usage consistent. Fixed the erronous Texture2DArray glTexStorage call
so that it used the _numMipmapLevels as above to resolve bug in
allocation.

Tue, 11 Sep 2018 15:32:44 +0100
Author : Robert Osfield
Warning fixes

Tue, 11 Sep 2018 12:29:40 +0100
Author : Robert Osfield
Fixed warning

Tue, 11 Sep 2018 12:23:01 +0100
Author : Robert Osfield
Updated for 3.6.3-rc2

Tue, 11 Sep 2018 11:56:04 +0100
Author : Robert Osfield
Updated rc number 2 for 3.6.3-rc2

Tue, 11 Sep 2018 11:29:36 +0100
Author : OpenSceneGraph git repository
Merge pull request #620 from LaurensVoerman/txt_SCREEN_COORDSfix scale
problem for osgText with characterSizeMode SCREEN_COORDS and _position
set.

Tue, 11 Sep 2018 11:23:34 +0100
Author : Robert Osfield
Fixed hang using a ReentrantMutex

Tue, 11 Sep 2018 10:13:49 +0100
Author : Robert Osfield
Fixed build

Tue, 11 Sep 2018 09:31:35 +0100
Author : Robert Osfield
Fixed build

Tue, 11 Sep 2018 09:03:01 +0100
Author : Robert Osfield
Cleaned up code

Mon, 10 Sep 2018 08:00:41 -0400
Author : gwaldron
osgText: fixed thread-safety issues in Glyph and Font

Sat, 8 Sep 2018 18:18:33 +0200
Author : mp3butcher
fix examples context creation for X11 (when display not :0.0)

Tue, 11 Sep 2018 08:34:20 +0100
Author : OpenSceneGraph git repository
Merge pull request #619 from mathieu/topic/SaveInlinedImagesAdded
saving of inline Images without having the physical image file.

Tue, 11 Sep 2018 08:11:27 +0100
Author : Robert Osfield
Added greater control of how cubemap is set up and controlled

Fri, 7 Sep 2018 15:09:15 +0200
Author : Laurens Voerman
fix scale problem for osgText with characterSizeMode SCREEN_COORDS and
_position set.

Fri, 7 Sep 2018 14:04:41 +0200
Author : Mathieu MARACHE
Added saving of inline Images without having the physical image
file.The can be read from and inlined image file


Thu, 6 Sep 2018 12:30:18 +0100
Author : Robert Osfield
Merge branch 'OpenSceneGraph-3.6' of
https://github.com/openscenegraph/OpenSceneGraph into
OpenSceneGraph-3.6

Thu, 6 Sep 2018 12:29:44 +0100
Author : Robert Osfield
Updated for 3.6.3-rc1

Thu, 6 Sep 2018 11:50:21 +0100
Author : Robert Osfield
Fixed memory leak with assignment of default value to ObjectSerializer

Wed, 5 Sep 2018 18:06:25 +0100
Author : OpenSceneGraph git repository
Merge pull request #616 from
eligovision/OpenSceneGraph-3.6_particlesParticleSystem: Added support
for GLES2 and upper (GL_QUADS -> GL_TRI…

Wed, 5 Sep 2018 18:01:33 +0100
Author : Robert Osfield
Fixed copy constructor

Wed, 5 Sep 2018 19:00:29 +0300
Author : Konstantin S. Matveyev
ParticleSystem: Using of GL_TRIANGLES for GLES2 and upper; GL_QUADS otherwise

Wed, 5 Sep 2018 14:04:57 +0100
Author : OpenSceneGraph git repository
Merge pull request #617 from aluaces/Image_scaleImage_typoFix typo in
the initial check of Image::scaleImage().

Wed, 5 Sep 2018 13:27:35 +0200
Author : Alberto Luaces
Fix typo in the initial check of Image::scaleImage().

Wed, 5 Sep 2018 14:00:09 +0300
Author : Konstantin S. Matveyev
ParticleSystem: Added support for GLES2 and upper (GL_QUADS -> GL_TRIANGLES)

Tue, 4 Sep 2018 10:35:38 -0400
Author : Jason Beverage
Protect the _programSet in Shader with a mutex. This prevents thread
safety issues when Shader objects are used in multiple programs.

Wed, 5 Sep 2018 09:33:24 +0100
Author : Robert Osfield
Updated ChangeLog

Tue, 4 Sep 2018 15:26:30 +0100
Author : Robert Osfield
Changed the ShapeDrawable::build() methpd so that it does run when the
ShadpwDrawabe is a KdTree.

Tue, 4 Sep 2018 14:13:32 +0100
Author : Robert Osfield
Updated SO version as XmlNode::Input changes change the ABI

Tue, 4 Sep 2018 12:19:14 +0100
Author : Robert Osfield
Added support for reading UTF-8 encoded of xml files

Mon, 3 Sep 2018 12:30:02 +0100
Author : Robert Osfield
Changed the logic for whether to call setUpThreading() in
setThreadingModel() to make it possible to changed threadings even if
the 

Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 3

2018-09-14 Thread Robert Osfield
Hi All,

I'm ready to tag the 3.6.3 release.  All the issues I'm aware of are
resolved, so if there is some issue with 3.6.3-rc3 please let me know,
otherwise it'll have to wait till after 3.6.3.

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


Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Robert Osfield
GL_BLEND if the image was translucent and tested it with
OpenSceneGrpaph-Data/Images/trree0.rgba and it worked fine.  The
modified file is attached.
#include 
#include 
#include 
#include 
#include 
#include 

const char* vert =
"#version 330 compatibility\n"
"out vec4 coord;\n"
"void main() {\n"
"gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n"
"coord = gl_MultiTexCoord0;\n"
"}\n";

const char* frag =
"#version 330 compatibility\n"
"in vec4 coord;\n"
"out vec4 color;\n"
"uniform sampler2DArray tex;\n"
"void main() {\n"
"color = texture(tex, vec3(coord.st,0));\n"
"}\n";

int
main(int argc, char** argv)
{
osg::ArgumentParser arguments(,argv);

// create a viewer:
osgViewer::Viewer viewer(arguments);

if (argc<=1) return 1;

osg::Image* image = osgDB::readImageFile(argv[1]);

osg::Texture2DArray* tex = new osg::Texture2DArray();
tex->setTextureSize(image->s(), image->t(), 1);
tex->setFilter(tex->MIN_FILTER, tex->LINEAR_MIPMAP_LINEAR);
tex->setFilter(tex->MAG_FILTER, tex->LINEAR);
tex->setImage(0, image);

osg::Geometry* geom = new osg::Geometry();

osg::Vec3Array* verts = new osg::Vec3Array();
verts->push_back(osg::Vec3(-1,-1,0));
verts->push_back(osg::Vec3( 1,-1,0));
verts->push_back(osg::Vec3( 1, 1,0));
verts->push_back(osg::Vec3(-1, 1,0));
geom->setVertexArray(verts);

osg::Vec2Array* tc = new osg::Vec2Array();
tc->push_back(osg::Vec2(0,0));
tc->push_back(osg::Vec2(1,0));
tc->push_back(osg::Vec2(1,1));
tc->push_back(osg::Vec2(0,1));
geom->setTexCoordArray(0, tc);

geom->addPrimitiveSet(new osg::DrawArrays(GL_QUADS, 0, 4));

osg::StateSet* s = geom->getOrCreateStateSet();

if (image->isImageTranslucent())
{
s->setMode(GL_BLEND, osg::StateAttribute::ON);
}

s->setTextureAttribute(0, tex);
s->addUniform(new osg::Uniform("tex",0));




osg::Shader* VS = new osg::Shader(osg::Shader::VERTEX, vert);
osg::Shader* FS = new osg::Shader(osg::Shader::FRAGMENT, frag);
osg::Program* program = new osg::Program();
program->addShader(VS);
program->addShader(FS);
s->setAttribute(program);

viewer.setSceneData(geom);
return viewer.run();
}
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Voerman, L.
I did no testing with alpha and 2d texture array combined. Normal 2d
textures with alpha seem to be working fine, both with blend and with alpha
test.
Laurens.

On Thu, Sep 13, 2018 at 10:25 PM Glenn Waldron 
wrote:

> Laurens,
> Did you test it using a texture with alpha channel? We are now seeing some
> problems now transparency.
>
> Glenn Waldron / Pelican Mapping
>
>
> On Thu, Sep 13, 2018 at 8:31 AM Voerman, L.  wrote:
>
>> Hi Glenn, Robert,
>>
>> I used a constructed dds file with marked / differently colored mipmaps
>> to test (attached)
>>
>> Laurens.
>>
>> On Thu, Sep 13, 2018 at 2:11 PM Glenn Waldron  wrote:
>>
>>> Robert,
>>> Looks like this issue is fixed thanks to the Voerman PR, but for
>>> posterity I will clarify the reproduction steps:
>>>
>>> Run the example and pitch the camera to a sharp angle so the view vector
>>> is almost parallel to the polygon. You will see the telltale aliasing due
>>> to the lack of a mipmapping min-filter on the texture. Then set the
>>> OSG_GL_TEXTURE_STORAGE env var to OFF, and repeat; you will see the
>>> min-filter acting as expected.
>>>
>>> Glenn Waldron
>>>
>>>
>>> On Wed, Sep 12, 2018 at 12:11 PM Robert Osfield <
>>> robert.osfi...@gmail.com> wrote:
>>>
 Hi Glenn,

 I've compiled and run the example against the 3.6 branch with images
 from OpenSceneGraph-Data/Images and it runs on my Kubuntu 18.04/NVidia
 system without any obvious issue.  Could you explain what the issue
 looks like so I could specifically test it?

 Laurens Voerman has kindly investigated the issue and has a PR that
 addresses it:
https://github.com/openscenegraph/OpenSceneGraph/pull/624/files

 I want to be able to recreate the issue so that I can confirm that the
 PR fixes it - it looks like it fixes it to me but don't want to make
 any assumptions.

 Cheers,
 Robert.


 On Tue, 11 Sep 2018 at 21:23, Glenn Waldron  wrote:
 >
 > Robert,
 >
 > Mipmapping is broken for Texture2DArray when glTexStorage is enabled.
 > If you set OSG_GL_TEXTURE_STORAGE=OFF, it works properly again.
 >
 > Here is a standalone cpp you can use to reproduce the issue:
 > https://gist.github.com/gwaldron/9d65c35a5d940965429f401331b72420
 >
 > Windows 10, NVIDIA 760GTX, OSG 3.6.x branch tip 9/11/18.
 >
 > Glenn Waldron
 >
 >
 > On Tue, Sep 11, 2018 at 7:36 AM Robert Osfield <
 robert.osfi...@gmail.com> wrote:
 >>
 >> Hi All,
 >>
 >> I have just tagged the 3.6.3 release candidate 2:
 >>
 >>
 https://github.com/openscenegraph/OpenSceneGraph/tree/OpenSceneGraph-3.6.3-rc2
 >>
 >> My aim is to tag the 3.6.3 at the end of this week. Please test and
 >> provide positive/negative feedback via this thread.  :-)
 >>
 >> Cheers,
 >> Robert.
 >>
 >> -- Changes since 3.6.3-rc1
 >>
 >> Tue, 11 Sep 2018 11:56:04 +0100
 >> Author : Robert Osfield
 >> Updated rc number 2 for 3.6.3-rc2
 >>
 >> Tue, 11 Sep 2018 11:29:36 +0100
 >> Author : OpenSceneGraph git repository
 >> Merge pull request #620 from LaurensVoerman/txt_SCREEN_COORDSfix
 scale
 >> problem for osgText with characterSizeMode SCREEN_COORDS and
 _position
 >> set.
 >>
 >> Tue, 11 Sep 2018 11:23:34 +0100
 >> Author : Robert Osfield
 >> Fixed hang using a ReentrantMutex
 >>
 >> Tue, 11 Sep 2018 10:13:49 +0100
 >> Author : Robert Osfield
 >> Fixed build
 >>
 >> Tue, 11 Sep 2018 09:31:35 +0100
 >> Author : Robert Osfield
 >> Fixed build
 >>
 >> Tue, 11 Sep 2018 09:03:01 +0100
 >> Author : Robert Osfield
 >> Cleaned up code
 >>
 >> Mon, 10 Sep 2018 08:00:41 -0400
 >> Author : gwaldron
 >> osgText: fixed thread-safety issues in Glyph and Font
 >>
 >> Sat, 8 Sep 2018 18:18:33 +0200
 >> Author : mp3butcher
 >> fix examples context creation for X11 (when display not :0.0)
 >>
 >> Tue, 11 Sep 2018 08:34:20 +0100
 >> Author : OpenSceneGraph git repository
 >> Merge pull request #619 from mathieu/topic/SaveInlinedImagesAdded
 >> saving of inline Images without having the physical image file.
 >>
 >> Tue, 11 Sep 2018 08:11:27 +0100
 >> Author : Robert Osfield
 >> Added greater control of how cubemap is set up and controlled
 >>
 >> Fri, 7 Sep 2018 15:09:15 +0200
 >> Author : Laurens Voerman
 >> fix scale problem for osgText with characterSizeMode SCREEN_COORDS
 and
 >> _position set.
 >>
 >> Fri, 7 Sep 2018 14:04:41 +0200
 >> Author : Mathieu MARACHE
 >> Added saving of inline Images without having the physical image
 >> file.The can be read from and inlined image file
 >>
 >>
 >> Thu, 6 Sep 2018 12:30:18 +0100
 >> Author : Robert Osfield
 >> Merge branch 'OpenSceneGraph-3.6' of
 >> https://github.com/openscenegraph/OpenSceneGraph 

Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Robert Osfield
Hi Glenn,

On Thu, 13 Sep 2018 at 21:25, Glenn Waldron  wrote:
> Did you test it using a texture with alpha channel? We are now seeing some 
> problems now transparency.

Do you see these problems with 3.6.3-rc3?  Do they occur with test
program Laurens posted? Do they occur with any alpha'd image?

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


Re: [osg-users] OpenSceneGraph-3.6.3 release candidate 2 tagged

2018-09-14 Thread Robert Osfield
HI Laurens,

Fun image demonstration of mipmapping :-)

Works fine for me with 3.6.3-rc3.

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