Re: [info-performer] Adding and removing cliptextures to pipes on Onyx3

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 10/17/2003 16:00:48


Hi Christopher,

pipe->getMPClipTexture(i) will not work in a DRAW process.
This is because the pfPipe class stores a list of pfUpdatable IDs
(corresponding to the pfMPClipTextures), and these IDs cannot
be resolved in DRAW processes.
pfUpdatables are multi-buffered objects and have a copy of the
object for APP, one for each CULL and one for ISECT, but no
copy is stored for DRAWs.

pipe->getMPClipTexture(i) will work in a CULL process.

As regarding your efforts to dynamically add and remove
pfMPClipTextures to pfPipes, I would be greatful if you could
send us a small program that exhibits the problem, so that we
can have a look at what's going on..

Thank you,
Regards,
Paolo

Dorosky, Christopher G wrote:

>I can add pfMPCliptextures to pipes easily enough, one per pipe.
>If I then try to get them back, in the APP, then I get the MPcliptex back.
>Trying to get them back in the draw, even though pipe->getNumPfMPClipTextures() return's non-zero, always returns null pointers. Weird. The cliptexture draws fine, but the getMPCliptexture() does not work.
>
>Anyway, I can remove the mpcliptexture from a pipe exactly once. I can them add the same mpcliptexture back. It draws fine.
>If I try to do it again, then it generates an illegal instruction, or simply hangs the machine.
>
>I checked all the pointers, and they are all the same as they are in the first call that works.
>
>What is going on?
>
>What are the rules for when you are allowed to attach the mpcliptextures to pipes, and when you are allowed to remove them?
>
>
>
>Christopher Dorosky
>Staff Research Engineer - Real Time Simulation, TOPSCENE
>Lockheed Martin Missiles and Fire Control - Dallas
>christopher.g.dorosky++at++lmco.com
>972-603-2349
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Oct 17 2003 - 16:01:06 PDT