Re: [osg-users] underline fonts

2014-10-20 Thread Robert Osfield
Hi Nick,

On 15 October 2014 14:47, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com
 wrote:

 any clue how to load fonts (or set) with underlined characters?


There isn't any support for this in osgText/freetype plugin.  I would guess
that freetype itself would support this so it may well be possible to add
support without too much difficulty.  One would need to add options on the
osgText side to provide hints for underlining.

The other alternative would be to render the underlining as an overlay.

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


Re: [osg-users] Depth Buffer/Culling Problem with osgViewer CompositeViewer

2014-10-20 Thread Robert Osfield
Hi Rob,


This type of problem is next to impossible to guess what might be wrong
without having the same configuration in front of me, there are too many
things that might affect things in the mix.  I haven't use Equalizer
myself, I'd guess lots of other OSG users won't have either so you'll
likely be using a combination of software that few if any other users have
tested before.

The best thing you can do is simplify the set up so you have something that
works reliably then adding the extra layers of complexity and see what
things break.

Robert.


On 16 October 2014 13:27, Hauck Robert robert.ha...@bfh.ch wrote:

 Hi all

 I have a strange problem I cannot solve. I use OpenSceneGraph 3.2.1,
 osgEarth 2.6 and Equalizer (parallel rendering framework).

 When I load a sample osgEarth file, I should have a sky and the earth. But
 I only get one of these, depending on how I set the depth buffer and
 culling options.

 I can for example set
 _camera-setComputeNearFarMode(osg::Camera::DO_NOT_COMPUTE_NEAR_FAR);
 on the osg camera, then I can get the earth model when I enable the
 logarithmic buffer from osgEarth with
 osgEarth::Util::LogarithmicDepthBuffer logDepth;
 logDepth.install(_camera);

 When i don't enable this log buffer, I get the sky, a simple sky model
 from osgEarth, but it flickers (black and the sky), and it shows when I use
 the mouse to move around. (osgViewer)

 When I don't set the DO_NOT_COMPUTE_NEAR_FAR, I always get a black screen
 (black because I disabled GL_COLOR_BUFFER_BIT, otherwise would be the osg
 blue).

 I also tried to set near far planes to 0.1, 100 or 0.1, 10, but also
 with no result.

 I know I could ask this also in osgEarth forums, but I think it's
 something I have to set on the osg camera, view or somwhere there, as it is
 more related to OSG and Equalizer.

 What could I do to resolve this? And on what all is it depending? Buffers,
 Culling, Frustum etc?

 Thanks,
 Rob
 ___
 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] Android OSG crashed in libcurl of multi-thread

2014-10-20 Thread Robert Osfield
Hi Xua Qingran,

The line 604 in ReaderWriterCURL.cpp is:

osg::ref_ptrOptions local_opt = options ?

static_castOptions*(options-clone(osg::CopyOp::SHALLOW_COPY)) :
new Options;  // Line 604

This should be thread safe as lone as the options object isn't being
deleted or modified in a separate thread.  As an experiment You could try
taking a local ref_ptr to the options object being passed into the
readFiled() method.

Robert.


On 16 October 2014 16:06, 夏清然 Xia Qingran qingran@gmail.com wrote:

 Hi,

 I am developing a new app based on OSG 3.2.1.

 For better download speed, I used a multi-threaded by following code in
 JNI:

 ==
 void OsgMainApp::loadModels() {
 if (_vModelsToLoad.size() == 0)
 return;

 osg::notify(osg::ALWAYS)  There are   _vModelsToLoad.size()
   models to load  std::endl;

 _vTileInfoList.clear();

 downloadCacheXMl();
 _vTileInfoList = loadDataFromCacheXML();

 osgViewer::Viewer::Windows windows;
 _viewer-getWindows(windows);
 for (osgViewer::Viewer::Windows::iterator itr = windows.begin();
 itr != windows.end(); ++itr) {
 (*itr)-getState()-setUseModelViewAndProjectionUniforms(true);
 (*itr)-getState()-setUseVertexAttributeAliasing(true);
 }

 _manipulator-getNode();
 _viewer-home();

 _viewer-getDatabasePager()-clear();
 _viewer-getDatabasePager()-registerPagedLODs(_root.get());
 _viewer-getDatabasePager()-setUpThreads(3, 2);
 _viewer-getDatabasePager()-setTargetMaximumNumberOfPageLOD(2);
 _viewer-getDatabasePager()-setUnrefImageDataAfterApplyPolicy(true,
 true);
 =

 I set the   _viewer-getDatabasePager()-setUpThreads(3, 2); , but it
 often crashed.
 However if I set _viewer-getDatabasePager()-setUpThreads(3, 2);, it is
 running smoothly.

 Here is the crash call stack:
 ** Crash dump: **
 Build fingerprint:
 'Xiaomi/lcsh92_wet_jb9/lcsh92_wet_jb9:4.2.2/JDQ39/JHDCNBH37.0:user/release-keys'
 pid: 22182, tid: 22479, name: Thread-9008   osg.AndroidExample 
 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 
 Stack frame I/DEBUG   (22507): #00  pc   unknown: Unable to
 open symbol file
 D:\mobile\workspace\osgViewer\obj\local\armeabi-v7a\/unknown. Error (22):
 Invalid argument
 Stack frame I/DEBUG   (22507): #01  pc 00481887
 /data/app-lib/osg.AndroidExample-1/libosgNativeLib.so
 (osg_curl::ReaderWriterCURL::readFile(osg_curl::ObjectType, std::string
 const, osgDB::Options const*) const+630): Routine
 osg_curl::ReaderWriterCURL::readFile(osg_curl::ObjectType, std::string
 const, osgDB::Options const*) const at
 Z:/Code/OpenSceneGraph-3.2.1/src/osgPlugins/curl/ReaderWriterCURL.cpp:604
 

 How to solve this problem ? Thanks.

 Regards
 夏清然
 Xia Qingran
 qingran@gmail.com
 http://www.qingran.net

 ___
 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] underline fonts

2014-10-20 Thread Trajce Nikolov NICK
Thanks Robert,

I will have a look at freetype and osgText::Text then 

Thanks again
Nick

On Mon, Oct 20, 2014 at 10:39 AM, Robert Osfield robert.osfi...@gmail.com
wrote:

 Hi Nick,

 On 15 October 2014 14:47, Trajce Nikolov NICK 
 trajce.nikolov.n...@gmail.com wrote:

 any clue how to load fonts (or set) with underlined characters?


 There isn't any support for this in osgText/freetype plugin.  I would
 guess that freetype itself would support this so it may well be possible to
 add support without too much difficulty.  One would need to add options on
 the osgText side to provide hints for underlining.

 The other alternative would be to render the underlining as an overlay.

 Robert.

 ___
 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] Transparent Window Application

2014-10-20 Thread Roy Arents
Hi Sergey,

Thanks you very much. It's working great with the code you shared. For now, I 
do not need the transparent clicks, but thanks for the heads up.

Kind reagrds,
Roy

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





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


Re: [osg-users] is osgEphemeris incompatible with osgShadow?

2014-10-20 Thread Bradley Anderegg
Hi,

Sounds like the SkyDome is in your shadow scene.  This simplest way around this 
is make the ephemeris a sibling to the shadow scene.

Thank you!

Cheers,
Bradley

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





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


Re: [osg-users] delta3d 2.8.0 released!

2014-10-20 Thread Bradley Anderegg
Hi,

Thank you for testing, I have narrowed these errors down to the water 
rendering, I will provide an update soon.

Thank you!

Cheers,
Bradley

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





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


Re: [osg-users] Issue with StateSet::setUpdateCallback and Drawable

2014-10-20 Thread Damian Stewart
Hi,

I didn't get a response to the above questions, so I'm hoping it was just 
missed due to my post awaiting moderation.

It seems like the Drawable StateSet problem is one a lot of people would run 
into, but I've not found any other mention of it, so possibly I'm just missing 
something or doing something the wrong way.

Anyone able to shed some light on my questions please?

Thanks,
Damian

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





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