Thanks so far. I’ve tried createSingleIndex() but this causes an exception
for each model loaded at render time.
The model appended contains a simple torus created with blender and exported
to VRML. This model causes the exception in calcVertexTangents().

Ciao
  Marcus


#VRML V2.0 utf8

# This file was authored with Blender (http://www.blender.org/)
# Blender version 248
# Blender file highrise05.blend
# Exported using VRML97 exporter v1.55 (2006/01/17)

DEF OB_Cube Transform {
        translation 0.000000 0.000000 0.000000
        rotation -1.000000 -0.000000 0.000000 1.570796
        scale 6.732000 6.732000 6.732000
        children [
                DEF ME_Cube Group {
                        children [
                                Shape {
                                        appearance Appearance {
                                                material DEF MA_Material
Material {
                                                        diffuseColor 1.0 1.0
1.0
                                                        ambientIntensity
0.1666667
                                                        specularColor
0.4012008 0.4012008 0.4012008
                                                        emissiveColor  0.0
0.0 0.0
                                                        shininess 0.0976563
                                                        transparency 0.0
                                                }
                                                texture DEF Fassade1_jpg
ImageTexture {
                                                        url
"textures\windowsB.jpg"
                                                }
            texture DEF Fassade1_nmap_jpg ImageTexture {
                                                        url
"textures\windowsB_n.jpg"
                                                }
                                        }
                                        geometry IndexedFaceSet {
                                                solid TRUE
                                                coord DEF coord_Cube
Coordinate {
                                                        point [
-1.5 -1.49999976158 0.0
 -1.49999952316 1.50000047684 0.0
 1.5 -1.5 0.0
 1.5 1.5 0.0
 1.5 1.5 4.0
 1.5 -1.5 4.0
 -1.5 -1.49999976158 4.0
 -1.49999952316 1.50000047684 4.0
 0.501469731331 -1.5 4.0
 0.50146985054 1.50000023842 4.0
 0.50146985054 1.50000023842 5.0
 0.501469731331 -1.5 5.0
 -1.49999952316 1.50000047684 5.0
 -1.5 -1.49999976158 5.0
 1.48502206802 1.48500013351 4.0
 1.48502206802 -1.48500013351 4.0
 0.516447663307 -1.48500013351 4.0
 0.516447782516 1.48500037193 4.0
 0.516447782516 1.48500037193 3.89999985695
 0.516447663307 -1.48500013351 3.89999985695
 1.48502206802 -1.48500013351 3.89999985695
 1.48502206802 1.48500013351 3.89999985695
 -1.48499274254 -1.4849998951 5.0
 -1.4849922657 1.48500061035 5.0
 0.487462460995 -1.48500013351 5.0
 0.487462580204 1.48500037193 5.0
 0.487462580204 1.48500037193 4.90000009537
 0.487462460995 -1.48500013351 4.90000009537
 -1.4849922657 1.48500061035 4.90000009537
 -1.48499274254 -1.4849998951 4.90000009537
 -0.461645901203 -0.888189136982 4.89974975586
 -0.461645781994 0.726181983948 4.89974975586
 0.0750568509102 -0.888189256191 4.89974975586
 0.0750569105148 0.726181864738 4.89974975586
 -0.461645871401 -0.416732102633 4.89974975586
 -0.461645841599 -0.0452750623226 4.89974975586
 0.0750568509102 -0.416732221842 4.89974975586
 0.0750569105148 -0.0452751815319 4.89974975586
 0.0750569105148 -0.0452751815319 5.39974975586
 -0.461645841599 -0.0452750623226 5.39974975586
 0.0750569105148 0.726181864738 5.39974975586
 -0.461645781994 0.726181983948 5.39974975586
 0.0750568509102 -0.416732221842 5.29974985123
 -0.461645871401 -0.416732102633 5.29974985123
 0.0750568509102 -0.888189256191 5.29974985123
 -0.461645901203 -0.888189136982 5.29974985123
 -0.144030869007 0.231607377529 5.39974975586
 -0.0476016402245 0.231607317924 5.39974975586
 -0.144030869007 0.0929998755455 5.39974975586
 -0.0476016402245 0.0929998755455 5.39974975586
 -0.0476016402245 0.0929998755455 5.59974956512
 -0.144030869007 0.0929998755455 5.59974956512
 -0.0476016402245 0.231607317924 5.59974956512
 -0.144030869007 0.231607377529 5.59974956512
 -0.193294525146 -0.888189196587 4.89974975586
 -0.193294525146 -0.888189196587 5.29974985123
 -0.0191188454628 -0.888189196587 4.89974975586
 -0.0191188454628 -0.888189196587 5.29974985123
 -0.193294525146 -0.888189196587 5.1997423172
 -0.0191188454628 -0.888189196587 5.1997423172
                                                        ]
                                                }
                                                
                                                coordIndex [
3 4 5 2 -1, 
0 6 7 1 -1, 
6 0 2 5 -1, 
9 10 11 8 -1, 
7 12 10 9 -1, 
8 11 13 6 -1, 
6 13 12 7 -1, 
1 7 4 3 -1, 
                                                ]
                                                texCoord TextureCoordinate {
                                                        point [
2.9791834 -2.9746552, 2.9791842 2.7041175, 0.4791846 2.7041197, 0.4791837
-2.974653, 
-2.0208151 -2.9746509, -2.0208125 2.7041218, -4.5208139 2.7041225,
-4.5208139 -2.974648, 
-2.0208125 2.7041218, -2.0208151 -2.9746509, 0.4791837 -2.974653, 0.4791846
2.7041197, 
2.147239 2.7041981, 2.147227 4.1864586, -0.3528802 4.1863842, -0.3528689
2.7041376, 
3.8152077 2.7042468, 3.8151934 4.1865082, 2.147227 4.1864586, 2.147239
2.7041981, 
-0.3528689 2.7041376, -0.3528802 4.1863842, -2.0208168 4.1863365, -2.0208125
2.7041218, 
-2.0208125 2.7041218, -2.0208168 4.1863365, -4.5208178 4.1863174, -4.5208139
2.7041225, 
5.4791818 -2.9746552, 5.4791822 2.7041163, 2.9791842 2.7041175, 2.9791834
-2.9746552, 
                                                        ]
                                                }
                                                texCoordIndex [
0 1 2 3 -1
4 5 6 7 -1
8 9 10 11 -1
12 13 14 15 -1
16 17 18 19 -1
20 21 22 23 -1
24 25 26 27 -1
28 29 30 31 -1
                                                ]
                                        }
                                }
                                Shape {
                                        appearance Appearance {
                                                material DEF MA_Material_003
Material {
                                                        diffuseColor
0.5967991 0.5707126 0.5707126
                                                        ambientIntensity
0.1666667
                                                        specularColor
0.4012008 0.4012008 0.4012008
                                                        emissiveColor  0.0
0.0 0.0
                                                        shininess 0.0976563
                                                        transparency 0.0
                                                }
                                                texture DEF concreteC_jpg
ImageTexture {
                                                        url
"textures\concreteC.jpg"
                                                }
            texture DEF concreteC_nmap_jpg ImageTexture {
                                                        url
"textures\concreteC_n.jpg"
                                                }
                                        }
                                        geometry IndexedFaceSet {
                                                solid TRUE
                                                coord USE coord_Cube
                                                coordIndex [
2 0 1 3 -1, 
5 4 14 15 -1, 
8 5 15 16 -1, 
4 9 17 14 -1, 
9 8 16 17 -1, 
17 16 19 18 -1, 
14 17 18 21 -1, 
16 15 20 19 -1, 
15 14 21 20 -1, 
18 19 20 21 -1, 
13 22 23 12 -1, 
11 24 22 13 -1, 
12 23 25 10 -1, 
10 25 24 11 -1, 
25 26 27 24 -1, 
23 28 26 25 -1, 
24 27 29 22 -1, 
22 29 28 23 -1, 
26 28 31 33 -1, 
36 37 35 34 -1, 
28 29 30 31 -1, 
26 33 32 27 -1, 
27 32 30 29 -1, 
                                                ]
                                                texCoord TextureCoordinate {
                                                        point [
0.0016665 0.5058315, 0.0 0.001547, 0.5432011 0.0, 0.5448676 0.5042844, 
0.9941391 0.0, 0.9958056 0.5042844, 0.9930853 0.5017708, 0.9914354
0.0025291, 
0.4554037 0.6736793, 0.4559584 0.5058315, 0.4586661 0.508357, 0.458128
0.6711693, 
0.0219072 0.5058315, 0.0213526 0.6736793, 0.0186449 0.6711538, 0.0191829
0.5083416, 
0.9914354 0.0, 0.9897689 0.5042846, 0.9870653 0.5017554, 0.9887151
0.0025137, 
0.9826899 5.16e-005, 0.9810401 0.4992932, 0.9629334 0.4992418, 0.9645833
0.0, 
0.4767728 0.5058315, 0.4773108 0.6686438, 0.4592041 0.6686955, 0.4586661
0.5058831, 
0.0181067 0.5058315, 0.0186449 0.6686439, 0.000538 0.6686954, 0.0 0.5058831,

0.9234204 5.16e-005, 0.9217706 0.4992933, 0.9036639 0.4992417, 0.9053137
0.0, 
0.7218943 0.5007583, 0.7202445 1.0, 0.5448676 0.9995005, 0.5465174
0.5002589, 
0.9853988 0.5042845, 0.9826899 0.5017554, 0.9843397 0.0025137, 0.9870653
0.0, 
0.7602993 0.5002589, 0.763023 0.5026057, 0.7641188 0.8341653, 0.7614111
0.8366957, 
0.7668265 0.8366956, 0.7641188 0.8341652, 0.7652144 0.5026057, 0.7679383
0.5002589, 
0.9974721 0.0, 1.0 0.0025286, 0.9983503 0.5017704, 0.9958056 0.5042846, 
0.9415272 0.4992933, 0.9234205 0.4992418, 0.9250704 0.0, 0.9431769
5.16e-005, 
0.7602993 0.8318184, 0.7421926 0.83187, 0.7410967 0.5003104, 0.7592036
0.5002589, 
0.740001 0.83187, 0.7218943 0.8318185, 0.7229901 0.5002589, 0.7410967
0.5003105, 
0.9629334 0.4992417, 0.9448269 0.4992933, 0.9431769 5.15e-005, 0.9612836
0.0, 
0.5465174 0.0, 0.9036639 0.0010172, 0.7179481 0.1280429, 0.6207689
0.1277661, 
0.7144963 0.2304465, 0.7143047 0.2977052, 0.6240878 0.297407, 0.6242794
0.2301484, 
0.9036639 0.0010172, 0.9020142 0.5002589, 0.7170513 0.3994104, 0.7179481
0.1280429, 
0.5465174 0.0, 0.6207689 0.1277661, 0.6198721 0.3991336, 0.5448676
0.4992417, 
0.5448676 0.4992417, 0.6198721 0.3991336, 0.7170513 0.3994104, 0.9020142
0.5002589, 
                                                        ]
                                                }
                                                texCoordIndex [
0 1 2 3 -1
4 5 6 7 -1
8 9 10 11 -1
12 13 14 15 -1
16 17 18 19 -1
20 21 22 23 -1
24 25 26 27 -1
28 29 30 31 -1
32 33 34 35 -1
36 37 38 39 -1
40 41 42 43 -1
44 45 46 47 -1
48 49 50 51 -1
52 53 54 55 -1
56 57 58 59 -1
60 61 62 63 -1
64 65 66 67 -1
68 69 70 71 -1
72 73 74 75 -1
76 77 78 79 -1
80 81 82 83 -1
84 85 86 87 -1
88 89 90 91 -1
                                                ]
                                        }
                                }
                                Shape {
                                        appearance Appearance {
                                                material DEF MA_Material_009
Material {
                                                        diffuseColor
0.5967991 0.5707126 0.5707126
                                                        ambientIntensity
0.1666667
                                                        specularColor
0.4012008 0.4012008 0.4012008
                                                        emissiveColor  0.0
0.0 0.0
                                                        shininess 0.0976563
                                                        transparency 0.0
                                                }
                                                texture DEF concreteD_jpg
ImageTexture {
                                                        url
"textures\concreteD.jpg"
                                                }

            texture DEF concreteD_nmap_jpg ImageTexture {
                                                        url
"textures\concreteD_n.jpg"
                                                }
                                        }
                                        geometry IndexedFaceSet {
                                                solid TRUE
                                                coord USE coord_Cube
                                                coordIndex [
35 37 38 39 -1, 
37 33 40 38 -1, 
31 35 39 41 -1, 
33 31 41 40 -1, 
36 34 43 42 -1, 
32 36 42 44 -1, 
34 30 45 43 -1, 
40 41 46 47 -1, 
41 39 48 46 -1, 
38 40 47 49 -1, 
39 38 49 48 -1, 
48 49 50 51 -1, 
49 47 52 50 -1, 
46 48 51 53 -1, 
47 46 53 52 -1, 
50 52 53 51 -1, 
59 57 55 58 -1, 
42 43 45 44 -1, 
30 54 55 45 -1, 
32 44 57 56 -1, 
                                                ]
                                                texCoord TextureCoordinate {
                                                        point [
0.2917014 0.3148879, 0.5819568 0.3158497, 0.5811272 0.6079159, 0.2908717
0.6069541, 
0.5819568 0.3162706, 0.9991704 0.3148879, 1.0 0.6069537, 0.5827863 0.608337,

0.5819569 0.6097196, 0.9991704 0.6083369, 1.0 0.9004031, 0.5827864
0.9017861, 
0.2908111 0.0009615, 0.5810665 0.0, 0.581896 0.2920662, 0.2916406 0.2930277,

0.0 0.7358307, 0.2902554 0.7348688, 0.2909191 0.9685221, 0.0006637
0.9694837, 
0.0352383 0.4988382, 0.2902082 0.4979932, 0.2908717 0.7316461, 0.035902
0.7324913, 
0.0351777 0.2424805, 0.2901476 0.2416354, 0.2908111 0.4752885, 0.0358414
0.4761329, 
1.0 0.0013825, 0.9991096 0.3148879, 0.7321644 0.1284724, 0.7323244 0.072145,

0.9991096 0.3148879, 0.581896 0.3135054, 0.6572038 0.128224, 0.7321644
0.1284724, 
0.5827864 0.0, 1.0 0.0013825, 0.7323244 0.072145, 0.6573638 0.0718966, 
0.581896 0.3135054, 0.5827864 0.0, 0.6573638 0.0718966, 0.6572038 0.128224, 
0.3362975 0.9981118, 0.3364568 0.9417844, 0.4446194 0.9421428, 0.4444593
0.9984703, 
0.8916074 0.9827511, 0.8918374 0.9017861, 1.0 0.9021444, 0.9997697
0.9831096, 
0.6901196 0.9017861, 0.6903496 0.9827511, 0.5821872 0.9831097, 0.581957
0.9021444, 
0.5714737 0.9424519, 0.571633 0.9987792, 0.4634712 0.9991377, 0.463311
0.9428103, 
0.784955 0.9017861, 0.8599156 0.9020345, 0.8597556 0.958362, 0.784795
0.9581136, 
0.118292 0.0769041, 0.1180429 0.1645287, 0.0238466 0.1642168, 0.0240956
0.076592, 
0.5811746 0.8842709, 0.2909191 0.8833092, 0.2917013 0.6079159, 0.5819569
0.6088776, 
0.1264886 0.0121001, 0.2832412 0.0125449, 0.2825245 0.2288704, 0.1257719
0.2284253, 
0.5819569 0.9392819, 0.3656316 0.9399987, 0.3654755 0.8849877, 0.5818006
0.8842709, 
                                                        ]
                                                }
                                                texCoordIndex [
0 1 2 3 -1
4 5 6 7 -1
8 9 10 11 -1
12 13 14 15 -1
16 17 18 19 -1
20 21 22 23 -1
24 25 26 27 -1
28 29 30 31 -1
32 33 34 35 -1
36 37 38 39 -1
40 41 42 43 -1
44 45 46 47 -1
48 49 50 51 -1
52 53 54 55 -1
56 57 58 59 -1
60 61 62 63 -1
64 65 66 67 -1
68 69 70 71 -1
72 73 74 75 -1
76 77 78 79 -1
                                                ]
                                        }
                                }
                                Shape {
                                        appearance Appearance {
                                                material DEF MA_Material_010
Material {
                                                        diffuseColor
0.5967991 0.5707126 0.5707126
                                                        ambientIntensity
0.1666667
                                                        specularColor
0.4012008 0.4012008 0.4012008
                                                        emissiveColor  0.0
0.0 0.0
                                                        shininess 0.0976563
                                                        transparency 0.0
                                                }
                                                texture DEF doorA_jpg
ImageTexture {
                                                        url
"textures\doorA.jpg"
                                                }
            texture DEF doorA_nmap_jpg ImageTexture {
                                                        url
"textures\doorA_n.jpg"
                                                }
                                        }
                                        geometry IndexedFaceSet {
                                                solid TRUE
                                                coord USE coord_Cube
                                                coordIndex [
56 59 58 54 -1, 
                                                ]
                                                texCoord TextureCoordinate {
                                                        point [
0.9994585 0.0127652, 0.9976293 0.9914408, 0.0070406 0.9902105, 0.0088695
0.0115348, 
                                                        ]
                                                }
                                                texCoordIndex [
0 1 2 3 -1
                                                ]
                                        }
                                }
                        ]
                }
        ]
}



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to