Platform
Solutions
Resources
Pricing
Sign in
Sign up
CCN/CDN/LOG
Family of good boyz and gurlz who code for most advanced education and analytix products.
Workspace
Fork
Published
By
darashayda1
Edited
May 15, 2020
5
Insert cell
Insert cell
scene
=
html
`
<x3d width='${
0.8
*
width
}px' height='${
width
}px'>
<scene>
<Viewpoint
position="2.51615 -1.82458 1.52178"
orientation="0.72540 0.42492 0.54151 1.36199"
fieldOfView="0.78540">
</Viewpoint>
<PointLight on='TRUE' intensity='0.7' color='1 1 1' location='0 0 10 ' radius='20' >
</PointLight>
${
textured_rect
(
1
)
}
${
textured_rect
(
2
)
}
${
textured_rect
(
3
)
}
${
textured_rect
(
4
)
}
</scene>
</x3d>
`
Insert cell
function
textured_rect
(
i
)
{
return
`
<transform translation='0 0 ${
1.25
-
i
/
2
}'>
<shape>
<appearance>
<material diffuseColor='0 0 1'></material>
<ImageTexture url=${
urls
[
i
-
1
]
} />
</appearance>
<plane size='1.8,1' solid='false'></plane>
</shape>
</transform>
`
;
}
Insert cell
// Better reload to make sure the scene shows up.
{
scene
;
x3dom
.
reload
(
)
;
}
Insert cell
Insert cell
urls
=
[
await
FileAttachment
(
"canvas1.png"
)
.
url
(
)
,
await
FileAttachment
(
"canvas2.png"
)
.
url
(
)
,
await
FileAttachment
(
"canvas3.png"
)
.
url
(
)
,
await
FileAttachment
(
"canvas4.png"
)
.
url
(
)
,
await
FileAttachment
(
"canvas5.png"
)
.
url
(
)
]
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
scene
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
textured_rect
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
x3dom
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
urls
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML