Re: [osg-users] ray tracing using OSG

2009-04-20 Thread Robert Osfield
On Tue, Apr 14, 2009 at 7:19 PM, ami guru dosto.wa...@gmail.com wrote:

 Thanks for all  the feedback


 I wondering if osgvolume is doing ray tracing and what is its type.


The osgVolume NodeKit does ray tracing in the fragment shader, but this ray
tracing is very specific to 3D textures, it doesn't work for geometric
models.

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


Re: [osg-users] ray tracing using OSG

2009-04-14 Thread Jean-Sébastien Guay

Hello Sajjad,


So far i have got from the forum Jean-Sébastien Guay did his Masters thesis
on that domain and it would be really nice
if he provide the link to the report, at least it would be a starting 
point for me.


My Masters thesis was written in French unfortunately, and translating 
it all would take too much time. Anyways, the subject was not really ray 
tracing but an extension to PRT (Precomputed Radiance Transfer) to be 
able to recompute shading interactively in dynamic scenes.


Ray tracing with OSG is actually pretty easy if you just want to 
raytrace a picture of your scene, just get your viewer camera's 
parameters, generate some rays and use the kdtree support in 
LineSegmentIntersector to trace through the scene. Of course, if you 
want to do global illumination or advanced effects then it's more 
complicated, but there's been a lot written on those subjects, and it's 
not OSG's main focus, so you're pretty much on your own...


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ray tracing using OSG

2009-04-14 Thread Paul Melis

ami guru wrote:

Hello Forum,


I was wondering if there is anyone have done ray tracing using OSG.
I once made a very quick and dirty example that merely uses OSG's 
KD-tree support to do ray tracing.

See this thread:
http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/014399.html

Regards,
Paul




So far i have got from the forum Jean-Sébastien Guay did his Masters 
thesis

on that domain and it would be really nice
if he provide the link to the report, at least it would be a starting 
point for me.


What do you think Jean?


Regards
Sajjad





___
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] ray tracing using OSG

2009-04-14 Thread ami guru
Thanks for all  the feedback


I wondering if osgvolume is doing ray tracing and what is its type.


Did that framework follow any published paper?

Sajjad

On Tue, Apr 14, 2009 at 4:12 PM, Paul Melis p...@science.uva.nl wrote:

 ami guru wrote:

 Hello Forum,


 I was wondering if there is anyone have done ray tracing using OSG.

 I once made a very quick and dirty example that merely uses OSG's KD-tree
 support to do ray tracing.
 See this thread:

 http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/014399.html

 Regards,
 Paul



 So far i have got from the forum Jean-Sébastien Guay did his Masters
 thesis
 on that domain and it would be really nice
 if he provide the link to the report, at least it would be a starting
 point for me.

 What do you think Jean?


 Regards
 Sajjad



 

 ___
 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] ray tracing using OSG

2009-04-13 Thread Tomlinson, Gordon
Nice animation 


Gordon
Product Manager 3d
__
Gordon Tomlinson
Email  : gtomlinson @ overwatch.textron.com
__


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Charles Cossé
Sent: Sunday, April 12, 2009 8:08 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] ray tracing using OSG

Sent you some stuff directly ... let me know if you don't receive it.
 Here's a link to animation produced by my OSG raytracing efforts with
smoke:

http://www.asymptopia.org/gif/3D_SMOKE.gif

Good luck,
Charles

On Sun, Apr 12, 2009 at 4:15 PM, ami guru dosto.wa...@gmail.com wrote:
 Hello Charles,


 It would be nice if you can provide me the links of reference that you 
 have preserved about ray tracing

 or anything related to  that field that will help to get started.


 I have going through the ground up 

 Scanline conversion and then the usual Ray Tracing

 Want to do that using the GPU and the OSG framework.


 Any of your suggestion would be a great help i believe


 Thanks
 Sajjad

 On Sat, Apr 11, 2009 at 10:53 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Adrian


 I am afraid that i will be getting into off-topic now, so you can 
 mail me at dosto.wa...@gmail.com

 I tried as follows:

 cmake -i .

 and got the following error:


 ***
 saj...@sajjad:~/downloads/RayTracer/RayTracer$ cmake -i .
 Would you like to see advanced options? [No]:y Please wait while 
 cmake processes CMakeLists.txt files

 CMake Error: The source directory /Users/PWD/dev/RayTracer does not 
 exist.
 Specify --help for usage, or press the help button on the CMake GUI.


 *'


 I am not that into Cmake that is why most of the error output is not 
 making much sense to me.


 Tried with my Own Make file but get error for the ply reader


 Sajjad


 On Sat, Apr 11, 2009 at 8:19 PM, Adrian Egli OpenSceneGraph (3D) 
 3dh...@gmail.com wrote:

 cmake -i .
 make
 ./RayTracer [model.osg]
 default model plane and cow.osg
 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 cmake -i .
 make
 ./RayTracer [model.osg]
 default model plane and cow.osg
 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Well i don't know,  i just build my raytracer this morning on mac 
 os/x with osg trunk. (svn )

 i will send the code and cmake file

 /adrian


 2009/4/11 ami guru dosto.wa...@gmail.com

 Thanks


 For the code skeleton, that will pave a way to get started i believe.
 Now i am going through  the following issues:

 Just updated the installation from the trunk to 2.9.3.

  i executed the make file to compile the code that you have sent 
 and the following error showed up:


 **
 g++  -c kdTree.cpp
 g++  -c main.cpp
 g++  -c plymeshreader.cpp
 g++  -c sphereunitvecpool.cpp
 g++  -c TriangleNodeVisitor.cpp
 TriangleNodeVisitor.cpp: In member function 'void
 TriangleNodeVisitor::processGeometry(osg::Geometry*)':
 TriangleNodeVisitor.cpp:294: error: cannot declare variable 'pif' 
 to be of abstract type 'PrimitiveIndexWriter'
 TriangleNodeVisitor.cpp:79: note:   because the following virtual 
 functions are pure within 'PrimitiveIndexWriter':
 /usr/local/include/osg/PrimitiveSet:134: note:     virtual void 
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec2d*)
 /usr/local/include/osg/PrimitiveSet:135: note:     virtual void 
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec3d*)
 /usr/local/include/osg/PrimitiveSet:136: note:     virtual void 
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec4d*)
 make: *** [TriangleNodeVisitor.o] Error 1



 **


 I checked the code but i have not found any function with pure 
 virtual as the message above said.

 Any hint to get around that issue?


 Regards
 Sajjad

 On Sat, Apr 11, 2009 at 7:54 PM, Adrian Egli OpenSceneGraph (3D) 
 3dh...@gmail.com wrote:

 :-) Once you have some questions,  i could answer them, the code 
 is fast but not very fast :-) have also a look at ompf.org and 
 search for arauna / bikker

 /adrian

 2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian 
 Egli?) with his first cut at raytracing using a kd tree.   I 
 saved all the links to the various posts/threads on this 
 subject, also, which can share with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru 
 dosto.wa...@gmail.com
 wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing 
  using OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his 
  Masters thesis on that domain and it would be really nice if 
  he provide the link to the report, at least it would be a 
  starting point for me.
 
  What do you think Jean

Re: [osg-users] ray tracing using OSG

2009-04-12 Thread ami guru
Hello Charles,


It would be nice if you can provide me the links of reference that you have
preserved about ray tracing

or anything related to  that field that will help to get started.


I have going through the ground up 

Scanline conversion and then the usual Ray Tracing

Want to do that using the GPU and the OSG framework.


Any of your suggestion would be a great help i believe


Thanks
Sajjad

On Sat, Apr 11, 2009 at 10:53 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Adrian


 I am afraid that i will be getting into off-topic now, so you can mail me
 at dosto.wa...@gmail.com

 I tried as follows:

 cmake -i .

 and got the following error:


 ***
 saj...@sajjad:~/downloads/RayTracer/RayTracer$ cmake -i .
 Would you like to see advanced options? [No]:y
 Please wait while cmake processes CMakeLists.txt files

 CMake Error: The source directory /Users/PWD/dev/RayTracer does not
 exist.
 Specify --help for usage, or press the help button on the CMake GUI.


 *'


 I am not that into Cmake that is why most of the error output is not making
 much sense to me.


 Tried with my Own Make file but get error for the ply reader


 Sajjad



 On Sat, Apr 11, 2009 at 8:19 PM, Adrian Egli OpenSceneGraph (3D) 
 3dh...@gmail.com wrote:

 cmake -i . make
 ./RayTracer [model.osg]

 default model plane and cow.osg

 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 cmake -i . make
 ./RayTracer [model.osg]

 default model plane and cow.osg

 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Well i don't know,  i just build my raytracer this morning on mac os/x
 with osg trunk. (svn )

 i will send the code and cmake file

 /adrian


 2009/4/11 ami guru dosto.wa...@gmail.com

 Thanks


 For the code skeleton, that will pave a way to get started i believe.
 Now i am going through  the following issues:

 Just updated the installation from the trunk to 2.9.3.

  i executed the make file to compile the code that you have sent and
 the following error showed up:


 **
 g++  -c kdTree.cpp
 g++  -c main.cpp
 g++  -c plymeshreader.cpp
 g++  -c sphereunitvecpool.cpp
 g++  -c TriangleNodeVisitor.cpp
 TriangleNodeVisitor.cpp: In member function ‘void
 TriangleNodeVisitor::processGeometry(osg::Geometry*)’:
 TriangleNodeVisitor.cpp:294: error: cannot declare variable ‘pif’ to be
 of abstract type ‘PrimitiveIndexWriter’
 TriangleNodeVisitor.cpp:79: note:   because the following virtual
 functions are pure within ‘PrimitiveIndexWriter’:
 /usr/local/include/osg/PrimitiveSet:134: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec2d*)
 /usr/local/include/osg/PrimitiveSet:135: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec3d*)
 /usr/local/include/osg/PrimitiveSet:136: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec4d*)
 make: *** [TriangleNodeVisitor.o] Error 1



 **


 I checked the code but i have not found any function with pure virtual
 as the message above said.

 Any hint to get around that issue?


 Regards
 Sajjad

 On Sat, Apr 11, 2009 at 7:54 PM, Adrian Egli OpenSceneGraph (3D) 
 3dh...@gmail.com wrote:

 :-) Once you have some questions,  i could answer them, the code is
 fast but not very fast :-) have also a look at ompf.org
 and search for arauna / bikker

 /adrian

 2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian Egli?) with
 his first cut at raytracing using a kd tree.   I saved all the links
 to the various posts/threads on this subject, also, which can share
 with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com
 wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing using OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his
 Masters thesis
  on that domain and it would be really nice
  if he provide the link to the report, at least it would be a
 starting point
  for me.
 
  What do you think Jean?
 
 
  Regards
  Sajjad
 
 
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 



 --
 AsymptopiaSoftware|softw...@thelimit
  http://www.asymptopia.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 
 Adrian Egli

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 ___
 osg-users mailing 

Re: [osg-users] ray tracing using OSG

2009-04-12 Thread Charles Cossé
Sent you some stuff directly ... let me know if you don't receive it.
 Here's a link to animation produced by my OSG raytracing efforts with
smoke:

http://www.asymptopia.org/gif/3D_SMOKE.gif

Good luck,
Charles

On Sun, Apr 12, 2009 at 4:15 PM, ami guru dosto.wa...@gmail.com wrote:
 Hello Charles,


 It would be nice if you can provide me the links of reference that you have
 preserved about ray tracing

 or anything related to  that field that will help to get started.


 I have going through the ground up 

 Scanline conversion and then the usual Ray Tracing

 Want to do that using the GPU and the OSG framework.


 Any of your suggestion would be a great help i believe


 Thanks
 Sajjad

 On Sat, Apr 11, 2009 at 10:53 PM, ami guru dosto.wa...@gmail.com wrote:

 Hello Adrian


 I am afraid that i will be getting into off-topic now, so you can mail me
 at dosto.wa...@gmail.com

 I tried as follows:

 cmake -i .

 and got the following error:


 ***
 saj...@sajjad:~/downloads/RayTracer/RayTracer$ cmake -i .
 Would you like to see advanced options? [No]:y
 Please wait while cmake processes CMakeLists.txt files

 CMake Error: The source directory /Users/PWD/dev/RayTracer does not
 exist.
 Specify --help for usage, or press the help button on the CMake GUI.


 *'


 I am not that into Cmake that is why most of the error output is not
 making much sense to me.


 Tried with my Own Make file but get error for the ply reader


 Sajjad


 On Sat, Apr 11, 2009 at 8:19 PM, Adrian Egli OpenSceneGraph (3D)
 3dh...@gmail.com wrote:

 cmake -i .
 make
 ./RayTracer [model.osg]
 default model plane and cow.osg
 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 cmake -i .
 make
 ./RayTracer [model.osg]
 default model plane and cow.osg
 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Well i don't know,  i just build my raytracer this morning on mac os/x
 with osg trunk. (svn )

 i will send the code and cmake file

 /adrian


 2009/4/11 ami guru dosto.wa...@gmail.com

 Thanks


 For the code skeleton, that will pave a way to get started i believe.
 Now i am going through  the following issues:

 Just updated the installation from the trunk to 2.9.3.

  i executed the make file to compile the code that you have sent and
 the following error showed up:


 **
 g++  -c kdTree.cpp
 g++  -c main.cpp
 g++  -c plymeshreader.cpp
 g++  -c sphereunitvecpool.cpp
 g++  -c TriangleNodeVisitor.cpp
 TriangleNodeVisitor.cpp: In member function ‘void
 TriangleNodeVisitor::processGeometry(osg::Geometry*)’:
 TriangleNodeVisitor.cpp:294: error: cannot declare variable ‘pif’ to
 be of abstract type ‘PrimitiveIndexWriter’
 TriangleNodeVisitor.cpp:79: note:   because the following virtual
 functions are pure within ‘PrimitiveIndexWriter’:
 /usr/local/include/osg/PrimitiveSet:134: note:     virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec2d*)
 /usr/local/include/osg/PrimitiveSet:135: note:     virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec3d*)
 /usr/local/include/osg/PrimitiveSet:136: note:     virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const 
 osg::Vec4d*)
 make: *** [TriangleNodeVisitor.o] Error 1



 **


 I checked the code but i have not found any function with pure virtual
 as the message above said.

 Any hint to get around that issue?


 Regards
 Sajjad

 On Sat, Apr 11, 2009 at 7:54 PM, Adrian Egli OpenSceneGraph (3D)
 3dh...@gmail.com wrote:

 :-) Once you have some questions,  i could answer them, the code is
 fast but not very fast :-) have also a look at ompf.org
 and search for arauna / bikker

 /adrian

 2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian Egli?)
 with
 his first cut at raytracing using a kd tree.   I saved all the links
 to the various posts/threads on this subject, also, which can share
 with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com
 wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing using
  OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his
  Masters thesis
  on that domain and it would be really nice
  if he provide the link to the report, at least it would be a
  starting point
  for me.
 
  What do you think Jean?
 
 
  Regards
  Sajjad
 
 
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 



 --
 AsymptopiaSoftware|softw...@thelimit
          http://www.asymptopia.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 

Re: [osg-users] ray tracing using OSG

2009-04-11 Thread Charles Cossé
Hi Sajjad,

Attached I have tgz'd-up a file posted earlier (by Adrian Egli?) with
his first cut at raytracing using a kd tree.   I saved all the links
to the various posts/threads on this subject, also, which can share
with you if interested.

Charles

On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com wrote:
 Hello Forum,


 I was wondering if there is anyone have done ray tracing using OSG.


 So far i have got from the forum Jean-Sébastien Guay did his Masters thesis
 on that domain and it would be really nice
 if he provide the link to the report, at least it would be a starting point
 for me.

 What do you think Jean?


 Regards
 Sajjad




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





-- 
AsymptopiaSoftware|softw...@thelimit
  http://www.asymptopia.org


RayTracer.tgz
Description: GNU Zip compressed data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ray tracing using OSG

2009-04-11 Thread Adrian Egli OpenSceneGraph (3D)
:-) Once you have some questions,  i could answer them, the code is fast but
not very fast :-) have also a look at ompf.org
and search for arauna / bikker

/adrian

2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian Egli?) with
 his first cut at raytracing using a kd tree.   I saved all the links
 to the various posts/threads on this subject, also, which can share
 with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing using OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his Masters
 thesis
  on that domain and it would be really nice
  if he provide the link to the report, at least it would be a starting
 point
  for me.
 
  What do you think Jean?
 
 
  Regards
  Sajjad
 
 
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 



 --
 AsymptopiaSoftware|softw...@thelimit
  http://www.asymptopia.org

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




-- 

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


Re: [osg-users] ray tracing using OSG

2009-04-11 Thread ami guru
Thanks


For the code skeleton, that will pave a way to get started i believe. Now i
am going through  the following issues:

Just updated the installation from the trunk to 2.9.3.

 i executed the make file to compile the code that you have sent and the
following error showed up:


**
g++  -c kdTree.cpp
g++  -c main.cpp
g++  -c plymeshreader.cpp
g++  -c sphereunitvecpool.cpp
g++  -c TriangleNodeVisitor.cpp
TriangleNodeVisitor.cpp: In member function ‘void
TriangleNodeVisitor::processGeometry(osg::Geometry*)’:
TriangleNodeVisitor.cpp:294: error: cannot declare variable ‘pif’ to be of
abstract type ‘PrimitiveIndexWriter’
TriangleNodeVisitor.cpp:79: note:   because the following virtual functions
are pure within ‘PrimitiveIndexWriter’:
/usr/local/include/osg/PrimitiveSet:134: note: virtual void
osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec2d*)
/usr/local/include/osg/PrimitiveSet:135: note: virtual void
osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec3d*)
/usr/local/include/osg/PrimitiveSet:136: note: virtual void
osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec4d*)
make: *** [TriangleNodeVisitor.o] Error 1



**


I checked the code but i have not found any function with pure virtual as
the message above said.

Any hint to get around that issue?


Regards
Sajjad

On Sat, Apr 11, 2009 at 7:54 PM, Adrian Egli OpenSceneGraph (3D) 
3dh...@gmail.com wrote:

 :-) Once you have some questions,  i could answer them, the code is fast
 but not very fast :-) have also a look at ompf.org
 and search for arauna / bikker

 /adrian

 2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian Egli?) with
 his first cut at raytracing using a kd tree.   I saved all the links
 to the various posts/threads on this subject, also, which can share
 with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing using OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his Masters
 thesis
  on that domain and it would be really nice
  if he provide the link to the report, at least it would be a starting
 point
  for me.
 
  What do you think Jean?
 
 
  Regards
  Sajjad
 
 
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 



 --
 AsymptopiaSoftware|softw...@thelimit
  http://www.asymptopia.org

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




 --
 
 Adrian Egli

 ___
 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] ray tracing using OSG

2009-04-11 Thread Adrian Egli OpenSceneGraph (3D)
Well i don't know,  i just build my raytracer this morning on mac os/x with
osg trunk. (svn )

i will send the code and cmake file

/adrian


2009/4/11 ami guru dosto.wa...@gmail.com

 Thanks


 For the code skeleton, that will pave a way to get started i believe. Now i
 am going through  the following issues:

 Just updated the installation from the trunk to 2.9.3.

  i executed the make file to compile the code that you have sent and the
 following error showed up:


 **
 g++  -c kdTree.cpp
 g++  -c main.cpp
 g++  -c plymeshreader.cpp
 g++  -c sphereunitvecpool.cpp
 g++  -c TriangleNodeVisitor.cpp
 TriangleNodeVisitor.cpp: In member function ‘void
 TriangleNodeVisitor::processGeometry(osg::Geometry*)’:
 TriangleNodeVisitor.cpp:294: error: cannot declare variable ‘pif’ to be of
 abstract type ‘PrimitiveIndexWriter’
 TriangleNodeVisitor.cpp:79: note:   because the following virtual functions
 are pure within ‘PrimitiveIndexWriter’:
 /usr/local/include/osg/PrimitiveSet:134: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec2d*)
 /usr/local/include/osg/PrimitiveSet:135: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec3d*)
 /usr/local/include/osg/PrimitiveSet:136: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec4d*)
 make: *** [TriangleNodeVisitor.o] Error 1



 **


 I checked the code but i have not found any function with pure virtual as
 the message above said.

 Any hint to get around that issue?


 Regards
 Sajjad

 On Sat, Apr 11, 2009 at 7:54 PM, Adrian Egli OpenSceneGraph (3D) 
 3dh...@gmail.com wrote:

 :-) Once you have some questions,  i could answer them, the code is fast
 but not very fast :-) have also a look at ompf.org
 and search for arauna / bikker

 /adrian

 2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian Egli?) with
 his first cut at raytracing using a kd tree.   I saved all the links
 to the various posts/threads on this subject, also, which can share
 with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com
 wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing using OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his Masters
 thesis
  on that domain and it would be really nice
  if he provide the link to the report, at least it would be a starting
 point
  for me.
 
  What do you think Jean?
 
 
  Regards
  Sajjad
 
 
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 



 --
 AsymptopiaSoftware|softw...@thelimit
  http://www.asymptopia.org

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




 --
 
 Adrian Egli

 ___
 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




-- 

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


Re: [osg-users] ray tracing using OSG

2009-04-11 Thread ami guru
Hello Adrian


I am afraid that i will be getting into off-topic now, so you can mail me at
dosto.wa...@gmail.com

I tried as follows:

cmake -i .

and got the following error:


***
saj...@sajjad:~/downloads/RayTracer/RayTracer$ cmake -i .
Would you like to see advanced options? [No]:y
Please wait while cmake processes CMakeLists.txt files

CMake Error: The source directory /Users/PWD/dev/RayTracer does not exist.
Specify --help for usage, or press the help button on the CMake GUI.


*'


I am not that into Cmake that is why most of the error output is not making
much sense to me.


Tried with my Own Make file but get error for the ply reader


Sajjad


On Sat, Apr 11, 2009 at 8:19 PM, Adrian Egli OpenSceneGraph (3D) 
3dh...@gmail.com wrote:

 cmake -i . make
 ./RayTracer [model.osg]

 default model plane and cow.osg

 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 cmake -i . make
 ./RayTracer [model.osg]

 default model plane and cow.osg

 2009/4/11 Adrian Egli OpenSceneGraph (3D) 3dh...@gmail.com

 Well i don't know,  i just build my raytracer this morning on mac os/x
 with osg trunk. (svn )

 i will send the code and cmake file

 /adrian


 2009/4/11 ami guru dosto.wa...@gmail.com

 Thanks


 For the code skeleton, that will pave a way to get started i believe.
 Now i am going through  the following issues:

 Just updated the installation from the trunk to 2.9.3.

  i executed the make file to compile the code that you have sent and the
 following error showed up:


 **
 g++  -c kdTree.cpp
 g++  -c main.cpp
 g++  -c plymeshreader.cpp
 g++  -c sphereunitvecpool.cpp
 g++  -c TriangleNodeVisitor.cpp
 TriangleNodeVisitor.cpp: In member function ‘void
 TriangleNodeVisitor::processGeometry(osg::Geometry*)’:
 TriangleNodeVisitor.cpp:294: error: cannot declare variable ‘pif’ to be
 of abstract type ‘PrimitiveIndexWriter’
 TriangleNodeVisitor.cpp:79: note:   because the following virtual
 functions are pure within ‘PrimitiveIndexWriter’:
 /usr/local/include/osg/PrimitiveSet:134: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec2d*)
 /usr/local/include/osg/PrimitiveSet:135: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec3d*)
 /usr/local/include/osg/PrimitiveSet:136: note: virtual void
 osg::PrimitiveIndexFunctor::setVertexArray(unsigned int, const osg::Vec4d*)
 make: *** [TriangleNodeVisitor.o] Error 1



 **


 I checked the code but i have not found any function with pure virtual
 as the message above said.

 Any hint to get around that issue?


 Regards
 Sajjad

 On Sat, Apr 11, 2009 at 7:54 PM, Adrian Egli OpenSceneGraph (3D) 
 3dh...@gmail.com wrote:

 :-) Once you have some questions,  i could answer them, the code is
 fast but not very fast :-) have also a look at ompf.org
 and search for arauna / bikker

 /adrian

 2009/4/11 Charles Cossé cco...@gmail.com

 Hi Sajjad,

 Attached I have tgz'd-up a file posted earlier (by Adrian Egli?) with
 his first cut at raytracing using a kd tree.   I saved all the links
 to the various posts/threads on this subject, also, which can share
 with you if interested.

 Charles

 On Fri, Apr 10, 2009 at 10:16 PM, ami guru dosto.wa...@gmail.com
 wrote:
  Hello Forum,
 
 
  I was wondering if there is anyone have done ray tracing using OSG.
 
 
  So far i have got from the forum Jean-Sébastien Guay did his Masters
 thesis
  on that domain and it would be really nice
  if he provide the link to the report, at least it would be a
 starting point
  for me.
 
  What do you think Jean?
 
 
  Regards
  Sajjad
 
 
 
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 



 --
 AsymptopiaSoftware|softw...@thelimit
  http://www.asymptopia.org

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




 --
 
 Adrian Egli

 ___
 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




 --
 
 Adrian Egli




 --
 
 Adrian Egli




 --
 
 Adrian Egli

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



[osg-users] ray tracing using OSG

2009-04-10 Thread ami guru
Hello Forum,


I was wondering if there is anyone have done ray tracing using OSG.


So far i have got from the forum Jean-Sébastien Guay did his Masters thesis
on that domain and it would be really nice
if he provide the link to the report, at least it would be a starting point
for me.

What do you think Jean?


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