Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mandic
Visualization
Commits
1348b3b6
You need to sign in or sign up before continuing.
Commit
1348b3b6
authored
May 19, 2021
by
Koukofikis
Browse files
Update ifsandtextures.html
parent
d8e2869a
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/X3DOMTutorial/ifsandtextures.html
View file @
1348b3b6
<html>
<html>
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
indexed face set and material
</title>
<title>
indexed face set and material
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"x3dom.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"x3dom.css"
>
</head>
</head>
<body>
<body>
<h1>
indexed face set and material
<h1>
<h1>
indexed face set and material
<h1>
<table
width=
"100%"
height=
"85%"
border=
"0"
>
<table
width=
"100%"
height=
"85%"
border=
"0"
>
<tr>
<tr>
<td
width=
"50%"
align=
"center"
valign=
"top"
scope=
"col"
>
<td
width=
"50%"
align=
"center"
valign=
"top"
scope=
"col"
>
<X3D
id=
"shapedata"
width=
"600px"
height=
"600px"
style=
"float:left"
>
<X3D
id=
"shapedata"
width=
"600px"
height=
"600px"
style=
"float:left"
>
<Scene>
<Scene>
<Shape>
<Shape>
<!-- roof -->
<!-- roof -->
<Appearance>
<Appearance>
<Material
diffuseColor=
"0.980, 0.502, 0.447"
>
</Material>
<Material
diffuseColor=
"0.980, 0.502, 0.447"
>
</Material>
</Appearance>
</Appearance>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
" 7 4 8 -1 4 5 8 -1 5 6 8 -1 6 7 8 -1"
>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
" 7 4 8 -1 4 5 8 -1 5 6 8 -1 6 7 8 -1"
>
<Coordinate
DEF=
"pointset"
point=
"-1 0 1, 1 0 1, 1 0 -1, -1 0 -1,
<Coordinate
DEF=
"pointset"
point=
"-1 0 1, 1 0 1, 1 0 -1, -1 0 -1,
-1 2 1, 1 2 1, 1 2 -1, -1 2 -1, 0 3 0 "
>
-1 2 1, 1 2 1, 1 2 -1, -1 2 -1, 0 3 0 "
>
</Coordinate>
</Coordinate>
</IndexedFaceSet>
</IndexedFaceSet>
</Shape>
</Shape>
<Shape>
<Shape>
<!-- wall 1 -->
<!-- wall 1 -->
<Appearance>
<Appearance>
<ImageTexture
url=
"img/brick_stone_wall_0119_01_preview.jpg"
></ImageTexture>
<ImageTexture
url=
"img/brick_stone_wall_0119_01_preview.jpg"
></ImageTexture>
<Material
diffuseColor=
"0.753, 0.753, 0.753"
>
</Material>
<Material
diffuseColor=
"0.753, 0.753, 0.753"
>
</Material>
</Appearance>
</Appearance>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
"0 1 5 4 -1 "
>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
"0 1 5 4 -1 "
>
<Coordinate
USE=
"pointset"
>
<Coordinate
USE=
"pointset"
>
</Coordinate>
</Coordinate>
</IndexedFaceSet>
</IndexedFaceSet>
</Shape>
</Shape>
<Shape>
<Shape>
<!-- wall -->
<!-- wall -->
<Appearance>
<Appearance>
<ImageTexture
<ImageTexture
url=
"http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Peach_Rinkysplash.jpg/800px-Peach_Rinkysplash.jpg"
>
url=
"https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Peach_Rinkysplash.jpg/800px-Peach_Rinkysplash.jpg"
>
</ImageTexture>
</ImageTexture>
<Material
diffuseColor=
"0.753, 0.753, 0.753"
>
</Material>
<Material
diffuseColor=
"0.753, 0.753, 0.753"
>
</Material>
</Appearance>
</Appearance>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
" 1 2 6 5 -1 2 3 7 6 -1 3 0 4 7 -1"
>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
" 1 2 6 5 -1 2 3 7 6 -1 3 0 4 7 -1"
>
<Coordinate
USE=
"pointset"
>
<Coordinate
USE=
"pointset"
>
</Coordinate>
</Coordinate>
</IndexedFaceSet>
</IndexedFaceSet>
</Shape>
</Shape>
<Shape>
<Shape>
<!-- ground -->
<!-- ground -->
<Appearance>
<Appearance>
<Material
diffuseColor=
"0.180, 0.280, 0.230"
>
</Material>
<Material
diffuseColor=
"0.180, 0.280, 0.230"
>
</Material>
</Appearance>
</Appearance>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
" 0 3 2 1 -1 "
>
<IndexedFaceSet
solid=
"true"
ccw=
"true"
coordIndex=
" 0 3 2 1 -1 "
>
<Coordinate
USE=
"pointset"
>
<Coordinate
USE=
"pointset"
>
</Coordinate>
</Coordinate>
</IndexedFaceSet>
</IndexedFaceSet>
</Shape>
</Shape>
</Scene>
</Scene>
</X3D>
</X3D>
</p>
</p>
</td>
</td>
<td
width=
"50%"
align=
"left"
valign=
"top"
scope=
"col"
>
<td
width=
"50%"
align=
"left"
valign=
"top"
scope=
"col"
>
Example:
<a
href=
"http://doc.x3dom.org/tutorials/basics/imagesMovies/index.html"
target=
"_blank"
>
Using
Example:
<a
href=
"https://doc.x3dom.org/tutorials/basics/imagesMovies/index.html"
target=
"_blank"
>
Using
Images and Movies as Textures
</a>
Images and Movies as Textures
</a>
<br>
<br>
<a
href=
"http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/texturing.html"
<a
href=
"https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/texturing.html"
target=
"_blank"
>
Textures
</a>
target=
"_blank"
>
Textures
</a>
<br>
<br>
<a
href=
"http://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/geometry3D.html#IndexedFaceSet"
<a
href=
"https://www.web3d.org/files/specifications/19775-1/V3.3/Part01/components/geometry3D.html#IndexedFaceSet"
target=
"_blank"
>
target=
"_blank"
>
How Textures are mapped on IndexedFaceSet:
How Textures are mapped on IndexedFaceSet:
</a><br>
</a><br>
<br>
<br>
<pre
class=
"prettyprint"
>
<pre
class=
"prettyprint"
>
<
Appearance
>
<
Appearance
>
<
ImageTexture url="http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Peach_Rinkysplash.jpg/800px-Peach_Rinkysplash.jpg"
><
/ImageTexture
>
<
ImageTexture url="https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Peach_Rinkysplash.jpg/800px-Peach_Rinkysplash.jpg"
><
/ImageTexture
>
<
Material diffuseColor="0.753, 0.753, 0.753"
>
<
/Material
>
<
Material diffuseColor="0.753, 0.753, 0.753"
>
<
/Material
>
<
/Appearance
>
<
/Appearance
>
</pre>
</pre>
</td>
</td>
<script
type=
"text/javascript"
src=
"x3dom.js"
></script>
<script
type=
"text/javascript"
src=
"x3dom.js"
></script>
</body>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment