| 1 |
#X3D V3.2 utf8 |
| 2 |
PROFILE Interchange |
| 3 |
|
| 4 |
NavigationInfo { |
| 5 |
#headlight FALSE |
| 6 |
type ["WALK", "ANY"] |
| 7 |
# leave default avatarSize, as our model tries to be adjusted to that, |
| 8 |
# approx 1 unit = 1 meter, with player height = 1.75 meters |
| 9 |
speed 5 |
| 10 |
} |
| 11 |
|
| 12 |
# Camera settings "encoded" in the VRML declaration below : |
| 13 |
# direction 0.9622886776924133 0.0329807139933109 -0.2700241208076477 |
| 14 |
# up -0.0317542664706707 0.9994559288024902 0.008910440839827 |
| 15 |
# gravityUp 0 1 0 |
| 16 |
Viewpoint { |
| 17 |
position -46.300395965576172 -4.4862656593322754 4.8882923126220703 |
| 18 |
orientation 0.0217522922903299 -0.9996275305747985 0.0164888687431812 1.2975844144821167 |
| 19 |
} |
| 20 |
|
| 21 |
# Test light for shadows. |
| 22 |
# SpotLight { |
| 23 |
# color 1 1 0.5 |
| 24 |
# # beamWidth 0.9 |
| 25 |
# cutOffAngle 1 |
| 26 |
# direction -0 -1 0 |
| 27 |
# location -25 10 0 |
| 28 |
# defaultShadowMap GeneratedShadowMap { |
| 29 |
# update "ALWAYS" |
| 30 |
# size 1024 |
| 31 |
# scale 4 |
| 32 |
# } |
| 33 |
# shadows TRUE |
| 34 |
# } |
| 35 |
|
| 36 |
KambiInline { |
| 37 |
url "bridge.x3d" |
| 38 |
|
| 39 |
# This texture is often visible at steep angles, anisotropic filtering helps |
| 40 |
replaceNames "_023bois_jpg" |
| 41 |
replaceNodes ImageTexture { |
| 42 |
url "textures/023bois.jpg" |
| 43 |
textureProperties TextureProperties { |
| 44 |
anisotropicDegree 16 |
| 45 |
minificationFilter "NICEST" |
| 46 |
magnificationFilter "NICEST" |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
# Add a teapot, with cubemap mirror. |
| 53 |
# This shows that generated cubemap textures work from scene_manager_demos |
| 54 |
# as well, and mirror shows all world obects (in TCastleViewport, |
| 55 |
# not only in current X3D scene). |
| 56 |
Transform { |
| 57 |
translation -10 -4 4 |
| 58 |
children Shape { |
| 59 |
appearance Appearance { |
| 60 |
material Material { |
| 61 |
diffuseColor 0.5 1 0.5 |
| 62 |
specularColor 1 1 1 shininess 1 } |
| 63 |
texture MultiTexture { |
| 64 |
texture [ |
| 65 |
ImageTexture { url "textures/059_plombieresgbr.jpg" } |
| 66 |
GeneratedCubeMapTexture { |
| 67 |
update "ALWAYS" # change to "NEXT_FRAME_ONLY" for speed |
| 68 |
size 256 |
| 69 |
} |
| 70 |
] |
| 71 |
mode [ "MODULATE" "ADD" ] |
| 72 |
} |
| 73 |
} |
| 74 |
geometry Teapot { |
| 75 |
texCoord MultiGeneratedTextureCoordinate { |
| 76 |
texCoord [ |
| 77 |
TextureCoordinateGenerator { mode "COORD" } |
| 78 |
TextureCoordinateGenerator { mode "WORLDSPACEREFLECTIONVECTOR" } |
| 79 |
] |
| 80 |
} |
| 81 |
} |
| 82 |
} |
| 83 |
} |