[osg-users] memory issue about x-windows in Linux

2017-08-01 Thread Lv Qing
Hi, I know it is not be an osg problem. Just want to know anyone here may met the same problem. We use reahat linux 6.5 to run our osg app .The desktop is kde4.3.4. . After 7 to 20 days,we found the X-windows Process (X) suddenly took all of system's memory ,and force linux to kill the

Re: [osg-users] How to disable Antialiasing of an osg::Text

2017-03-05 Thread Lv Qing
are rendering so I can't > provide any more details than this. > > Robert. > > On 2 March 2017 at 17:41, Lv Qing <> wrote: > > > Hi, > > > > In linux we are using osg::Text to display some chinese characters.Then > > we find the osg::Text looks

[osg-users] How to disable Antialiasing of an osg::Text

2017-03-02 Thread Lv Qing
Hi, In linux we are using osg::Text to display some chinese characters.Then we find the osg::Text looks a little blur when the size of characters is small.Or,the Black characters seems a little gray when the character size is small.I have setFontSolution(128,128),it not help. Then I

Re: [osg-users] a linux dialog starting to blur while draging towards to an OSG QT widgets

2016-11-29 Thread Lv Qing
Hi,   Sorry for my poor english description. The word "Blur" more like Image-Retention or afterimage or ghost image。 ... Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69534#69534

[osg-users] a linux dialog starting to blur while draging towards to an OSG QT widgets

2016-11-29 Thread Lv Qing
Hi, we have integrated an osgViewerQT window to a QT based app. There are four subWindows in our app,one is an osgViewerQT widget,the others are normal QT widgets. We forced the osgViewerQT viewer running under a slow frames,about 10FPS. Then we drag any other linux dialog to

[osg-users] performance of QT GUI when integrated with OSG

2016-10-20 Thread Lv Qing
Hi, I have used class ViewerWidget(: public QWidget, public osgViewer::CompositeViewer) to integrate OSG into a QT application. Like this: viewer3DWindow = new ViewerWidget; QMdiSubWindow *tmpsubwin_3D = new QMdiSubWindow ; tmpsubwin_3D->setWidget(viewer3DWindow); And

[osg-users] how to show osg::Text respectively?

2015-10-29 Thread Lv Qing
Hi, Here is the situation ,I want to draw dozens of osg::Text,all as children of one osg::Geode.And I want to show some of the osg::Text ,and some not.I failed to see osg::Text has a setNodeMask funciton,I can only call the osg::Geode setNodeMask ,but it show all osg::Text or not.If I add

[osg-users] how to set width and Stipple of a osgText::BoundingBox?

2015-10-27 Thread Lv Qing
Hi, I want to modify text.cpp so can set osgText::BoundingBox's width and line Stipple. Here is how osg draw BOUNDINGBOX in text.cpp: if (_drawMode & BOUNDINGBOX) { if (_textBB.valid()) { state.applyTextureMode(0,GL_TEXTURE_2D,osg::StateAttribute::OFF);

Re: [osg-users] how to set width and Stipple of a osgText::BoundingBox?

2015-10-27 Thread Lv Qing
Thx!Robert! The situation is,we have modified the text.cpp to create some other styles rather than boundingbox. Like a BoundingLine,one end to one of the corner of a BoundingBox,the other end linked to a osg::Node. So if a text have a BoundingLine and a BoundingBox,I just want

[osg-users] how to convert a QPixmap to a osg::Image ?

2015-05-03 Thread Lv Qing
Hi, Our picture has storge as a QPixmap(a image format used by QT4.8) in database,when I got a QPixmap object,how to convert to a osg::Image ? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63619#63619

Re: [osg-users] How to re-compute a osg::Text heading when camera changes?

2015-04-03 Thread Lv Qing
Hi, problem solved! Is is actually a compass thing,just get Earthmanipulate's viewpoint,then add to the text's heading,each frame. Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63272#63272

[osg-users] How to rotate a osg::Text heading when camera changes?

2015-03-25 Thread Lv Qing
Hi, [Image: http://forum.osgearth.org/file/n7587273/无标题.jpg ] ... like pictures above,we use some icon to display a plane,this icon is osg::Text which using some special fonts file.we dynamic set this plane's heading to this osg::Text,like the left picture ,if the camera head to north,this

[osg-users] performance of a fbx 3D model

2015-03-03 Thread Lv Qing
Hi, ... I just buy some fbx 3D model with some animation,each 3D model have one main part .fbx file and some separate animation .fbx file. main part .fbx dose not has animation effect if not loading other animation .fbx file . The problem is,when loaded a main part .fbx with osgviewer

[osg-users] Any way to optimize the performance of massive osg::Text?

2015-01-11 Thread Lv Qing
Hi: In our case we need draw 5~10 osg::Text spreading all over the earth,the result is not optimistic,the frame is down to 2~3 fps,we can barely pan the earth,so is there any way to optimize such mount of osg::Text? Thank

[osg-users] How to link a line between a osg::Text and a 3D model ?

2014-12-02 Thread Lv Qing
Hi, I have failed to draw a line between a osg::Text and a 3D model,like image below So far,I have managed modify osg::Text to draw a linking line ,like draw a bounding box . One end of the line is linked to the text,but I do not know how to link another end to a moving 3D model. I

[osg-users] How to link a line between a osg::Text and a 3D model ?

2014-12-02 Thread Lv Qing
Hi, I have failed to draw a line between a osg::Text and a 3D model,like image below So far,I have managed modify osg::Text to draw a linking line ,like draw a bounding box . One end of the line is linked to the text,but I do not know how to link another end to a moving 3D model. I

dynamically change icon color like change text color?

2014-06-15 Thread Lv Qing
Hi: I have some .png image use as a icon,the Original icons just have a single color symbol,like black,and the icon's background is transparent. Then in our app,we need draw the icon's with different colors under different conditions。 We want change the symbol's color or change the

Re: [osg-users] memory releasing problem by addchild and removechild

2014-03-12 Thread Lv Qing
robertosfield wrote: Hi Lv, On 10 March 2014 14:40, Lv Qing () wrote: Hi, ...     I have read some posts about memory releasing problem by addchild and removechild. There are no problems with memory management with addChild and removeChild.   It's been working very

[osg-users] memory releasing problem by addchild and removechild

2014-03-10 Thread Lv Qing
Hi, ... I have read some posts about memory releasing problem by addchild and removechild. Here is my situation ,we developed osg app by qt in win7, we use class ViewerWidget to adding our viewer as a qt widget. We did a test to simply adding 5 osg::Node to a osg::Group then

Re: [osg-users] memory releasing problem by addchild and removechild

2014-03-10 Thread Lv Qing
Hi, ... test code like this: class Test { osg::ref ptrosg::Group root = new osg::Group(); osg::ref ptrosg::Group testGroup = NULL; } void Test::TestForMeomory(bool value) { if (value) //adding 5 nodes { testGroup = new osg::Group(); for (int i = 0, i 5,i++)

[osg-users] how to zoom in and out a earth model with two fingers when using a Multi-touch screen

2014-03-06 Thread Lv Qing
Hi, It is actually a osgEarth problem.but I have lost track of it in osgEarth forum,and someone there said it is something about GraphicsWindowQT and osg 3.1.3,so I think I may get help here. By osg 3.2.0 ,osgEarth 2.5, qt 4 ,win 7,I can zoom in and out earth with two fingers when

Re: [osg-users] Can I make a png image's background transparent?

2013-03-14 Thread Lv Qing
Hi, I use powerpoint to erase the background Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53107#53107 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] the original QT events seems conflicted with osg's event handle.

2013-03-12 Thread Lv Qing
Thx!Aurelien ! Problem solved! Just implementing a dropEnterEvent method as well. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53047#53047 ___ osg-users mailing list

[osg-users] Can I make a png image's background transparent?

2013-03-12 Thread Lv Qing
Hi, ... I have attached one png image to the placenode,however the image has a white background ,is it possible to make the backgound transparent? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53051#53051

[osg-users] How can I change the color of osg::PolygonMode?

2013-03-12 Thread Lv Qing
Hi, ... when I push w,osg cyclePolygonMode among line,point,fill. My question is How can I change the color of these osg::PolygonMode? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=53052#53052

Re: [osg-users] How to loaded the VPB generated terrain into osgearth?

2013-03-11 Thread Lv Qing
Hi, ... primary_split_level5/primary_split_level secondary_split_level11/secondary_split_level this parameters must as same sa the parameters you input in the osgDem command. Even that ,the ive you loaded with osgEarth may much slower than loaded from osg directly. Thank you!

[osg-users] How to set a node invisible but not its children?

2013-03-06 Thread Lv Qing
Hi, ... It sounds strange,but sometimes I want to use setNodemask(0) to set a node invisible,but still want its children all visible. Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52962#52962

[osg-users] a transparent MFC dialog blink problem

2013-02-18 Thread Lv Qing
Hi, ... We create some dialogs (qt or MFC) which showed above the osg App,then we set them transparent as a message tip. We find these dialogs always blink:) Our OS is Winxp,We found if the Winxp's start menu block the osg App,the start menu blinks too!I heard Win 7 seems not

Re: [osg-users] Is it necessary to re-compile osg when graphics card been changed?

2013-01-17 Thread Lv Qing
Hi, Thank both of you.Your replays are very professional .I will try Valgrind to check the code. Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51999#51999 ___ osg-users

[osg-users] how to buildethe debug version of osg under Linux?

2013-01-17 Thread Lv Qing
Hi, When I cmake the osg source under Linux,it seems to bulid the release version by default.Just want to know how to bulid the debug version :) ... Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52005#52005

[osg-users] Is it necessary to re-compile osg when graphics card been changed?

2013-01-16 Thread Lv Qing
Hi, I have changed my graphics card from GTX260 to Quadro FX 370 . Recently I find my app sometimes crashed as below: in free() from /lib/libc.so.6 libnvidia-glcore.so.260.19.44 which seems untraceable. Then I find a mistake ,I still use the

Re: [osg-users] dead locking problem of osgDB::DatabasePager::DatabaseThread under QT/linux

2012-10-29 Thread Lv Qing
hybr wrote: Hi at first try to update osg, may be you find this problem solved. Cheers. 27.10.2012, 17:39, Lv Qing : Hi, My osg2.9.11 app is working under QT/Linux.Occasionally it suffers a dead lock as follows:    #0 in _kernel_vsyscall()    #1

Re: [osg-users] dead locking problem of osgDB::DatabasePager::DatabaseThread under QT/linux

2012-10-29 Thread Lv Qing
robertosfield wrote: HI Lv, On 29 October 2012 10:16, Lv Qing wrote: I update 2.9.16 ,same problem!Not ready for osg3.0 ,too much change. 3.x might not address the problem you have, as it's likely down to some peculiarity of how the custom threading is behaving, but I would

[osg-users] dead locking problem of osgDB::DatabasePager::DatabaseThread under QT/linux

2012-10-27 Thread Lv Qing
Hi, My osg2.9.11 app is working under QT/Linux.Occasionally it suffers a dead lock as follows: #0 in _kernel_vsyscall() #1 in pthread_cond_wait_@@GLIBC_2.3.2 from/lib/libpthread #2 in Openthreads::Condition::wait from libOpenThreads #3 in

[osg-users] where is libosgQt in osg2.9.16?

2011-11-21 Thread Lv Qing
Hi, ... I used QOSGWidget which requies libosgQt of osg 2.9.11 . Then I notice there is none libosgQt when I compiled osg 2.9.16 in the same envirement,it is even not in the makefile. where is libosgQt in osg2.9.16?I realy need it for my app,thx! Thank you! Cheers, Lv

[osg-users] crush __lll_lock_wait_private () from /lib/libc.so.6

2011-09-07 Thread Lv Qing
Hi, ... I build a osg app on one machine with linux5.x and Nvidia GTX 260 which works fine. Then in another maching my osg sometimes crash as follows: #0 0x00fad402 in __kernel_vsyscall () #1 0x0522ede3 in __lll_lock_wait_private () from /lib/libc.so.6 #2 0x051be6f6 in _L_lock_15258 ()

[osg-users] [vpb] the near/far plane of two terrain model

2011-09-07 Thread Lv Qing
Hi, ... I have two osga terrain model,A is a quite large country model,B is a quite small city model. I just put the city model above the country model,then I zoom in to see the city model ,it seems to been culled.Then I set the near/far plane ratio to 0.01 which solve the

Re: [osg-users] osgText:FadeText attaching small object seems invisible initiatly

2011-09-06 Thread Lv Qing
Hi, ... setCullingActive(false) works Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42452#42452 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [vpb] vector layer made by osgGIS take too much cpu usage

2011-08-24 Thread Lv Qing
Hi, ... Here is the vector model ,25mb, nothing special。please just osgviewer it. I am a little supraise no one had this problem before,I think it's common for a globle world GIS system. Thank you! Cheers, Lv -- Read this topic online here:

Re: [osg-users] [vpb] what is the difference between pacthing and making two terrain models?

2011-08-23 Thread Lv Qing
Hi, ... I made a low resolution world.ive like this: vpbmaster --geocentric -t world-t.tif -d world-d.tif -l 8 -o world/world-8.ive then I wan to pitch a high resolution level of dem and image like this: vpbmaster --patch world/world-8.ive --levels 1 8 -d USA-d.tif -t USA-t.tif; It did take

Re: [osg-users] osgText:FadeText attaching small object seems invisible initiatly

2011-08-23 Thread Lv Qing
robertosfield wrote: Hi Lz, Could this be small feature culling culling the text? You can disable small feature via viewer.getCamera()-setCullingMode(viewer.getCamera()-getCullingMode() | ~osg::CullSettings::SMALL_FEATURE_CULLING); Robert. On Wed, Aug 10, 2011 at 9:32 AM, Lv Qing

Re: [osg-users] [vpb] what is the difference between pacthing and making two terrain models?

2011-08-23 Thread Lv Qing
robertosfield wrote: Hi Lv, You need to provide the master source file that the vpbmaster will have created during the first run in the second run, otherwise vpbmaster won't know what to patch. Robert. On Tue, Aug 23, 2011 at 1:06 PM, Lv Qing wrote: Hi, ... I made a low

Re: [osg-users] [vpb] vector layer made by osgGIS take too much cpu usage

2011-08-23 Thread Lv Qing
Hi, ... Hi, ... No one know what I am talking about?or just no better solution? The problem seems small,but it really affect the pefermence of my app. Robert,need your advise! Thank you! Cheers, Lv Thank you! Cheers, Lv -- Read this topic online here:

[osg-users] osgText:FadeText attaching small object seems invisible initiatly

2011-08-10 Thread Lv Qing
Hi, ... I have used osgText:FadeText attaching a model for displaying it's text information.I set the osgText:FadeText always It is OK in most case.Then I found if the model's size is small enough and the distance from viewer is too long(like 3000KM),the osgText:FadeText is not visible

[osg-users] osg::Lod and osgText::FadeText

2011-08-10 Thread Lv Qing
Hi, I have used osgText::FadeText for displaying some GIS lables. I also want to use osg::Lod for displaying the FadeText in a certain distance away from viewer. osg:OD* lod = new osg:od; lod-setRangeMode(osg:OD:ISTANCE_FROM_EYE_POINT); lod-addChild(textGeod,0,3000*1000); //textGeod already

Re: [osg-users] [vpb] vector layer made by osgGIS take too much cpu usage

2011-08-10 Thread Lv Qing
Hi, ... No solution? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41969#41969 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] [vpb] vector layer made by osgGIS take too much cpu usage

2011-07-31 Thread Lv Qing
Hi, I use vpb made a globle Earth model which size is about 3G,when I use osgviewer to view the model ,it took me only 10%~15% cpu usage. [img]http://wush.net/trac/osggis/browser/images/Round1.jpg?format=raw[/img] then I use osgGIS to make a layer model base on the globle Earth model and a

[osg-users] [vpb] what is the difference between pacthing and making two terrain models?

2011-07-20 Thread Lv Qing
Hi, ... I know the new vpbmaster offer patching a new data to a existing VirtualPlanetBuilder database. In my app.I made a low resolution earth model,and a high resolution area terrain model,then just load both of them,it ljust looks like palace a high resolution area above the low

[osg-users] [vpb] Is the VPB 1.0.0 available?

2011-07-20 Thread Lv Qing
Hi, just look forward it ... Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41514#41514 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [vpb] what is the difference between pacthing and making two terrain models?

2011-07-20 Thread Lv Qing
Hi, ... I will try it,another question,if two independent model is 2G each,pachting one to another make a 4G model,is right? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41536#41536

[osg-users] Computing Near and Far problem when viewing large terrain and small object

2011-06-08 Thread Lv Qing
Hi, My applicaiton use a quiet large terrain model (about 4000KM*4000KM),and when I viewing some very small flying objects(about 20m*20m) above the terrain ,the object seems been culled. I know it is the Near and Far Plane issue,so I

Re: [osg-users] include conflict while compiling osg 2.9.11

2011-05-09 Thread Lv Qing
. Robert. On Sat, May 7, 2011 at 4:55 PM, Lv Qing wrote: Hi, When I integrating my osg application into  a QT application ,I found some include conflicting while using osg 2.9.11. /usr/local/include/osgDB/Serializer:640: error:expected unqualified-id before numeric constant

[osg-users] different performance while viewering a VPB terrain model between osg2.8.4 and osg2.9.11

2011-05-07 Thread Lv Qing
Hi, I have a VPB generated terrain model (.osga),about 4000Km*4000KM and near 3 G. When I use osg2.9.11 viewering (osgviewer) this model ,it costs me only 5%~10% cpu usage. When I use osg2.8.4 viewering this model ,it cost me 15%~25% cpu usage. Is it because osg2.9.11 made improvements

[osg-users] performance while viewering a OSGGIS layer model

2011-05-07 Thread Lv Qing
Hi, ... Hi, I have a VPB generated terrain model (.osga),about 4000KM*4000KM and near 3 G. When I use osg2.8.4 viewering this model ,it cost me 15%~25% cpu usage. I also make a province boundary layer model using OSGGIS,it convers some vector shp file to a .ive model (all lines) which is

[osg-users] include conflict while compiling osg 2.9.11

2011-05-07 Thread Lv Qing
Hi, When I integrating my osg application into a QT application ,I found some include conflicting while using osg 2.9.11. /usr/local/include/osgDB/Serializer:640: error:expected unqualified-id before numeric constant /usr/local/include/osgDB/Serializer:640: error:expected `)' before numeric

Re: [osg-users] different performance while viewering a VPB terrain model between osg2.8.4 and osg2.9.11

2011-05-07 Thread Lv Qing
Chris 'Xenon' Hanson wrote: On 5/7/2011 9:24 AM, Lv Qing wrote: Is it because osg2.9.11 made improvements dealing with VPB generated terrain model ? OSG continues to improve. 2.9.11 will have lots of changes that could impact performance. What is the purpose of your question

Re: [osg-users] performance while viewering a OSGGIS layer model

2011-05-07 Thread Lv Qing
Hi, ... I mean why viewering a much small model (3.5mb) takes as much cpu usage as a large one(3.0G)? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39156#39156 ___

Re: [osg-users] [vpb] vpb generated .osga model seems disturb shared memory in qt4

2011-04-28 Thread Lv Qing
Hi, ... Problem solved! It is about some qt q_timer not-blocking signal issue,it is indeed nothing wrong with osg or vpb.I dont excatly know why,but I hope it will help others. Thank you all for your assistances in my most difficult time! Cheers, Lv -- Read this topic

Re: [osg-users] [vpb] vpb generated .osga model seems disturb shared memory in qt4

2011-04-22 Thread Lv Qing
Hi, ... use osg2.9.12 and vpb 0.9.10 ,it still fails。so desperate~~ Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38731#38731 ___ osg-users mailing list

[osg-users] [vpb] vpb generated .osga model seems disturb shared memory in qt4

2011-04-21 Thread Lv Qing
Hi, ... linux qt4 osg2.8.4 I have use ViewerQT to integrate an osg application to a qt4 application witch has other developer's none-osg application. Then something strange happen,the ViewerQT seems disturb qt4 application's shared memory ,which cause some memory crash however not direct

Re: [osg-users] [vpb] vpb generated .osga model seems disturb shared memory in qt4

2011-04-21 Thread Lv Qing
Hi, ... Thank you for reply so soon!I build osg2.8.4 on linux only release no debug. I just notic that since osg2.9.8 there is some improvement of VirtualPlanetBuilder suppot and DatabasePager memory management and QT support.Maybe I should try this? Thank you! Cheers, Lv

Re: [osg-users] [vpb] vpb generated .osga model seems disturb shared memory in qt4

2011-04-21 Thread Lv Qing
Hi, ... I dig up a littlte more this morning.I replace origina terrain.osga(about 2G) with a small terrain.osga(10mb) ,problem remains,my total memory is 4G. The error is printed within a net data send/receive management application which works normaly without osg application.The osg

Re: [osg-users] problem with osgFX::SpecularHighlights

2011-04-18 Thread Lv Qing
Hi, It works! Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38558#38558 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] VSync Linux NVidia

2011-04-16 Thread Lv Qing
Hi, ... I'm currently having a problem with NVidia hardware on Linux, it's not directly OSG related, but I hope someone here can help me. Here is my setup : linux NVidia GTX 260 graphic cards I have already enable Sync to VBlank in the Nvidia-settings.Every time I first start the

[osg-users] Is a MultiThreaded ViewetQT MDI version in unix possible?

2011-03-30 Thread Lv Qing
Hi, The example of osgviewerQT MDI version only run in SigleThreaded mode. Is a MultiThreaded ViewetQT MDI version in unix possible? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38073#38073

Re: [osg-users] problem with osgviewerQT/AdapterWidget.cpp Using ViewetQT MDI version

2011-03-30 Thread Lv Qing
Hi, solved as this,thx! void AdapterWidget::resizeGL( int width, int height ) { if (width 1) width = 1; if (hight 1) hight = 1; _gw-getEventQueue()-windowResize(0, 0, width, height ); _gw-resized(0,0,width,height); } Thank you! Cheers, Lv -- Read this

Re: [osg-users] [3rdparty] NodeTrackerManipulator for a globe Earth (Geocentric coordinate system)

2011-02-16 Thread Lv Qing
zonk wrote: Hi Lv (is that your realname?), what in detail does not work with the manipulator together with a round earh database? Do you mean the up-vector of the camera, which is not updated and lead to an misalligned orientation relativ to the tracked node? Cheers, Torben

[osg-users] [3rdparty] NodeTrackerManipulator for a globe Earth (Geocentric coordinate system)

2011-02-12 Thread Lv Qing
Hi, ... NodeTrackerManipulator works fine for a flat Earth,I want to modify it for a Geocentric globe Earth like EarthManipulator dose in osgEarth. Has anyone done it before? Thank you! Cheers, Lv -- Read this topic online here:

Re: [osg-users] [vpb] bulid a geocentric database with large image(.img )bigger than 4G

2010-11-07 Thread Lv Qing
robertosfield wrote: Hi Lv, One approach you could take would be to reproject the imagery using gdal_translate to the desired coordinate system and then set up VPB to use the reprojected imagery. Robert. On Fri, Oct 29, 2010 at 1:10 PM, Lv Qing wrote: Hi, ... Thx

Re: [osg-users] [vpb] bulid a geocentric database with large image(.img )bigger than 4G

2010-11-07 Thread Lv Qing
zonk wrote: Hi, Another solution could be to use libtiff newer than 4.0, with support for bigTiff (Tiff files larger than 4 GB) Cheers, Torben Thx,Zank! I try to compile GDAL1.70 which seems to support for bigTiff .But when VPB reprojecting the BigTiff image ,it report the .tiff

Re: [osg-users] [vpb] bulid a geocentric database with large image(.img )bigger than 4G

2010-11-07 Thread Lv Qing
Hi, I have splite the big image to 4 small image ,then use osgdem -t testA.tiff -t testB.tiff -t testC.tiff -t testD.tiff,the prpblem seem to solved! Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33562#33562

[osg-users] How to delete a NodeCallback*?

2010-11-02 Thread Lv Qing
Hi, //simply define a node and a NodeCallback osg::Node* node = new osg::Node; osg::NodeCallback* nc = new osg::NodeCallback; //setup the nodecallback,no problem node - setUpdateCallBack(nc ); //remove the nodecallback,no problem node - setUpdateCallBack(NULL); or node -

Re: [osg-users] How to delete a NodeCallback*?

2010-11-02 Thread Lv Qing
Hi, ... Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33297#33297 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] [vpb] bulid a geocentric database with large image(.img )bigger than 4G

2010-10-29 Thread Lv Qing
Hi, ... I want to build a geocentric database with large image(.img )bigger than 4G. Everytime VPB must reproject the .img image to a temp .tiff file first,the problem is .tiff file can not hold data larger than 4GB,so there also have problem when reprojecting the original image.I try to

[osg-users] rotate a arrow to a point

2010-04-20 Thread Lv Qing
Hi, I have create a arrow up to the sky ,its position is OSG::Vec3(x,y,z),its rotation is osg::quat quat1(osg::degreetoradians(90.0)*osg::Vec3(0,0,1)). I just want to rotate  this arrow  ,make it point to another  point(osg::Vec3(x1,y1,z1)). Thank you! Cheers, Lv -- Read

[osg-users] use osgSim::SphereSegment to create a cone

2010-04-14 Thread Lv Qing
Hi, ... I am using osgSim::SphereSegment to create a cone.like this: SphereSegment::SphereSegment(osg::Vec3(0,0), 100,0,360,-50,0). It looks OK,but there always has a secton betwen the acme and the bottom.I try to disable side color,surface color,spoke color,edgeLine color,there always

[osg-users] [vpb] which is the best Manipulator for a globe Earth?

2010-03-28 Thread Lv Qing
Hi, ... I have try the osgGA::TerrainManipulator to manipulat a globle Earth,it does not work very well .I also tried the EarthManipulator of osgEarth,it does well to a .earth model,but it seems work fail to a vpb generated (.osga) model.Can there be a solution? Thank you! Cheers, Lv

Re: [osg-users] High CPU usage problems with multi-monitor(TwinView) using Nvidia card, osg2.8

2009-12-13 Thread Lv Qing
Hi, Need help, please Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21380#21380 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-08 Thread Lv Qing
lq37 wrote: Hi, Thank you Glenn ! Please tell me how to use local up vector to set the orientation (pitch,roll,yaw) of my model. Thank you! Cheers, Lv Already solve the orientation issue,Thanks everyone! Only the height issue remain. -- Read this topic online

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-06 Thread Lv Qing
and then clamp down to the surface (using the local up-vector at that point). Glenn Waldron : Pelican Mapping : http://pelicanmapping.com (http://pelicanmapping.com) : +1.703.652.4791 On Sat, Dec 5, 2009 at 10:19 AM, Lv Qing () wrote: Hi, I have build a geocentric coordinate

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-06 Thread Lv Qing
Hi, Thank you Glenn ! Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20979#20979 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-05 Thread Lv Qing
Hi, I have build a geocentric coordinate earth model using VPB and want to put a simple model on the suface of the earth. I use the convertLatLongHeightToXYZ function to convert the BLH(Lat,Long,Height) of the simple model to XYZ of the geocentric coordinate system.The result of X and Y seems

[osg-users] High CPU usage problems with multi-monitor(TwinView) using Nvidia card, osg2.8

2009-11-25 Thread Lv Qing
Hi, Here is my setup: -- Intel Core 2 6420 2.13GHZ -- 3G RAM -- Nvidia GeForce GTX 260 (drivers: 6.14.11.8242 2009-3-9) -- winxp sp2,vs2005 -- osg2.8 In single monitor mode everything is working fine.When I run my application,CPU usage is a constant 10%~15%. But when I use two monitors and

Re: [osg-users] High CPU usage problems with multi-monitor(TwinView) using Nvidia card, osg2.8

2009-11-25 Thread Lv Qing
Hi, Here is my setup: -- Intel Core 2 6420 2.13GHZ -- 3G RAM -- Nvidia GeForce GTX 260 (drivers: 6.14.11.8242 2009-3-9) -- winxp sp2,vs2005 -- osg2.8 In single monitor mode everything is working fine.When I run my application,CPU usage is a constant 10%~15%. But when I use two monitors and

[osg-users] [vpb] Can I build a round earth with DEM?

2009-10-28 Thread Lv Qing
Hi, ... I have created an earth model with VPB ( an ellipsoid with earth texture) by the instruction post in http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/osgdem. (osgdem --bluemarble-west -t land_shallow_topo_west.tif --bluemarble-east -t land_shallow_topo_east.tif -l

[osg-users] [osgOcean] Is it possible to combine the effect of osgOcean to the terrain model which is build by VPB?

2009-10-28 Thread Lv Qing
Hi, ... I have build some terrain model by VPB(VirtualPlanetBuilder) which including some area of ocean.Is it possible to combine the effect of osgOcean to the terrain model which is build by VPB? Thank you! Cheers, Lv -- Read this topic online here: