From: Raphael Grasset (raphael.grasset++at++imag.fr)
Date: 01/10/2002 02:06:54
Hi,
I'm working on augmented reality and I use Performer 2.4 with a
Onyx3000/3 Pipes/8 proc+ DIVO card for my AR application.
We are interested to do shadow of virtual object on real object . We
want to obtain the same result of A. State with a virtual knot cast a
shadow on real plane and sculpture :
http://www.cs.unc.edu/~us/chen/paper.html.
We actually put a video image on the back of the render, render virtual
object (+ real object) and output the result to a HMD.
For the occultation of real object ( a real object must be in front of
virtual object) we just do a z-render of the real object model with
disable color render :
static int
preDraw(pfTraverser*,void* data)
{
glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
return PFTRAV_CONT;
}
static int
postDraw(pfTraverser*,void* data)
{
glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
return PFTRAV_CONT;
}
The occultation are good and there is no problem.
But for shadow, the problem is when we use this technique with SHADOW
(pfLightSource + option SHADOW), we can't obtain shadow of virtual
object on real object.
Why ? because the real object is black and there is no shadow on black
object !!!!
We just want the shadow on real object (from virtual object or other
real object) and the shadow on virtual object (from real object) and
keep occultation.
Can someone have a real-time solution ? How implement A. State Method in
Performer ?
Help !!! Help !!!
Secondary,
Are they lot of people that using video (with DIVO) with Performer ?
Performances ? Results ?
Did you use digital camera to plug on DIVO ? or a converter
digital<->analogic to plug a camera ? results ? Preferences ?
Any comment are appreciable.
Thank in advance.
-- __________________________________________________________________________ Raphaël GRASSET | Doctorant (Phd Student) | iMAGIS-GRAVIR -------------------------------------------------------------------------- raphael.grasset++at++imag.fr http://www-imagis.imag.fr/Membres/Raphael.Grasset Tel:+33(0)4.76.61.55.17 Fax:+33(0)4.76.61.54.40 iMAGIS- Laboratoire GRAVIR INRIA Rhône-Alpes 655, avenue de l'Europe 38330 Saint-Ismier Cedex FRANCE __________________________________________________________________________
This archive was generated by hypermail 2b29 : Thu Jan 10 2002 - 02:04:38 PST