<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=BlockyRenderer%3APreview</id>
	<title>BlockyRenderer:Preview - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=BlockyRenderer%3APreview"/>
	<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=BlockyRenderer:Preview&amp;action=history"/>
	<updated>2026-10-21T01:58:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.mutigeraffe.com/index.php?title=BlockyRenderer:Preview&amp;diff=2490&amp;oldid=prev</id>
		<title>Maintenance script: BlockyRenderer wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=BlockyRenderer:Preview&amp;diff=2490&amp;oldid=prev"/>
		<updated>2026-10-20T21:29:23Z</updated>

		<summary type="html">&lt;p&gt;BlockyRenderer wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The preview shows a &amp;lt;code&amp;gt;.blockymodel&amp;lt;/code&amp;gt; file as a 3D model. It opens beside the JSON text, like the Markdown preview. The preview only shows the model. To change it in 3D, use the [[BlockyRenderer:Blocky Editor|Blocky Editor]].&lt;br /&gt;
&lt;br /&gt;
[[File:BlockyRenderer_Screenshot_01.png|800px|center|A model with its texture in the preview]]&lt;br /&gt;
&lt;br /&gt;
== Opening the preview ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Automatically&amp;#039;&amp;#039;&amp;#039;: when you open a &amp;lt;code&amp;gt;.blockymodel&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;.blockyanim&amp;lt;/code&amp;gt; file in the text editor, the preview opens beside it. Turn this off with &amp;lt;code&amp;gt;blockyRenderer.autoOpenPreview&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Title bar&amp;#039;&amp;#039;&amp;#039;: the &amp;#039;&amp;#039;Open Preview to the Side&amp;#039;&amp;#039; button of the text editor.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Keyboard&amp;#039;&amp;#039;&amp;#039;: &amp;lt;code&amp;gt;Ctrl+K V&amp;lt;/code&amp;gt; opens the preview to the side, &amp;lt;code&amp;gt;Ctrl+Shift+V&amp;lt;/code&amp;gt; opens it in the same editor group. On macOS use &amp;lt;code&amp;gt;Cmd&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;Ctrl&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Explorer&amp;#039;&amp;#039;&amp;#039;: right-click a file and choose &amp;#039;&amp;#039;Open Preview&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The automatic preview opens only once per file. If you close it, it stays closed until you close and reopen the file. It does not open for files outside the file system, for example the old side of a Git diff. It also does not open if the file already has a Blocky Editor or Blocky Preview tab.&lt;br /&gt;
&lt;br /&gt;
== One preview ==&lt;br /&gt;
There is only one preview panel. It follows the active &amp;lt;code&amp;gt;.blockymodel&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;.blockyanim&amp;lt;/code&amp;gt; text editor and the selection in the model browser. The panel title is &amp;lt;code&amp;gt;Preview&amp;lt;/code&amp;gt; plus the file name. VS Code restores the panel after a restart.&lt;br /&gt;
&lt;br /&gt;
== Live updates ==&lt;br /&gt;
* The preview shows unsaved changes while you type.&lt;br /&gt;
* If the JSON is broken for a moment, the last valid state stays on screen and the error is shown at the top, for example &amp;lt;code&amp;gt;JSON error on line 12: …&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If a script or another program rewrites the model file or a PNG in the model folder, the preview reloads.&lt;br /&gt;
* The camera stays where it is when the same model reloads. It is fitted again only when another model is shown.&lt;br /&gt;
&lt;br /&gt;
== Toolbar ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Texture&amp;#039;&amp;#039; || Picks the texture. The list holds all PNG files in the model folder and in &amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;amp;gt;_Textures/&amp;lt;/code&amp;gt;, plus &amp;#039;&amp;#039;(no texture)&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Animation&amp;#039;&amp;#039; || Only in the preview of a model. Plays one of its animations. See [[BlockyRenderer:Animations|Animations]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Model&amp;#039;&amp;#039; || Only in the preview of an animation. Picks the model it plays on.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Grid&amp;#039;&amp;#039; || Shows or hides the grid, the outline of one block and the axes at the origin.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Reset View&amp;#039;&amp;#039; || Fits the camera to the model again.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The camera position, the grid setting and the playback speed are kept per panel.&lt;br /&gt;
&lt;br /&gt;
== Texture ==&lt;br /&gt;
A model file does not name its texture. The preview looks in the folder of the model and takes the first match in this order:&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;amp;gt;_Texture.png&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;amp;gt;.png&amp;lt;/code&amp;gt;&lt;br /&gt;
# any &amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;amp;gt;*.png&amp;lt;/code&amp;gt; in the same folder&lt;br /&gt;
# &amp;lt;code&amp;gt;Texture.png&amp;lt;/code&amp;gt;&lt;br /&gt;
# any PNG in &amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;amp;gt;_Textures/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;amp;lt;Name&amp;amp;gt;&amp;lt;/code&amp;gt; is the file name of the model without &amp;lt;code&amp;gt;.blockymodel&amp;lt;/code&amp;gt;. Case does not matter. If nothing matches, the model is drawn without texture, and every node gets its own color based on its name. You can still pick any PNG of the folder in the &amp;#039;&amp;#039;Texture&amp;#039;&amp;#039; list. The choice is kept while the panel is open.&lt;br /&gt;
&lt;br /&gt;
== Scene ==&lt;br /&gt;
* The grid is 10 × 10 blocks, one block is 32 units.&lt;br /&gt;
* A frame shows the size of one block, standing on the origin.&lt;br /&gt;
* Lighting is only approximated. Shape, UVs and proportions should be right, the in-game look is not. Only the shading mode &amp;lt;code&amp;gt;fullbright&amp;lt;/code&amp;gt; is drawn self-lit.&lt;br /&gt;
* Drag to orbit, scroll to zoom, right-drag to pan.&lt;br /&gt;
&lt;br /&gt;
== Text and 3D are linked ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Cursor in the text&amp;#039;&amp;#039;&amp;#039;: the node at the cursor is outlined in orange in the 3D view, and its pivot is shown as small axes. Children of the node get a fainter outline.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Click in the 3D view&amp;#039;&amp;#039;&amp;#039;: the name of the clicked node is selected in the text.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Hover in the 3D view&amp;#039;&amp;#039;&amp;#039;: the status line at the bottom shows the name path of the node, for example &amp;lt;code&amp;gt;Base › Glass&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The same node is also selected in the &amp;#039;&amp;#039;&amp;#039;Nodes&amp;#039;&amp;#039;&amp;#039; view of the [[BlockyRenderer:Blocky Renderer Tab|Blocky Renderer Tab]].&lt;br /&gt;
&lt;br /&gt;
== Empty files ==&lt;br /&gt;
If the model file is empty, the preview shows &amp;#039;&amp;#039;The file is still empty.&amp;#039;&amp;#039; and a &amp;#039;&amp;#039;&amp;#039;Start with a Cube&amp;#039;&amp;#039;&amp;#039; button. The button fills the file with a block-sized cube and saves it. See [[BlockyRenderer:New Models|New Models]].&lt;br /&gt;
&lt;br /&gt;
{{BlockyRenderer Nav}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>