[osg-users] HOW TO disable cameraManipulator?

2014-08-09 Thread wh_xiexing
hi , friends. when i edit some geometries in the scene. i want to disable the cameraManipulator, someone tell me how to ? wh_xiexing___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-

[osg-users] osg support gocad file format?

2014-04-08 Thread wh_xiexing
hi friends: osg support gocad file format? or is there a plugin like DB_gocad ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org__

[osg-users] problem of rendering overlaped models.

2013-02-15 Thread wh_xiexing
hi friends: i have 2 models to render, some part of which are overlaped . so the result is some kind of weird. how can i resolve this probem? do i need to split the model and align them? or set different render details for the 2 models? Shawl__

[osg-users] how pick the nearest point in a cloud point?

2013-02-12 Thread wh_xiexing
hi friends: m y question is that i want to select a point of the scene as the rotation center of the trackball manipulator . i know how to pick objects , but the scene is showing a point cloud , how to select the litttle point in the scene among the point cloud? is there a method to pick

[osg-users] how to use several texture one time?

2012-11-12 Thread wh_xiexing
i have a mesh and want to project several photo on the mesh . code is here: osg::Switch *layer = new osg::Switch; osg::Geode* leaf = 0; if (!hasTexture){ leaf = createLeaf(points, numOfVert, tris,header.np); layer->addChild(leaf); }else{ osg::Group *group = new osg::Group; for (unsigned int

Re: [osg-users] how to turn on the quad buffered feature.

2012-11-06 Thread wh_xiexing
...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of wh_xiexing Sent: 05 November 2012 06:50 To: osg-users Subject: [osg-users] how to turn on the quad buffered feature. i want to use the stereo feature of osg. osg::DisplaySettings::instance()->setStereoMode(mode);

[osg-users] how to turn on the quad buffered feature.

2012-11-04 Thread wh_xiexing
i want to use the stereo feature of osg. osg::DisplaySettings::instance()->setStereoMode(mode); osg::DisplaySettings::instance()->setEyeSeparation(0.01*value); where mode is osg::DisplaySettings::QUAD_BUFFER . but it doesn't work. my graphic card is the most recent quadro k4000M. do i need t

[osg-users] how to save kdtree into file

2012-11-02 Thread wh_xiexing
hi friends: i want to save the kdtree into an extern file so that it can prevent building it every time i open a model file? can it be possible? Shawl___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/l

[osg-users] how to build a fixed size object

2012-11-01 Thread wh_xiexing
hi friends sometimes we need fixed size object like annotation and control point , i know that using hud camera can make an object fixed size . has any better away to do that? Shawl___ osg-users mailing list osg-users@lists.openscenegraph.org htt

[osg-users] 回复: adding empty group to the scenview tree will cause problem?

2012-11-01 Thread wh_xiexing
add an empty group to the root . the mode looks like without normal . when removed the empty group . the light and other geometries appeared have someone met this situation? Shawl 发件人: wh_xiexing 发送时间: 2012-11-01 17:23 收件人: osg-users 主题: [osg-users] adding empty group to the scenview

[osg-users] adding empty group to the scenview tree will cause problem?

2012-11-01 Thread wh_xiexing
hi friends: adding empty group to the scene view tree will make the light and normal lose it's effect? i do this in order to add geometries to the group later on. Shawl From: Robert Osfield Date: 2012-10-22 23:48 To: OpenSceneGraph Users Subject: Re: [osg-users] slave camera render to textu

[osg-users] 回复: Re: how to change project matrix temporarily?;

2012-10-29 Thread wh_xiexing
e best way? it's wierd that sometims the line is disappeared. other question is the GL API glPushAttrib(GL_TRANSFORM_BIT); in pushProjectionOffest is identical to calling osg::GLBeginEndAdapter& gl 's method ? Shawl 发件人: wh_xiexing 发送时间: 2012-10-29 16:50 收件人: os

Re: [osg-users] how to change project matrix temporarily?;

2012-10-29 Thread wh_xiexing
can use to modify the modelview and projection matrices along with many other things. As you see there are plenty of options, which to recommend I can't say as you haven't yet given the context of the problem you are trying to solve. Robert. On 29 October 2012 00:21, wh_xiexing wrote: >

[osg-users] how to change project matrix temporarily?;

2012-10-28 Thread wh_xiexing
i want to implement the same effect of the following code using open scene graph. can it be possiable? public void pushProjectionOffest(Double offset) { // Modify the projection transform to shift the depth values slightly toward the camera in order to // ensure the lines are

[osg-users] building kdtree

2012-10-27 Thread wh_xiexing
osg users : building kdtree makes it a long time to open a model file, could i build kdtree in a background thread? if i can , how to do that ?___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/li

[osg-users] speed up the loading

2012-10-22 Thread wh_xiexing
i have hundreds of millions of points to render.i think the Geometry 's setVertexArray (Vec3Array) is time consuming . for every point , it must construct a Vec3 class, and put it into the array. so i want to modified it to setVertexArray (float*) , so that i can read a block of dat

[osg-users] how does osg call opengl's api

2012-10-20 Thread wh_xiexing
hi friends. i look through the code ,but can't find the places where the osg call opengl's api . like glDrawArray . could someone tell me how the osg interact with the opengl? Shawl___ osg-users mailing list osg-users@lists.openscenegraph.or

[osg-users] about the cull mechanism in osg

2012-10-18 Thread wh_xiexing
dear friends: i am newbie . my question is , i have a group which contains a lot a gode. in order to speed the rendering . i don't know whether i need to write a cull callback . or do nothing and let the osg system do the culling work instead . does osg automatically traverse the

[osg-users] how to pick a cluster of points

2012-09-24 Thread wh_xiexing
Dear friends . i want to create an editor tool that can select a cluster of points one time in order to remove the selected points . osg provide the functions to do that job? or i need to code from scratch? thank you for your help Shawl__

[osg-users] how to use unique color to pick object?

2012-08-30 Thread wh_xiexing
Dear friends: in openGL programming . there is a method to pick the object from the scene.rendering the scene in the back buffer, every object with an unique color . than , rendering second time in a normal way. when the user move mouse in the screen . read the pixel value un

Re: [osg-users] HUD disappeared

2012-08-23 Thread wh_xiexing
thank you , Robert. you solved my problem. wh_xiexing From: Robert Osfield Date: 2012-08-23 18:53 To: OpenSceneGraph Users Subject: Re: [osg-users] HUD disappeared Hi wh? xiexin? Which human name would you like to be addressed as? There isn't any way we'll be able to pi

[osg-users] how to be notified that the viewport is changed?

2012-08-23 Thread wh_xiexing
dear friends: when the user resize the applicatioin's window, how do i know the viewport of the camera is changed? wh_xiexing___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscen

[osg-users] HUD disappeared

2012-08-19 Thread wh_xiexing
i create a compass on the screen, but when i open an model , the HUD Compass disappeared . following is my code. can some one tell me how to resolve this problem? //create hud camera theCameraNode = new osg::Camera; theCameraNode->setReferenceFrame(osg::Transform::ABSOLUTE_RF); theCameraNode->

[osg-users] how to edit geometries on the scene?

2012-07-22 Thread wh_xiexing
i am newbie of OSG. i used worldwind to represent the globe. now migrate to OSG , i wondered how to draw lines , polygons , and add some mesurement function in my software, can someone give me an idea?___ osg-users mailing list osg-users@lists.o

[osg-users] how to add progress bar to readerwriter?

2012-07-05 Thread wh_xiexing
HI. I implement a readerwriter plugin to read .las file which contains tremendous amount of points . so i want to use progressbar to tell the user how much points i have read . anybody can tell me how to do? thank you___ osg-users maili