Re: [osg-users] Simulating Light Lobes with Projected Textures (Range mapping)

2016-08-12 Thread Trajce Nikolov NICK
nevermind .. I was not able to make it through the construction of the
texture matrix but made it in the shader.

Nickolai, suddenly can not share the code due to contractual obligations
but can give some hints

Thanks anyway
Nick

On Fri, Aug 12, 2016 at 2:59 PM, Trajce Nikolov NICK <
trajce.nikolov.n...@gmail.com> wrote:

> Maybe I made it a bit confusing.
>
> My problem is the clipping of the projected texture based on some near/far
> distances and the ones specified in the projection matrix have no effect
>
> On Fri, Aug 12, 2016 at 11:14 AM, Nickolai Medvedev 
> wrote:
>
>> Hello, Trajce!
>>
>> As far as I have understood, a problem with near/far?
>> Try to increase them.
>>
>> By the way, I will be glad to see shaders, publish them, please.
>>
>> Thank you!
>>
>> Cheers,
>> Nickolai
>>
>> --
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=68358#68358
>>
>>
>>
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
>
> --
> trajce nikolov nick
>



-- 
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] Simulating Light Lobes with Projected Textures (Range mapping)

2016-08-12 Thread Trajce Nikolov NICK
Maybe I made it a bit confusing.

My problem is the clipping of the projected texture based on some near/far
distances and the ones specified in the projection matrix have no effect

On Fri, Aug 12, 2016 at 11:14 AM, Nickolai Medvedev 
wrote:

> Hello, Trajce!
>
> As far as I have understood, a problem with near/far?
> Try to increase them.
>
> By the way, I will be glad to see shaders, publish them, please.
>
> Thank you!
>
> Cheers,
> Nickolai
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68358#68358
>
>
>
>
>
> ___
> 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] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Robert Osfield
Hi Chris,

If you don't know what plugins you need start small and add them as
you need them.  Depending upon your needs you could go from needing
none of the plugins to most.  I don't know what your plans are so
can't comment on what plugins you'll need.

To get things started you could either use cmake to disable plugins by
setting the 3rd party dependency paths to empty string to override
what cmake finds.  Another route, but more hacky is to go into the
src/osgPlugins/CMakeLists.txt file and just comment out the plugins
you don't want.  The later route isn't a long term solution but would
at least give you and idea what you can get running quickly.

On the Linux front I wouldn't expect many issues - it's the generally
the easiest platform of all to get working as most linux distribution
come with great package management systems that can install all the
dependencies for you with minimal fuss.

Robert.

On 12 August 2016 at 12:28, Chris Thomas  wrote:
> Hi,
>
> My use case is, I want to add OpenGL functionality to an existing API that 
> actually uses OpenGL. The issue is, that API does not offer very deep 3D 
> support, beyond making 2D media objects in a 3D space. We want/need to create 
> 3D objects, textures etc, so we want to host OpenGL apps via OSG.
>
> So.. in truth, Im guessing 90% of the plugins OSG can provide, could be 
> disabled, at least until we KNOW we need them 100%. After all, compiling OSG 
> on OSX with all plugins enabled, appears to be pretty hard right now, as its 
> not widely used / supported on OSX it seems.
>
> So.. once I have OSG working in our app, as a proof of concept, I also have 
> to get it to compile on Ubuntu 14 + 16. Ill cross that bridge when I come to 
> it though...
>
> I wonder if there is a definitive lists of the plugins that can be disabled? 
> I really want to start with the core OSG, prove it can integrate with our 
> main API and then build from there.
>
> Thank you!
>
> Cheers,
> Chris
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68361#68361
>
>
>
>
>
> ___
> 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] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Chris Thomas
Hi,

My use case is, I want to add OpenGL functionality to an existing API that 
actually uses OpenGL. The issue is, that API does not offer very deep 3D 
support, beyond making 2D media objects in a 3D space. We want/need to create 
3D objects, textures etc, so we want to host OpenGL apps via OSG.

So.. in truth, Im guessing 90% of the plugins OSG can provide, could be 
disabled, at least until we KNOW we need them 100%. After all, compiling OSG on 
OSX with all plugins enabled, appears to be pretty hard right now, as its not 
widely used / supported on OSX it seems.

So.. once I have OSG working in our app, as a proof of concept, I also have to 
get it to compile on Ubuntu 14 + 16. Ill cross that bridge when I come to it 
though...

I wonder if there is a definitive lists of the plugins that can be disabled? I 
really want to start with the core OSG, prove it can integrate with our main 
API and then build from there.

Thank you!

Cheers,
Chris

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





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


Re: [osg-users] osgText and shaders

2016-08-12 Thread Robert Osfield
Hi THomas,

On 10 August 2016 at 14:23, Thomas Francois
 wrote:
> In my application I got some text displayed using osgText::Text. I would like 
> to alter this text using shaders. However, I wish to apply a different 
> treatment to each letter individually.
>
> For now, I only managed to process the text as a whole.
>
> Is there a way to either distinguish the letters in the shader, or to link 
> each letter to its own shader?

There isn't any support for this in osgText, non in GLSL within
specifically adding a vertex attribute.

The best way forward would be to create your own osg::Geometry
containing the required vertices and primitives to represent the text
as you want.

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


Re: [osg-users] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Robert Osfield
Hi Chris,

In general I would say that GStreamer shouldn't be required for OSG
usage under OSX as there are native video plugins already.  Do you
specifically need the GStreamer plugin?  If not you should be able to
disable the build of the plugin by setting the paths that CMake sets
up for GStreamer headers etc. back to empty strings, this will tell
CMake GStreamer isn't there and the plugin won't be built.

If you want the plugin to be built then you'll need to track down
exactly what is going wrong.  From the output you posted the only
error I've spotted so far was:

ld: library not found for -lgstreamer-1.0

Which suggests to me that the CMake find script is partially setting
up the paths and libs but not completely, or the OSG's plugin isn't
setting up the path to the library as required.  One way to get more
information from the build is to run make thus:

  make VERBOSE=1

Also have a look at the GSTREAMER_* variables that CMake sets up,
you'll find these in CMakeCache.txt.

Robert.


On 11 August 2016 at 20:05, Chris Thomas  wrote:
> Hi,
>
> I am pulling OSG 3.4.0 from GIT and attempting to build on OSX El Capitan.
>
> I'm writing a BASH script to do this, as I need to repeat this compile on a 
> number of machines.
> I test this install script on a VMWare OSX El-Capitan machine. Doing so 
> allows me to run the install script over and over, from as clean an install 
> state as I need, until it the OSG compile works.
>
> To complicate matters slightly I already have an existing media platform that 
> my OSG HAS to work with, without disrupting it. That platform already 
> installs gstreamer 1.6.3.
>
>
> So, calling cmake, I get this output...
>
>
> Code:
> cthomass-Mac:osg cthomas$ cmake -DBUILD_OSG_EXAMPLES=1 
> -DCMAKE_OSX_ARCHITECTURES=x86_64 ../OpenSceneGraph/
> -- The C compiler identification is AppleClang 7.3.0.7030031
> -- The CXX compiler identification is AppleClang 7.3.0.7030031
> -- Check for working C compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
> -- Check for working C compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
>  -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
> -- Check for working CXX compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
>  -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - found
> -- Found Threads: TRUE
> -- Found OpenGL: 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework
> -- Performing Test GL_HEADER_HAS_GLINT64
> -- Performing Test GL_HEADER_HAS_GLINT64 - Success
> -- Performing Test GL_HEADER_HAS_GLUINT64
> -- Performing Test GL_HEADER_HAS_GLUINT64 - Success
> -- Found Freetype: /usr/local/lib/libfreetype.dylib (found version "2.6.5")
> -- Found JPEG: /usr/local/lib/libjpeg.dylib
> -- Found Jasper: /usr/local/lib/libjasper.dylib (found version "1.900.1")
> -- Found LibXml2: /opt/oblong/deps-64-11/lib64/libxml2.dylib (found version 
> "2.7.8")
> -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
> -- Found GDAL: /usr/local/Cellar/gdal/1.11.3_1/lib/libgdal.dylib
> -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1")
> -- Checking for module 'gta'
> --   No package 'gta' found
> -- Found CURL: /usr/lib/libcurl.dylib (found version "7.43.0")
> -- Found GStreamer: 
> /opt/oblong/deps-64-11/include/gstreamer-1.0;/opt/oblong/deps-64-11/lib/gstreamer-1.0/include;/opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib/glib-2.0/include
>  (found version "1.6.3")
> -- Found GLIB: 
> /opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib64/glib-2.0/include
>  (found version "2.46.2")
> -- Found SDL2: 
> /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa
> -- Found SDL: 
> /usr/local/lib/libSDLmain.a;/usr/local/lib/libSDL.dylib;-framework Cocoa 
> (found version "1.2.15")
> -- Checking for module 'cairo'
> --   Found cairo, version 1.14.6
> -- Checking for module 'poppler-glib'
> --   Found poppler-glib, version 0.45.0
> -- Performing Test POPPLER_HAS_CAIRO
> -- Performing Test POPPLER_HAS_CAIRO - Success
> -- Checking for module 'librsvg-2.0>=2.35'
> --
> -- Checking for module 'gtk+-2.0'
> --   Found gtk+-2.0, version 2.24.30
> -- Checking for module 'gtkglext-x11-1.0'
> --   No package 'gtkglext-x11-1.0' found
> -- Looking for Q_WS_X11

Re: [osg-users] Simulating Light Lobes with Projected Textures (Range mapping)

2016-08-12 Thread Nickolai Medvedev
Hello, Trajce!

As far as I have understood, a problem with near/far?
Try to increase them.

By the way, I will be glad to see shaders, publish them, please.

Thank you!

Cheers,
Nickolai

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





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


[osg-users] multiple input with osgwidgets

2016-08-12 Thread Sebastian Schmidt
I have problems with receiving multi input events in my osgWidget::Label class.
f.e. 
1. click right mouse
2. click left mouse
3. release left mouse
4. no event when i drag the right mouse

i added 
Code:
setEventMask(osgWidget::EVENT_ALL);

 to receive all events but i seems like osg is killing//ignoring all other 
states when one of the mouse button is released.

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





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


[osg-users] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Chris Thomas
Hi,

I am pulling OSG 3.4.0 from GIT and attempting to build on OSX El Capitan. 

I'm writing a BASH script to do this, as I need to repeat this compile on a 
number of machines. 
I test this install script on a VMWare OSX El-Capitan machine. Doing so allows 
me to run the install script over and over, from as clean an install state as I 
need, until it the OSG compile works.

To complicate matters slightly I already have an existing media platform that 
my OSG HAS to work with, without disrupting it. That platform already installs 
gstreamer 1.6.3.


So, calling cmake, I get this output...


Code:
cthomass-Mac:osg cthomas$ cmake -DBUILD_OSG_EXAMPLES=1 
-DCMAKE_OSX_ARCHITECTURES=x86_64 ../OpenSceneGraph/
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found OpenGL: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework
  
-- Performing Test GL_HEADER_HAS_GLINT64
-- Performing Test GL_HEADER_HAS_GLINT64 - Success
-- Performing Test GL_HEADER_HAS_GLUINT64
-- Performing Test GL_HEADER_HAS_GLUINT64 - Success
-- Found Freetype: /usr/local/lib/libfreetype.dylib (found version "2.6.5") 
-- Found JPEG: /usr/local/lib/libjpeg.dylib  
-- Found Jasper: /usr/local/lib/libjasper.dylib (found version "1.900.1") 
-- Found LibXml2: /opt/oblong/deps-64-11/lib64/libxml2.dylib (found version 
"2.7.8") 
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") 
-- Found GDAL: /usr/local/Cellar/gdal/1.11.3_1/lib/libgdal.dylib  
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'gta'
--   No package 'gta' found
-- Found CURL: /usr/lib/libcurl.dylib (found version "7.43.0") 
-- Found GStreamer: 
/opt/oblong/deps-64-11/include/gstreamer-1.0;/opt/oblong/deps-64-11/lib/gstreamer-1.0/include;/opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib/glib-2.0/include
 (found version "1.6.3") 
-- Found GLIB: 
/opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib64/glib-2.0/include
 (found version "2.46.2") 
-- Found SDL2: 
/usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa  
-- Found SDL: 
/usr/local/lib/libSDLmain.a;/usr/local/lib/libSDL.dylib;-framework Cocoa (found 
version "1.2.15") 
-- Checking for module 'cairo'
--   Found cairo, version 1.14.6
-- Checking for module 'poppler-glib'
--   Found poppler-glib, version 0.45.0
-- Performing Test POPPLER_HAS_CAIRO
-- Performing Test POPPLER_HAS_CAIRO - Success
-- Checking for module 'librsvg-2.0>=2.35'
--   
-- Checking for module 'gtk+-2.0'
--   Found gtk+-2.0, version 2.24.30
-- Checking for module 'gtkglext-x11-1.0'
--   No package 'gtkglext-x11-1.0' found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.7") 
-- Found FLTK: 
/usr/local/lib/libfltk_images.dylib;/usr/local/lib/libfltk_forms.dylib;/usr/local/lib/libfltk_gl.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework;/usr/local/lib/libfltk.dylib
  
-- Found wxWidgets: -L/usr/local/lib;;;-framework IOKit;-framework 
Carbon;-framework Cocoa;-framework AudioToolbox;-framework System;-framework 
OpenGL;-lwx_baseu-3.0;-lwx_osx_cocoau_core-3.0;-lwx_osx_cocoau_gl-3.0;-lwx_baseu_net-3.0
 (found version "3.0.2") 
-- Found TIFF: /usr/local/lib/libtiff.dylib (found version "4.0.6") 
Disabling QuickTime because it's not supported by the selected SDK 10.11
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Success
-- Performing Test