From: Mark Gill (Mark.Gill++at++usm.edu)
Date: 02/07/2001 14:07:33
pfhi,
now that I've gotten my geoset to read in 1.44 million vertices I'v decided
to try a couple of different techniques to display my data. It seems that
pfdGeoBuilder or pfdBuilder would be better (easier?) to get the normals and
textures set up for my geometry. At least that's the way it seems.
I tried using pfdGeoBuilder. Very easy to create a set of triangles for my
data, but the problem is that for each set of two triangles (forming a quad
of sorts), the first always comes out the color I want and the other always
comes out black, or at least very dark. I know that the second triangle is
*actually* being drawn because it occludes the background color, and any
triangles behind it.
The effect also continues with pfdBuilder. for each quad, formed by two
triangles, one is always whatever color I define (either PFGS_PER_VERTEX or
PER_PRIM) and the other is always dark.
what up with that?
The next question is how do I work with textures and a geoset created with
either builder routine? they both return a GeoSet and I can't seem to get a
gstate (material textures, etc) to work with it?
yeah! And by the way -- what's up with this error:
I put this in my code:
pftri -> tbind = PFGS_OFF;
comes right out of the man page for both pfdGeoBuilder and pfdBuilder and I
get this error:
'Expression must be a modifiable lvalue.'
I'm just trying to DISABLE texture binding! (right?) aaargh
thanks for any help in these matters..
Mark Gill Visualization Researcher
CHL Stennis Space Center
Mark.Gill++at++usm.edu
----------------------------------------------
This archive was generated by hypermail 2b29 : Wed Feb 07 2001 - 14:07:17 PST