Hello Theodore,
Hall, Theodore wrote:
> I think I've hit a bug related to the following, in OpenSG 1.8. I'm wondering
> whether there has been a patch for this in 1.8 or in 2.0. Any news?
no, not as far as i know.
[SNIP - mail archive excerpt]
> In my case, I'm not using the SceneViewer stats but looking directly at
> geo_ptr->getTypes() and geo_ptr->getLengths().
>
> The number of /non-degenerate/ triangles is correct, but the geo lengths look
> suspicious -- note how they increase by 4 from one primitive to the next:
>
> # type length indices
> - ---- ------ -------
> 0 5 33 71, 0, 80, 0, 70, 0, 80, 0, 79, 0, ...
> 1 5 37
> 2 5 41
> 3 5 45
> 4 5 49
> 5 5 53
> 6 5 57
> 7 5 61
>
> Using those lengths for triangle strips (type 5), the number of triangles
> should be 31+35+39+43+47+51+55+59 = 360, but the first triangle strip has
> a degenerate triangle:
>
> 71, 80, 70
> 70, 80, 80 <<<
>
> and others do as well.
do they all have one? where does it appear, e.g. is it always at the end?
> (The index mapping has 2 elements -- the 0's are a normal index.)
>
> The TriangleIterator reports 352 triangles (not 360), which is correct.
yes, the iterator ignores/skips degenerate triangles.
> Have been any new developments regarding the degenerate triangles? Has this
> been patched in 1.8 or in 2.0?
hm, you have not really mentioned what problem the degenerate triangles
are causing for you, can you give us an idea what you are trying to do?
In the case of the stitched strips degenerate tris can not be avoided,
in the other case they are not nice, but the hardware should just
discard them and since their number is low compared to real triangles.
@Johannes: do you have a description of the striper (other than the code
;) ), e.g. a paper about it? do you recall if it always puts a
degenerate tri in a strip to support stitching and where in the strip it
is placed (I'm wondering if the problem can be fixed simply by
decreasing the length of the strip by one?). Thanks!
Cheers,
Carsten
------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users