vrml ofusion porting

taribo

10-11-2006 14:21:10

hello to all, i'm a newbie in ofusion, i've a problem with a scene, i can import the vrml files in 3d studio max and render with it, but i can't view the scene in the ofusion view...
this is a portion of the vrml code of the scene:

DEF EESignP23 Shape {
#appearance Appearance{texture ImageTexture {url "pillar.jpg"},material Material{transparency IS transparencyVal}}
appearance Appearance{texture ImageTexture {url "..\..\Images\EERight.jpg"}}
geometry IndexedFaceSet
{
coord Coordinate
{
point
[
12.43 2.45 43.56
12.43 2.45 43.625
12.8 2.45 43.625
12.8 2.45 43.56
12.43 2.2 43.56
12.43 2.2 43.625
12.8 2.2 43.625
12.8 2.2 43.56

]
}
coordIndex
[
0 1 2 3 -1,
5 4 7 6 -1,
4 5 1 0 -1,
6 7 3 2 -1,
7 4 0 3 -1,
]
texCoord DEF L03_HF12 TextureCoordinate {
point [
0.126383 1.0009,
0.126383 0.91062,
0.881485 0.91062,
0.881485 1.0009,
0.880264 0.409903,
0.880264 0.500181,
0.125162 0.500181,
0.125162 0.409903,
0.883865 0.505916,
1.00651 0.505916,
1.00651 0.902742,
0.883865 0.902742,
-0.00106794 0.508225,
0.126385 0.508225,
0.126385 0.90505,
-0.00106794 0.90505,
0.12475 0.50042,
0.884503 0.50042,
0.884503 0.910256,
0.12475 0.910256
]
}
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,
]
solid TRUE
}
}

DEF EESignP26 Shape {
#appearance Appearance{texture ImageTexture {url "pillar.jpg"},material Material{transparency IS transparencyVal}}
appearance Appearance{texture ImageTexture {url "..\..\Images\EELeft.jpg"}}
geometry IndexedFaceSet
{
coord Coordinate
{
point
[
20.84 2.45 36.835
20.84 2.45 36.9
21.21 2.45 36.9
21.21 2.45 36.835
20.84 2.2 36.835
20.84 2.2 36.9
21.21 2.2 36.9
21.21 2.2 36.835

]
}
coordIndex
[
0 1 2 3 -1,
5 4 7 6 -1,
4 5 1 0 -1,
5 6 2 1 -1,
6 7 3 2 -1,
]
texCoord DEF L12_HF03 TextureCoordinate {
point [
0.126383 1.0009,
0.126383 0.910618,
0.881485 0.910618,
0.881485 1.0009,
0.880264 0.409916,
0.880264 0.500194,
0.125162 0.500194,
0.125162 0.409916,
-0.000886492 0.510534,
0.12657 0.510534,
0.12657 0.907359,
-0.000886492 0.907359,
0.124632 0.501947,
0.884386 0.501947,
0.884386 0.911783,
0.124632 0.911783,
0.883362 0.508286,
1.00601 0.508286,
1.00601 0.905112,
0.883362 0.905112
]
}
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,
]
solid TRUE
}
}

DEF EESignP19 Shape {
#appearance Appearance{texture ImageTexture {url "pillar.jpg"},material Material{transparency IS transparencyVal}}
appearance Appearance{texture ImageTexture {url "..\..\Images\EELeft.jpg"}}
geometry IndexedFaceSet
{
coord Coordinate
{
point
[
-4.39 2.45 43.56
-4.39 2.45 43.625
-4.02 2.45 43.625
-4.02 2.45 43.56
-4.39 2.2 43.56
-4.39 2.2 43.625
-4.02 2.2 43.625
-4.02 2.2 43.56

]
}
coordIndex
[
0 1 2 3 -1,
5 4 7 6 -1,
4 5 1 0 -1,
6 7 3 2 -1,
7 4 0 3 -1,
]
texCoord USE L03_HF12
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,
]
solid TRUE
}
}

DEF EESignP22 Shape {
#appearance Appearance{texture ImageTexture {url "pillar.jpg"},material Material{transparency IS transparencyVal}}
appearance Appearance{texture ImageTexture {url "..\..\Images\EELeft.jpg"}}
geometry IndexedFaceSet
{
coord Coordinate
{
point
[
4.02 2.45 36.835
4.02 2.45 36.9
4.39 2.45 36.9
4.39 2.45 36.835
4.02 2.2 36.835
4.02 2.2 36.9
4.39 2.2 36.9
4.39 2.2 36.835

]
}
coordIndex
[
0 1 2 3 -1,
5 4 7 6 -1,
4 5 1 0 -1,
5 6 2 1 -1,
6 7 3 2 -1,
]
texCoord USE L12_HF03
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,
]
solid TRUE
}
}

DEF EESignP15 Shape {
#appearance Appearance{texture ImageTexture {url "pillar.jpg"},material Material{transparency IS transparencyVal}}
appearance Appearance{texture ImageTexture {url "..\..\Images\EELeft.jpg"}}
geometry IndexedFaceSet
{
coord Coordinate
{
point
[
-21.21 2.45 43.56
-21.21 2.45 43.625
-20.84 2.45 43.625
-20.84 2.45 43.56
-21.21 2.2 43.56
-21.21 2.2 43.625
-20.84 2.2 43.625
-20.84 2.2 43.56

]
}
coordIndex
[
0 1 2 3 -1,
5 4 7 6 -1,
4 5 1 0 -1,
6 7 3 2 -1,
7 4 0 3 -1,
]
texCoord USE L03_HF12
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,
]
solid TRUE
}
}

DEF EESignP18 Shape {
#appearance Appearance{texture ImageTexture {url "pillar.jpg"},material Material{transparency IS transparencyVal}}
appearance Appearance{texture ImageTexture {url "..\..\Images\EERight.jpg"}}
geometry IndexedFaceSet
{
coord Coordinate
{
point
[
-12.8 2.45 36.835
-12.8 2.45 36.9
-12.43 2.45 36.9
-12.43 2.45 36.835
-12.8 2.2 36.835
-12.8 2.2 36.9
-12.43 2.2 36.9
-12.43 2.2 36.835

]
}
coordIndex
[
0 1 2 3 -1,
5 4 7 6 -1,
4 5 1 0 -1,
5 6 2 1 -1,
6 7 3 2 -1,
]
texCoord USE L12_HF03
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,
]
solid TRUE
}
}

Paulov

10-11-2006 20:59:22

hi torpedo:

well, your code says nothing to me since I do everything gaphically, but I´ve been importing a number of vrml objets in max to see them wich oFusion.

The main problem I found was that the geometry redered very rarely, the solution for me was easy, may be for you is the same.

go to "select by name" select objets tipe "helpers" and delete them all.

Remember also not to use groups.

that should be enough....

If it keeps without working seleckt all the meshes and perform a Reset X-form in the utilities menu.

And a reset pivot.


should work, I think.