[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lod examples in inventor, vrml (cont.)




for completeness, here's the same thing in VRML2.0

#VRML V2.0 utf8

DEF Home Viewpoint {
    position    0 0 4.18154
    description "Home"
}
NavigationInfo {
    type        [ "EXAMINE", "ANY" ]
    avatarSize 0
}
Collision {
    collide FALSE
    children [
        Group {
            children [
                DEF Cameras Switch {
                    whichChoice -1
                },
                LOD {
                    range       [ 5, 9, 15 ]
                    center      0 0 0
                    level [
                        Shape {
                            appearance
                                Appearance {
                                    material
                                        DEF _DefMat Material {
                                        }
                                }
                            geometry
                                Cone {
                                }
                        },
                        Shape {
                            appearance
                                Appearance {
                                    material USE _DefMat
                                }
                            geometry
                                Sphere {
                                }
                        },
                        Shape {
                            appearance
                                Appearance {
                                    material USE _DefMat
                                }
                            geometry
                                Cylinder {
                                }
                        },
                        Shape {
                            appearance
                                Appearance {
                                    material USE _DefMat
                                }
                            geometry
                                Box {
                                }
                        }
                    ]
                }
            ]
        }
    ]
}