Dirk Reiners wrote:
Hi Allan,
On Thu, 2005-08-25 at 14:36 +0200, Allan Rasmusson wrote:
Hi.
I've attached a simpleMaterial containing a FragmentProgramChunk to
an OSGDVRVolume node. The fragment program renders perfectly although
way too much.
Hm, how did you do that? Can you create a simple example that
demonstrates it?
If I enable a StatisticsForeground, it will also be
rendered with the fragment program. This is not desirable, so I have two
questions:
1: Is it a bug?
Sounds like it. I'm just uncertain how you got your Material into the
Volume, so it's quite clear where it is.
2: How can I temporarily disable the fragment program, or is it possible
without removing the FragmentProgramChunk from the material?
It should be, once I understand the problem.
Yours
Dirk
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
Here's what I do (I removed error handling):
FragmentProgramChunkPtr _flowFP = FragmentProgramChunk::create();1
beginEditCP(_flowFP);
_flowFP->read("MyFP.fp")
_flowFP->addParameter("normal", 0, Vec4f(0,0,1,0));
_flowFP->addParameter("binormal", 1, Vec4f(0,1,0,0));
_flowFP->addParameter("tangent", 2, Vec4f(1,0,0,0));
endEditCP(_flowFP);
_simpleMaterial = SimpleMaterial::create();
beginEditCP(_simpleMaterial);
_simpleMaterial->setLit(false);
_simpleMaterial->setAmbient(Color3f(1.0,1.0,1.0));
_simpleMaterial->setDiffuse(Color3f(1.0,1.0,1.0));
_simpleMaterial->addChunk(_flowFP);
endEditCP(_simpleMaterial);
_myDVRVolumePtr->setRenderMaterial(_simpleMaterial);
1: As you know I have multiple graphs containing OSGDVRVolumes which are
rendered in different viewports. Assume that I have three graphs, a,b
and c rendered in seperate viewports. All graphs contains an
OSGDVRVolume node, the viewport which renders graph b has a statistics
foreground and graph c has a fragment program attached as described
above. The odd thing is that all volumes renders correctly, but the
statistics foreground is rendered with the fragment program. This always
happens no matter what order the graphs are rendered in.
2: I was just wondering if I could disable the fragment program for a
few frames of rendering. I've been looking for something like
enable()/disable() like the OSGClipPlaneChunk has.
Uhm.... why has some chunks got the enable/disable operations while
others don't?
/Allan
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users