Auskunft und News für Nutzer und Freunde der Tool Bar für Second Life®, Web 2.0, Web3D... English

Donnerstag, 27. November 2008

Encoding Converter: VRML -> X3D

Einen feinen Online - WRL/X3D-Konverter bietet die Site von instantReality.

So wird aus dem VRML-Code:


#VRML V2.0 utf8

#BEGIN NEW NAMESPACE: scene, prev: NULL; ComponentTransform/137632712
Transform {
children [
Viewpoint {
position -0.32 0 5.32
fieldOfView 0.785
}
DirectionalLight {
ambientIntensity 1
intensity 0
direction 1 1 -1
}
Transform {
children [
Transform {
scale 0.3 0.3 0.3
translation 0.34 0 3.68
children [
Shape {
appearance Appearance {
material Material {
shininess 0
}
texture DEF _texture9 ImageTexture {
url "folie1.jpg"
}
}
geometry Box {
}
}
]
}
]
}
Transform {
children [
Transform {
scale 0.3 0.3 0.3
translation -2.46 0 0.6
children [
Shape {
appearance Appearance {
material Material {
shininess 0
}
texture DEF _texture14 ImageTexture {
url "folie1.jpg"
}
}
geometry Box {
}
}
]
}
]
}
Transform {
children [
Transform {
scale 0.3 0.3 0.3
translation -0.76 0 2.3
children [
Shape {
appearance Appearance {
material Material {
shininess 0
}
texture DEF _texture19 ImageTexture {
url "folie1.jpg"
}
}
geometry Box {
}
}
]
}
]
}
]
}

folgender X3D Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' profile='Full' version='3.0' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.0.xsd'>
<Scene DEF='scene'>
<Transform>
<Viewpoint position='-0.32 0 5.32' fieldOfView='0.785'/>
<DirectionalLight ambientIntensity='1' intensity='0' direction='1 1 -1'/>
<Transform>
<Transform scale='0.3 0.3 0.3' translation='0.34 0 3.68'>
<Shape>
<Appearance>
<Material shininess='0'/>
<ImageTexture DEF='_texture9' url='"folie1.jpg"'/>
</Appearance>
<Box/>
</Shape>
</Transform>
</Transform>
<Transform>
<Transform scale='0.3 0.3 0.3' translation='-2.46 0 0.6'>
<Shape>
<Appearance>
<Material shininess='0'/>
<ImageTexture DEF='_texture14' url='"folie1.jpg"'/>
</Appearance>
<Box/>
</Shape>
</Transform>
</Transform>
<Transform>
<Transform scale='0.3 0.3 0.3' translation='-0.76 0 2.3'>
<Shape>
<Appearance>
<Material shininess='0'/>
<ImageTexture DEF='_texture19' url='"folie1.jpg"'/>
</Appearance>
<Box/>
</Shape>
</Transform>
</Transform>
</Transform>
</Scene>
</X3D>



Dateiquelle: vrml2.de

Keine Kommentare:

Kommentar veröffentlichen