example – the megastructure development blog http://blog.megastructure.org tracking construction of megaprojects Sun, 23 Dec 2018 15:54:33 +0000 en-US hourly 1 https://wordpress.org/?v=5.0.2 Circles and Squares http://blog.megastructure.org/2009/08/circles-and-squares/ Fri, 14 Aug 2009 12:59:13 +0000 http://blog.megastructure.org/?p=32 Overview of version 1.6

Hello, and welcome to version 1.6 of the famous NoiseViewer. This “release” has a number of new and amazing surprises. For instance: thanks to the TinyXML library, now you can save and load your creative patterns to an XML file (not yet supported on OS X).

Also, new layer types are starting to emerge. Not only can you mix layers of noise, but now infinite planes of circles and squares have stepped into the ring!

Here are some trippy circles, made by using noise as the input for the radii of the circles:

trippy circlesThis will probably change in the near future (ie. it will break). But I like how it pans. You can view this yourself by importing the XML that describes it:

<?xml version="1.0" ?>
<NoiseViewer>
<Layers>
<Layer TypeID="2" x="5.288616" y="-5.674968" zoomx="21.007694" zoomy="21.007694">
<Variables>
<Variable name="Radius" MaxValue="10.000000" MinValue="0.001000" OverrideValue="2.000000">
<Layer TypeID="0" x="0.507875" y="-1.262280" zoomx="3.183013" zoomy="3.183013">
<Variables>
<Variable name="Cutoff" MaxValue="1.000000" MinValue="-1.000000" OverrideValue="0.500000" />
</Variables>
</Layer>
</Variable>
<Variable name="Spacing" MaxValue="10.000000" MinValue="0.001000" OverrideValue="2.000000" />
</Variables>
</Layer>
</Layers>
</NoiseViewer>

Or, you can download the XML here: Trippy circles.xml

Features on the way

The upcoming immediate goals are:

  • More layer types
  • More flexibility in layers
  • More general layer options

Standard boilerplate

From what I understand of the licenses, I am allowed to use these libraries. Please understand that the code and programs linked to below are provided “as-is”. Also note that running any program found on the internet carries risk, and the responsible user always scans for viruses, etc.

Click and drag to pan around the noise. CTRL+click-and-drag up and down adjusts the zoom level. Shift+click-and-drag adjusts the noise cutoff point.

Compiled executable (Windows, ~379KB): NoiseViewer_v1.6.zip

Source code, libraries and projects (Visual Studio 2008/OS X, ~4,376KB): NoiseViewerSource1.6.zip

Feedback would be greatly appreciated!!

]]>
NoiseViewer version 1 http://blog.megastructure.org/2009/07/noiseviewer-version-1/ Fri, 10 Jul 2009 10:38:50 +0000 http://blog.megastructure.org/?p=8 The NoiseViewer is a simple program that lets you explore a two-dimensional noise map generated in real-time. This is a preliminary tool designed to be a starting point for mapping out and viewing procedural content. I hope to make the NoiseViewer more and more sophisticated as layers of noise and objects start stacking up.

NoiseViewer v1.0 screenshot

This is terribly preliminary!

  • Uses Stefan Gustavson’s implementation of Simplex Noise (available here). I’ve made a few changes, so that it works better on Windows. The source download (below) includes the modified Simplex Noise code. For more information on Simplex Noise, see Simplex noise and Perlin noise.
  • Uses FreeGLUT, also included in the source below.
  • Some of the code is based on wonderful examples found on the OpenGL site, numerous snippets found online, and of course NeHe’s excellent tutorials.
  • My code is not elegant. This version focuses on making something work, nothing more.

From what I understand of the licenses, I am allowed to use these libraries. Please understand that the code and programs linked to below are provided “as-is”. Also note that running any program found on the internet carries risk, and the responsible user always scans for viruses, etc.

Click and drag to pan around the noise. CTRL+click-and-drag up and down adjusts the zoom level. Shift+click-and-drag adjusts the noise cutoff point.

Compiled executable (Windows, ~266KB): NoiseViewer_v1.zip

Source code, libraries and projects (Visual Studio 2008, ~1,456KB): NoiseViewer_v1_src.zip

Feedback would be greatly appreciated!!

]]>