-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
1,951 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>3D Website Building Articles</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<link rel="stylesheet" href="/css/resources.css"> | ||
<link rel="stylesheet" href="/css/articles.css"> | ||
<link href="https://fonts.cdnfonts.com/css/montserrat" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="doc-container"> | ||
<div class="sidebar"> | ||
<a href="/"> | ||
<img src="/images/digital_bacon_pig_compressed.png" alt="Digital Bacon logo" class="logo"> | ||
</a> | ||
<div id="sidebar-navigation"> | ||
<ul> | ||
<li> | ||
<a href="#section/Tutorials"> | ||
<label type="section" role="menuitem"> | ||
<span title="Tutorials">Tutorials</span> | ||
</label> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#section/TipsAndTricks"> | ||
<label type="section" role="menuitem"> | ||
<span title="TipsAndTricks">Tips and Tricks</span> | ||
</label> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#section/DeveloperContent"> | ||
<label type="section" role="menuitem"> | ||
<span title="DeveloperContent">Developer Content</span> | ||
</label> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div id="main-content"> | ||
<a class="only-large-screen" href="/"> | ||
<img src="/images/digital_bacon_pig_compressed.png" alt="Digital Bacon logo" class="logo"> | ||
</a> | ||
<h1 id="section/Tutorials">Tutorials</h1> | ||
<p>Coming Soon!</p> | ||
<!--<ul class="article-list"> | ||
<li> | ||
<a href="/articles/creating-a-lens-of-truth"> | ||
<h3>Creating a Lens of Truth</h3> | ||
<p>In this tutorial, we'll hide a secret message behind a painting and then create a tool to see it</p> | ||
</a> | ||
</li> | ||
</ul>--> | ||
<h1 id="section/TipsAndTricks">Tips and Tricks</h1> | ||
<p>Coming Soon!</p> | ||
<!--<ul class="article-list"> | ||
<li> | ||
<a href="/articles/the-transparency-problem"> | ||
<h3>The Transparency Problem</h3> | ||
<p>Transparent asset not showing what's behind it correctly? Let's dive into why that happens and how to fix it by updating the render order for different objects</p> | ||
</a> | ||
</li> | ||
</ul>--> | ||
<h1 id="section/DeveloperContent">Developer Content</h1> | ||
<p>Coming Soon!</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Digital Bacon Tutorials - Creating a Lens of Truth</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<link rel="stylesheet" href="/css/articles.css"> | ||
<link href="https://fonts.cdnfonts.com/css/montserrat" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="header-nav-bar"> | ||
<span class="p-16px w-50px"> | ||
<a href="/"> | ||
<img src="/images/digital_bacon_pig_compressed.png" alt="Digital Bacon logo" class="logo"> | ||
</a> | ||
</span> | ||
<span><a href="/articles">Back to all Articles</a></span> | ||
</div> | ||
<div class="content"> | ||
<h1 class="ta-center">Creating a Lens of Truth</h1> | ||
<p>In this tutorial, we'll hide a secret message behind a painting and then create a tool to see it</p> | ||
<blockquote><a href="#">See this tutorial on YouTube</a></blockquote> | ||
<img src="/articles/images/transparency_problem.png" alt="Digital Bacon Transparency Problem"> | ||
<p><em>The Lens of Truth we'll be creating in action</em></p> | ||
<h3>Setting up our Scene</h3> | ||
<p>Let's open up the <a href="/app">Digital Bacon Editor</a> and create an exhibit wall. Opening the virtual menu and select Library -> Shapes -> Plus (+) button -> Box. Then you can set your box width + height to 1 meter or your preferred dimensions and add a new Standard Material to it to set the color</p> | ||
<p>Now let's add our secret message to the wall and then a painting on top of it. There's a plugin to conveniently add Text to Digital Bacon websites. If you're using the default project then you can just add it from the Other Assets section. Otherwise just copy and paste the plugin from the <a href="/plugins">plugins page</a></p> | ||
<img src="/articles/images/transparency_problem.png" alt="Digital Bacon Transparency Problem"> | ||
<p><em>You should have something like this now</em></p> | ||
<p>To keep performance smooth and maintain high frame rates, rendering engines try to avoid unnecessary calculations. They skip over the parts of assets that are hidden behind others. The renderer only takes the geometry of an asset into account when seeing what should be skipped, not its material or transparency. You might think nothing would ever be displayed behind a transparent asset then right?</p> | ||
<p>Fortunately, the rendering engine renders all solid assets first. This ensures that a transparent asset won't block a solid one from being displayed. The issue is usually encountered among multiple transparent assets. To get around this, rendering engines oftentimes let you specify the <code>Render Order</code> for an asset. Assets with a higher render order won't prevent assets with a lower render order from being displayed</p> | ||
<h3>Solution</h3> | ||
<p>Increase the render order of the transparent asset that is hiding other assets or decrease the render order for the asset(s) being hidden to solve the transparency problem. When using the <a href="/app">Digital Bacon Editor</a>, the Render Order attribute is typically found on the last page of an asset when editing via the virtual menu</p> | ||
<img src="/articles/images/transparency_problem_2.png" alt="Digital Bacon Transparency Problem Solved"> | ||
<p><em>After increasing the render order of our piggy, the ocean is now perfectly visible behind it 😄</em></p> | ||
<p>Once you've cleaned up those transparency issues on your website, it's time to share your work online. Check out <a href="https://mydigitalbacon.com">My Digital Bacon</a> as an easy to use and convenient hosting service. The user-friendly platform offers a free tier with no payment details required, so you can explore all their features risk-free. Plus, if you choose to host elsewhere, My Digital Bacon can still enable multi-user sessions using its servers to enhance the user experience of your website</p> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Digital Bacon Tips and Tricks - The Transparency Problem</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<link rel="stylesheet" href="/css/articles.css"> | ||
<link href="https://fonts.cdnfonts.com/css/montserrat" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="header-nav-bar"> | ||
<span class="p-16px w-50px"> | ||
<a href="/"> | ||
<img src="/images/digital_bacon_pig_compressed.png" alt="Digital Bacon logo" class="logo"> | ||
</a> | ||
</span> | ||
<span><a href="/articles">Back to all Articles</a></span> | ||
</div> | ||
<div class="content"> | ||
<h1 class="ta-center">The Transparency Problem</h1> | ||
<p>Transparent asset not showing what's behind it correctly? Let's dive into why that happens and how to fix it by updating the render order for different objects</p> | ||
<img src="/articles/images/transparency_problem.png" alt="Digital Bacon Transparency Problem"> | ||
<p><em>After uploading a png photo of our piggy to the Digital Bacon Editor, the ocean disappears behind the transparent portions of the image at certain angles 😑</em></p> | ||
<h3>Why things disappear behind transparent assets</h3> | ||
<p>To understand why, we need to learn about how rendering engines decide what to display</p> | ||
<p>To keep performance smooth and maintain high frame rates, rendering engines try to avoid unnecessary calculations. They skip over the parts of assets that are hidden behind others. The renderer only takes the geometry of an asset into account when seeing what should be skipped, not its material or transparency. You might think nothing would ever be displayed behind a transparent asset then right?</p> | ||
<p>Fortunately, the rendering engine renders all solid assets first. This ensures that a transparent asset won't block a solid one from being displayed. The issue is usually encountered among multiple transparent assets. To get around this, rendering engines oftentimes let you specify the <code>Render Order</code> for an asset. Assets with a higher render order won't prevent assets with a lower render order from being displayed</p> | ||
<h3>Solution</h3> | ||
<p>Increase the render order of the transparent asset that is hiding other assets or decrease the render order for the asset(s) being hidden to solve the transparency problem. When using the <a href="/app">Digital Bacon Editor</a>, the Render Order attribute is typically found on the last page of an asset when editing via the virtual menu</p> | ||
<img src="/articles/images/transparency_problem_2.png" alt="Digital Bacon Transparency Problem Solved"> | ||
<p><em>After increasing the render order of our piggy, the ocean is now perfectly visible behind it 😄</em></p> | ||
<p>Once you've cleaned up those transparency issues on your website, it's time to share your work online. Check out <a href="https://mydigitalbacon.com">My Digital Bacon</a> as an easy to use and convenient hosting service. The user-friendly platform offers a free tier with no payment details required, so you can explore all their features risk-free. Plus, if you choose to host elsewhere, My Digital Bacon can still enable multi-user sessions using its servers to enhance the user experience of your website</p> | ||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
body { | ||
font-family: Montserrat, sans-serif; | ||
text-rendering: optimizespeed !important; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
|
||
h3 { | ||
color: #3e3e3e; | ||
} | ||
|
||
blockquote { | ||
margin-inline-start: 0px; | ||
padding-inline-start: 40px; | ||
padding-top: 2px; | ||
padding-bottom: 2px; | ||
border-left-style: solid; | ||
border-left-color: #404040; | ||
font-style: italic; | ||
} | ||
|
||
img { | ||
max-height: 100%; | ||
max-width: 100%; | ||
} | ||
|
||
.article-list { | ||
list-style: none; | ||
padding-inline-start: 0; | ||
} | ||
|
||
.article-list li { | ||
box-shadow: 0.01rem 0.01rem .15rem rgba(0, 0, 0, 0.3); | ||
background-color: white; | ||
cursor: pointer; | ||
max-width: 600px; | ||
padding: 1rem; | ||
} | ||
|
||
.article-list li a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
.article-list li:hover { | ||
background-color: #fafafa; | ||
} | ||
|
||
.header-nav-bar { | ||
align-items: center; | ||
border-bottom: solid 1px #f2f2f2; | ||
display: flex; | ||
flex-direction: row; | ||
height: 50px; | ||
width: 100%; | ||
} | ||
|
||
.header-nav-bar a { | ||
color: #3d3d3d; | ||
text-decoration: none; | ||
} | ||
|
||
.header-nav-bar a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.content { | ||
background: rgba(255, 255, 255, 0.8); | ||
border-radius: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
margin: auto; | ||
margin-top: 50px; | ||
max-width: 680px; | ||
width: 85%; | ||
} | ||
|
||
.content h1 { | ||
font-family: Montserrat, sans-serif; | ||
font-weight: 400; | ||
font-size: 1.85714em; | ||
line-height: 1.6em; | ||
color: rgb(50, 50, 159); | ||
} | ||
|
||
.content a:visited { | ||
color: blue; | ||
} | ||
|
||
.content p, .content blockquote { | ||
line-height: 24px; | ||
} | ||
|
||
.content p code { | ||
background-color: #efefef; | ||
border-radius: 3px; | ||
font-size: 16px; | ||
padding-left: 4px; | ||
padding-right: 4px; | ||
} | ||
|
||
.content img { | ||
border-radius: 6px; | ||
} | ||
|
||
.p-16px { | ||
padding: 16px; | ||
} | ||
|
||
.ta-center { | ||
text-align: center; | ||
} | ||
|
||
.w-50px { | ||
width: 50px; | ||
} | ||
|
||
.w-50 { | ||
width: 50%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.