<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mar 14, 2016]]></title><description><![CDATA[<p dir="auto">Jeff Gay<br />
Viewer Configuration</p>
<p dir="auto">This is a new thread about enhancing the viewer, and allow further options for the camera, grid, axis, etc. All suggestions welcome as well as assistance.</p>
<p dir="auto">Here are some settings in the viewer that should be configurable:</p>
<ul>
<li>
<p dir="auto">Camera position (x/y/z), angle (x/y/z), field of view angle</p>
</li>
<li>
<p dir="auto">Grid viewable, size, minor/major spacing, and colors</p>
</li>
<li>
<p dir="auto">Zoom min and max</p>
</li>
<li>
<p dir="auto">Axis viewable, colors</p>
</li>
<li>
<p dir="auto">Render smoothing, default color<br />
4 comments<br />
4<br />
4 plus ones<br />
4<br />
no shares<br />
Shared publicly•View activity</p>
<p dir="auto">Jeff Gay<br />
I've made some changes to the Viewer, moving all settings for camera, grid, axis, zoom, etc to properties withing the object. Everything is now configurable.</p>
<p dir="auto">I was able to create a very nice view of the <a href="http://OpenJSCAD.org" rel="nofollow ugc">OpenJSCAD.org</a> logo from 500 mm above the axis, showing a grid that is 1000mm by 1000mm.</p>
<p dir="auto"><a href="https://plus.google.com/112547487000950207437/posts/Y6DeTunEK4P" rel="nofollow ugc">https://plus.google.com/112547487000950207437/posts/Y6DeTunEK4P</a></p>
</li>
</ul>
<p dir="auto">Mar 15, 2016<br />
Jeff Gay<br />
I just added a pull request for changes to both Processor and Viewer. These changes should allow users of <a href="http://OpenJSCAD.org" rel="nofollow ugc">OpenJSCAD.org</a> to change the Viewer settings for:</p>
<ul>
<li>controlling the display of solids</li>
<li>controlling the display of the plate (grid lines)</li>
<li>controlling the display of the XYZ axis</li>
<li>controlling the initial camera position<br />
The Processor also has some improvements for:</li>
<li>setting the path to JS libraries</li>
<li>adding libraries for processing</li>
<li>callbacks when the current object changes or when download occurs</li>
</ul>
<p dir="auto">One nice new feature is that the Viewer can be reset to the original perspective; CTRL-RETURN</p>
<p dir="auto">Mar 19, 2016<br />
Jeff Gay<br />
Both objects (Processor and Viewer) are provided via one source file; openjscad.js. In the new version, all the "settings" have been moved to "options" which can be changed.</p>
<ol>
<li>By changing the source code</li>
<li>By providing options during construction</li>
<li>During run time by calling appropriate functions, e.g. setCameraOptions(options).<br />
Hopefully, this provides enough flexibility for those needing a slightly different view, etc.</li>
</ol>
<p dir="auto">Please try the DEV branch if this functionality is of interest.</p>
<p dir="auto">Mar 23, 2016<br />
Jeff Gay<br />
Nope. You will have to see the code.</p>
<p dir="auto">FYI The source code is organized quite differently now.</p>
]]></description><link>https://openjscad.nodebb.com/topic/30/mar-14-2016</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 22:08:36 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/30.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Apr 2019 07:51:38 GMT</pubDate><ttl>60</ttl></channel></rss>