Re: [osg-users] how to keep the camera from being below the terrain?

2013-01-14 Thread Sergey Polischuk
Hi there is no collision detection in osg. You can use intersectors in osgUtil and trace rays from camera downwards to check distance from ground, or use some physics engine to get proper collision detection. Cheers. 13.01.2013, 20:51, "Yansi Yao" :Hi all,I'm going to attach a bounding box or bounding sphere to the camera, and detect the collision between the terrain and the bounding object. But I don't know how to detect this collision in osg. Could you tell me how to do this? or is there any demo for this problem?Cheersyaoyansi,___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] 回复: how to keep the camera from being below the terrain?

2013-01-14 Thread Yansi Yao
Thanks for your reply, Sergey. I will try it.
BTW, sometimes, I want to detect the intersection between the camera frustum 
and the terrain. So,is there any way to detect the intersection between a 
bounding sphere(or box) and the terrain in OSG? 


Cheers
yaoyansi




 发件人: Sergey Polischuk 
收件人: OpenSceneGraph Users  
发送日期: 2013年1月14日, 星期一, 4:34 下午
主题: Re: [osg-users] how to keep the camera from being below the terrain?
 

Hi
 
there is no collision detection in osg. You can use intersectors in osgUtil and 
trace rays from camera downwards to check distance from ground, or use some 
physics engine to get proper collision detection.
 
Cheers.
 
13.01.2013, 20:51, "Yansi Yao" :

>Hi all,
>I'm going to attach a bounding box or bounding sphere to the camera, and 
>detect the collision between the terrain and the bounding object. But I don't 
>know how to detect this collision in osg. Could you tell me how to do this? or 
>is there any demo for this problem?
>
>Cheers
>yaoyansi  ,
>___
>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] 回复: how to keep the camera from being below the terrain?

2013-01-14 Thread Sergey Polischuk
I believe you can use osgUtil::PolytopeIntersector for this purpose, but i didn't used it myself and can't say much more than that. 14.01.2013, 12:51, "Yansi Yao" :Thanks for your reply, Sergey. I will try it.BTW, sometimes, I want to detect the intersection between the camera frustum and the terrain. So, is there any way to detect the intersection between a bounding sphere(or box) and the terrain in OSG?  Cheersyaoyansi 发件人: Sergey Polischuk  收件人: OpenSceneGraph Users   发送日期: 2013年1月14日, 星期一, 4:34 下午 主题: Re: [osg-users] how to keep the camera from being below the terrain? Hi there is no collision detection in osg. You can use intersectors in osgUtil and trace rays from camera downwards to check distance from ground, or use some physics engine to get proper collision detection. Cheers. 13.01.2013, 20:51, "Yansi Yao" :Hi all,I'm going to attach a bounding box or bounding sphere to the camera, and detect the collision between the terrain and the bounding object. But I don't know how to detect this collision in osg. Could you tell me how to do this? or is there any demo for this problem?Cheersyaoyansi,___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 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] Get VBO modified data

2013-01-14 Thread Carlos Reig Matut
Hi all,

I am developing an aplication which uses several osg::Geometry for
drawing the objects in the scene graph. In order to make the drawing
process faster, each osg::Geometry has its own VBO and I modify the
VBO vertex with some OpenCL kernels.

So far it is ok, my problem begin when I need to get the modified VBO
data. When the OpenCL kernel is executed, the VBO data changes in the
GPU memory and I don't know which is it in the CPU. For getting it, I
have to copy from the GPU memory to the CPU.

That I need is know if there is a method like
osg::GLBufferObject::dirty() (which copies the VBO data from the CPU
to the GPU) but on the inverse.

I know I can solve the problem making a another kernel in OpenCL which
copies the data, but I want to know if osg has a method who read the
GPU memory.

Thank you,
Carlos.

-- 
--
Carlos Reig Matut
LSyM - Instituto IRTIC
Universidad de Valencia

Ph. +34 96 354 3639 -- ext. 43639
http://irtic.uv.es/lsym
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] 回复: how to keep the camera from being below the terrain?

2013-01-14 Thread Chris Hanson
PolytopeIntersector should do what you want, alternately you can fire off
lines from the four corners of the screen.


On Mon, Jan 14, 2013 at 2:36 AM, Sergey Polischuk  wrote:

> I believe you can use osgUtil::PolytopeIntersector for this purpose, but i
> didn't used it myself and can't say much more than that.
>
> 14.01.2013, 12:51, "Yansi Yao" :
>
> Thanks for your reply, Sergey. I will try it.
> BTW, sometimes, I want to detect the intersection between the camera frustum
> and the terrain. So, is there any way to detect the intersection between
> a bounding sphere(or box) and the terrain in OSG?
>
> Cheers
> yaoyansi
>
> --
> *发件人:* Sergey Polischuk 
> *收件人:* OpenSceneGraph Users 
> *发送日期:* 2013年1月14日, 星期一, 4:34 下午
> *主题:* Re: [osg-users] how to keep the camera from being below the terrain?
>
> Hi
>
> there is no collision detection in osg. You can use intersectors in
> osgUtil and trace rays from camera downwards to check distance from ground,
> or use some physics engine to get proper collision detection.
>
> Cheers.
>
> 13.01.2013, 20:51, "Yansi Yao" :
>
>
> Hi all,
> I'm going to attach a bounding box or bounding sphere to the camera, and
> detect the collision between the terrain and the bounding object. But I
> don't know how to detect this collision in osg. Could you tell me how to do
> this? or is there any demo for this problem?
>
> Cheers
> yaoyansi
> ,
> ___
> 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
>
>
> ___
> 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
Digital Imaging * GIS * GPS * osgEarth * Terrain * Telemetry * Cryptography
* Digital Audio * LIDAR * Kinect * 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] “Include can't be =?UTF-8?Q?found=E2=80=9D?=, how to fix it?

2013-01-14 Thread Philip Lamb
You'll also need to add /Library/Frameworks to the "Frameworks search path" in 
your project settings.

Regards,
Phil.

On 12/01/2013, at 3:02 AM, Mohamed Alji  wrote:

> Hi,
> 
> I am developing using OpenSceneGraph. I installed it from a user-runnable 
> installer.
> 
> When I try to compile an application using OpenSceneGraph, I have this 
> Include can't be found for all includes, like .

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