Hi Dorian,

I can't hand hold you through this stuff, its all related to OpenGL
vertex and primitive sets, so perhaps reading up on OpenGL will help
your through.

Also please look at the examples such osggeometry, they are written
for a reason.

Robert.

On 7/19/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
Thanks but when I merge all my geometries I don't manage to separate the
TexCoordArray !!

In my file I obtain this:

 TexCoordArray 0 UniqueID Vec2Array_0 Vec2Array 366
      {
        0.439048 0.514437
        0.559072 0.51482
        0.559213 0.602816
        0.439048 0.514437
        0.559213 0.602816
        0.439189 0.602433
        0.556773 0.598859
        0.443606 0.600752
        0.443628 0.525376
        0.556773 0.598859
        0.443628 0.525376
        0.556795 0.523483
        0.343108 0.624388
        0.656341 0.624388
        0.655398 0.854703
        0.343108 0.624388
        0.655398 0.854703
        0.342164 0.854703
        0.331747 0.678254
        0.670258 0.685852
        0.674125 0.685939
        0.331747 0.678254
        0.674125 0.685939
        0.325944 0.678124
        0.32613 0.59651
        0.331933 0.59664
        0.331747 0.678254
        0.32613 0.59651
        0.331747 0.678254
        0.325944 0.678124
        0.67431 0.604326
        0.674125 0.685939
        0.670258 0.685852
        0.67431 0.604326
        0.670258 0.685852
        0.670444 0.604239
        0.331747 0.678254
        0.331933 0.59664
        0.670444 0.604239
        0.331747 0.678254
        0.670444 0.604239
        0.670258 0.685852
        0.675879 0.404069
        0.675879 0.404069
        0.319309 0.404069
        0.675879 0.404069
        0.319309 0.404069
        0.319309 0.404069
        0.318628 0.151809
        0.318773 0.205865
        0.319309 0.404069
        0.318628 0.151809
        0.319309 0.404069
        0.319309 0.404069
        0.675196 0.151809
        0.675879 0.404069
        0.675879 0.404069
        0.675196 0.151809
        0.675879 0.404069
        0.675342 0.205865
        0.318773 0.205865
        0.675342 0.205865
        0.675879 0.404069
        0.318773 0.205865
        0.675879 0.404069
        0.319309 0.404069
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0.345888 0.33041
        0.661178 0.340315
        0.661178 0.215115
        0.345888 0.33041
        0.661178 0.215115
        0.345892 0.205212
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0.345888 0.20521
        0.661178 0.215115
        0.661178 0.340315
        0.345888 0.20521
        0.661178 0.340315
        0.345893 0.330427
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0.655398 0.854703
        0.645907 0.895621
        0.353183 0.895621
        0.655398 0.854703
        0.353183 0.895621
        0.342164 0.854703
        0.343848 0.443761
        0.657081 0.443761
        0.656341 0.624388
        0.343848 0.443761
        0.656341 0.624388
        0.343108 0.624388
        0.332453 0.991759
        0.332453 0.0266607
        0.663232 0.0346386
        0.332453 0.991759
        0.663232 0.0346386
        0.663232 0.999737
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0 0
        0 1
        1 0
        0.992126 1
        0.496063 1
        0.496063 0
        0.992126 1
        0.496063 0
        0.992126 0
        0.984495 0.5
        0.915809 0
        0.564749 0
        0.984495 0.5
        0.564749 0
        0.496063 0.5
        0.496063 0.5
        0.671593 0
        0.671593 0
        0.496063 0.5
        0.671593 0
        0.496063 0.5
        0.808964 0
        0.808964 0
        0.984495 0.5
        0.808964 0
        0.984495 0.5
        0.992126 0.5
        0.992126 1
        0.496063 1
        0.496063 0
        0.992126 1
        0.496063 0
        0.992126 0
        0.984495 0.5
        0.915809 0
        0.564749 0
        0.984495 0.5
        0.564749 0
        0.496063 0.5
        0.496063 0.5
        0.671593 0
        0.671593 0
        0.496063 0.5
        0.671593 0
        0.496063 0.5
        0.808964 0
        0.808964 0
        0.984495 0.5
        0.808964 0
        0.984495 0.5
        0.992126 0.5
        0.992126 0
        0.496063 0
        0.496063 1
        0.992126 0
        0.496063 1
        0.992126 1
        0.496063 0.5
        0.564749 0
        0.915809 0
        0.496063 0.5
        0.915809 0
        0.984495 0.5
        0.496063 0.5
        0.671593 0
        0.671593 0
        0.496063 0.5
        0.671593 0
        0.496063 0.5
        0.984495 0.5
        0.808964 0
        0.808964 0
        0.984495 0.5
        0.808964 0
        0.992126 0.5
        0.992126 0
        0.496063 0
        0.496063 1
        0.992126 0
        0.496063 1
        0.992126 1
        0.496063 0.5
        0.564749 0
        0.915809 0
        0.496063 0.5
        0.915809 0
        0.984495 0.5
        0.496063 0.5
        0.671593 0
        0.671593 0
        0.496063 0.5
        0.671593 0
        0.496063 0.5
        0.984495 0.5
        0.808964 0
        0.808964 0
        0.984495 0.5
        0.808964 0
        0.992126 0.5
      }
      TexCoordArray 1 Use Vec2Array_0
      TexCoordArray 2 Use Vec2Array_0
      TexCoordArray 3 Use Vec2Array_0
      TexCoordArray 4 Use Vec2Array_0
      TexCoordArray 5 Use Vec2Array_0
      TexCoordArray 6 Use Vec2Array_0

I'm using setTexCoordArray(numTex, texcoords) ;
For each vertex , numTex takes different valors 0, 1,2,3,4,5,6.
I don't understand why TexCoordArray 1 (for example) is empty !

DUSSEL Dorian
Stagiaire Alcatel Alenia Space
Master Pro Télédétection/ Imagerie numérique
Université Paul Sabatier TOULOUSE







This message and any attachments (the "message") is intended solely for the
addressees and is confidential. If you receive this message in error,
please delete it and immediately notify the sender. Any use not in accord
with its purpose, any dissemination or disclosure, either whole or partial,
is prohibited except formal approval. The internet can not guarantee the
integrity of this message. ALCATEL ALENIA SPACE (and its subsidiaries)
shall (will) not therefore be liable for the message if modified.

Ce message et toutes les pieces jointes (ci-apres le "message") sont
etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce message non conforme a
sa destination, toute diffusion ou toute publication, totale ou partielle,
est interdite, sauf autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, ALCATEL ALENIA SPACE (et ses filiales)
decline(nt) toute responsabilite au titre de ce message, dans l'hypothese
ou il aurait ete modifie.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to