Re: Onyx to Onyx2 Problem - pfSegSet

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Mon, 17 Aug 1998 11:01:13 -0700


This is exactly what I meant, try NOT culling back faces.

tmp_seg_set->mode = PFTRAV_IS_PRIM | PFTRAV_IS_NORM;

Pete Willemsen wrote:
>
> Thanks Angus.
>
> I looked into how I setup the pfSegSet and I'm telling it to cull
> backfaces. In fact, here is how it is setup.
>
> pfSegSet *tmp_seg_set;
> tmp_seg_set = new pfSegSet();
> tmp_seg_set->segs[0].pos.set(0.0f,0.0f,0.0f);
> tmp_seg_set->segs[0].dir.set(0.0f,0.0f,-1.0f);
> tmp_seg_set->segs[0].length = 10000.0f;
> tmp_seg_set->activeMask = 1;
> tmp_seg_set->mode = PFTRAV_IS_PRIM | PFTRAV_IS_NORM | PFTRAV_IS_CULL_BACK;
> tmp_seg_set->isectMask = 0xffffffff;
> tmp_seg_set->bound = NULL;
> tmp_seg_set->userData = NULL;
> tmp_seg_set->discFunc = NULL;
>
> I have looked through when our database gets loaded and I didn't notice any
> strange traversal masks being setup that might restrict intersection testing.
>
> One intersesting experiment I tried was to copy the native version of
> perfly from the Indigo2 Impact onto the Onyx2. When running on the Onyx2
> using the database that's giving us trouble, the copied perfly's drive mode
> places us at 0.0 always. However, when I run perfly native to the Onyx2,
> drive mode works fine on this database. (To be complete: when running the
> Indigo2 Impact's perfly on this database on the Indigo2, drive mode works
> fine as well)

I don't know what you changed but I reckon your intersection code is
different, the default perfly motion is handled by the pfixformer.

>
> Any more ideas?
>

Cheers,Angus.

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 17 1998 - 11:01:18 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.