This is a missing feature. The FLT exporter doesn't support the use of
deprecated VertexIndices. It looks at your DrawArrays PrimitiveSet and
assumes there are 96 vertices, but there are only 25, so it flags this as an
error.

You are welcome to add support for VertexIndices if you want, but spending
time adding code to support something that you know will send you down the
OpenGL slow path seems rather pointless. You'd be much better off changing
your data to use DrawElements.
   -Paul



> 
> Hi,
> 
> I am just texting the flt-exporter (I use the 2.7.6 dev release) .
> 
> I get the error "index out of range in VertexPaletteManager".
> 
> The offeinding geometry looks like this:
> 
> PrimitiveSets 1
> {
> DrawArrays TRIANGLES 0 96
> }
> VertexArray Vec3Array 25
> {
> 7.98458 -6.72549 6.93082
> 7.58184 -4.69527 6.15659
> 7.15036 -2.72746 6.05742
> 6.69016 -0.82204 6.6333
> 6.20124 1.02097 7.88424
> 6.09329 -7.0345 5.46161
> 5.69054 -5.00428 4.68738
> 5.25906 -3.03647 4.58821
> 4.79886 -1.13105 5.16409
> 4.30994 0.711962 6.41503
> 4.17326 -7.40592 4.66746
> 3.77051 -5.3757 3.89323
> 3.33904 -3.40788 3.79405
> 2.87884 -1.50246 4.36994
> 2.38991 0.340549 5.62088
> 2.22451 -7.83973 4.54836
> 1.82176 -5.80951 3.77413
> 1.39029 -3.8417 3.67495
> 0.930085 -1.93628 4.25084
> 0.441159 -0.0932668 5.50178
> 0.24703 -8.33595 5.10432
> -0.155718 -6.30573 4.33009
> -0.587192 -4.33791 4.23091
> -1.04739 -2.4325 4.8068
> -1.53632 -0.589485 6.05774
> }
> VertexIndices UniqueID UIntArray_79 UIntArray 96 { 0 1 5 1 6 5 1 2 6 2
> 7 6 2 3 7 3 8 7 3 4
> 8 4 9 8 5 6 10 6 11 10
> 6 7 11 7 12 11 7 8 12 8
> 13 12 8 9 13 9 14 13 10 11
> 15 11 16 15 11 12 16 12 17 16
> 12 13 17 13 18 17 13 14 18 14
> 19 18 15 16 20 16 21 20 16 17
> 21 17 22 21 17 18 22 18 23 22
> 18 19 23 19 24 23
> }
> NormalBinding PER_VERTEX
> NormalArray Vec3Array 25
> {
> -0.621723 0.16837 0.764926
> -0.617263 0.0428211 0.78559
> -0.573597 -0.228854 0.786519
> -0.48832 -0.479114 0.729379
> -0.43768 -0.581552 0.685736
> -0.526656 0.209686 0.823811
> -0.519268 0.0775762 0.851084
> -0.470332 -0.213661 0.856234
> -0.38248 -0.481245 0.788741
> -0.332594 -0.588444 0.736963
> -0.27711 0.293885 0.91479
> -0.257358 0.154677 0.953856
> -0.194229 -0.163755 0.967191
> -0.112747 -0.458229 0.881654
> -0.0733012 -0.57333 0.816039
> 0.0186537 0.359488 0.932963
> 0.0551857 0.224076 0.973008
> 0.131445 -0.0912323 0.987117
> 0.192585 -0.390064 0.900423
> 0.213402 -0.509276 0.833725
> 0.160957 0.379391 0.911129
> 0.203619 0.249317 0.946774
> 0.28254 -0.0528394 0.957799
> 0.333083 -0.343593 0.878066
> 0.345608 -0.462501 0.816485
> }
> 
> 
> I don“t see that there are indices out of range. There are 
> more indices than vertices, as there are shared vertices. Is 
> this a missing feature / bug?
> 
> I attach the complete osg-file for testing reasons.
> 
> Also I would like to know if exporing shape-drawables is planned.
> 
> Regards,
> 
> Andreas
> 
> 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to