Hello Alex,
alex wrote:
>> ok, I'm a little confused. If I load the image0.off file I get 92 faces
>> with 276 pos indices, which is 3 indices per triangle so it makes sense.
>>
>> After striping I get 121 pos indices.
>>
>> But I don't get the 290 you report. If I dump the pos index after
>> loading it looks ok. The only difference is the vertex order inside
>> the triangle, as it is reversed. E.g. if the file contains 1 2 3 the
>> loader will generate 3 2 1.
>
> You are right :) It is not 290 it is 276 pos indices and After striping 121
> pos indices.
yes, they are numbered from 0 to 120, 121 is one past the end of the
array (actually a std::vector<>).
> But actually when i am accessing indices because triangle made from 3
> indices so for 121 pos i will get access voliation
> BTW. what actually stripping is doing interanally ? Are you talking about
> createSharedIndex function ?
createOptimizedPrimitives() - it generates triangle strips and fans
which render faster, because a triangle in a strip/fan reuses two
vertices from the previous triangle so they don't have to be transformed
twice by the hardware.
Cheers,
Carsten
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users