Wednesday 23 March 2016

Unknown Error • FreeHand Xtras



 The existential side of the digital divide...


You may be forgiven for considering binary or digital states either ‘on’ or ‘off’ - or, perhaps, ‘working’ and ‘not working’. Unlike analog, the data age is somewhat more polarized.



It appears that cloud computing has heralded a foggy mist of uncertainty. The question remains... if the error is unknown, is it certain it happened at all?

Unknown Error


If you know an error has occurred, you would state the reason why you think that. Or not - keep it a secret - but you nonetheless know an error has occurred, having been alerted to this in some manner or form.

If you didn’t know there was an error, you wouldn’t say anything. Stands to reason.






apple alert dialog
No money

apple account alert dialog
Still no money

Download unknown error


Vegas Unknown Error

windows live mail unknown error


unknown error illustrator

WLM unknown error

freehand unknown command error

oups oops undefined error
Someone please define this term


photoshop strange dialog
PS CS6 trunkati

photoshop program error
PS CS6 brokeh

This doesn’t stop websites, web apps, mobile apps, operating systems, programs and functions from venting their feelings on the subject, no matter if reasoning exists or not.
An unknown error is not an error, because if it was, it would be known. You could say ‘An error occurred’ - which would be fact - or you could say ‘an unknown error occurred’, forgetting momentarily that by knowing it, it isn’t unknown.

Fundamental logic


So the only thing unknown here seems to be the definition of the word 'unknown'.

It’s not the computer’s fault. It’s the if… then… else logic. If this happened then say it happened, otherwise say something else happened. What that something else is, we don’t know, but we do know it isn’t the thing we were looking for or expecting. Alternately, we might know what it is, but we couldn’t be bothered to table the report.

So instead of the heaps of ‘Unknown Error’ messages this broken logic generates, Microsoft have decided to say it like it is. They say… wait for it…

‘Something Happened’.



Of course, they could just as easily have said ‘Nothing Happened’. Or, in fact, any random collection of nonsensical words. It’s all smoke and mirrors, because no matter what the error message, it means simply ‘Code Failure’.

Error: Code Failure. We’re sorry, but this code is limited, and at this point it’s stopped working. Sorry. If it makes you feel any better, here’s a random button to click on. You don’t have to click it but you can’t click anywhere else until you do. We reckon you’ll probably click it.

There's nothing like the cacophony of errors that spring into existence when attempting to leverage a M$ mail client within a M$ OS to access a M$ mail account. You can't click the dialogs away fast enough.

What started it all off... rant rant rant...


I did not type this. I am not responsible. Unknown Error.

it gets stranger the closer you get to the core. of, um the Death Star


-------------------------------------------------------------------------------------------------------

Website Fun

Know what I want to put on my web page? A link that says ‘Report Dead Links’, but the link is dead. HAH!

REPORT DEAD LINKS

-------------------------------------------------------------------------------------------------------

Freehand XDK

Well, writing code is all about handling notifications. Exception handling is just another event handler. Can’t imagine why sites like YouTube have to get all vague, one assumes that the code is simply too complex. It’s surreal that Facebook doesn’t face these issues all the time.

Things I never knew FreeHand could do

With 24 years working in FreeHand, the last 12 of which required using the last release (11.0.2), you’d think I probably know all there is to know about this brilliant program. Hah! Fat chance.

Today I started exploring the FreeHand XDK - Xtras Developer Kit.
To create custom Xtras in FreeHand, I first had to think of what functionality I most wished FreeHand could be capable of.

  • Primary wish: Open and save .pdf and .eps as Illustrator does. That’s the only reason I use Illustrator.

Then some creative wishing..

  • Native handling of Photoshop files - nice for handling 32-bit CMYK with alpha *
  • Open CorelDraw files *
  • Retain gradients on import and not convert them to blends
  • Remove the segmentation of vectors in the .pdf export *
  • Embed font information in .pdf export *
  • Print via Acrobat pages larger than 2x2.5m
  • Corner chamfer tool *
  • Create crop and registration marks *
  • Auto-expand all truncated text boxes
  • Allow linked text to be converted to paths *
  • Identify mixed colour modes in preflight *
  • Xtras suggested in the XDK include:
    1. Sort colours by name, name all unnamed *
    2. Saturate colours *
    3. Create page numbers *
    4. Delete all guides, unused layers, empty text boxes *
    5. Select invisible elements
    6. Modify placed or embedded TIFF images with filters *

Right! Kicking. Before I set about making the Xtras, best we see if those capabilities don’t already exist. And… oh, dear.

* These items are already handled by FreeHand.

Right. So the wishlist is in fact 5 items, not 18. Fucking hell. FreeHand MX dates back to 2004. It’s 2016 and I’m only learning this now. I didn’t even know there was a Library Palette. I really should have read the Help file years ago.

If it weren’t for point number one, I’d have no reason to use Illustrator or InDesign whatsoever. FreeHand Help says it can do these things. Perhaps I’m not doing it right.

Things I know FreeHand can do but have forgotten
  • Chamfer corners
  • Use Illustrator plugins
Things I never knew FreeHand could do
  • Apply live effects to objects, such as manipulate appearance without physically changing the object, like the stack in 3DS Max
  • Set Master pages
  • Rename palettes
  • Natural freeform reshaping
Slowly, inevitably, the annoyance of Illustrator is being overcome. Click on an object. What is it? Open path, closed path, group, compound path, clipping path or, heaven forbid, a compound group of clipping paths? Who the fuck knows? According to Adobe, this information isn’t relevant anyway. Just keep bashing away at the keys and click the mouse LIKE you care.




Saturday 12 March 2016

Real terrains in 3DS Max:



Create a highly detailed and accurate real-world terrain in 3ds Max


To get real-world height map data, we use a site which collates global LIDAR data and processes this for you to create a height map image. The survey is highly detailed and sufficient to map areas to a resolution of 90m/pixel or 30m/pixel.

First a brief word about LIDAR and ALSM


(From Wikipedia) LIDAR is a surveying technology that measures distance by illuminating a target with a laser light. LIDAR is popularly used as a technology to make high-resolution maps , airborne laser swath mapping (ALSM) and laser altimetry.

It uses ultraviolet, visible or near-infrared light to image objects. It can target a wide range of materials, including non-metallic objects, rocks, rain, chemical compounds, aerosols, clouds and even single molecules. A narrow laser-beam can map physical features with very high resolutions; for example, an aircraft can map terrain at 30 cm resolution or better. The general public became aware of the accuracy and usefulness of lidar systems in 1971 during the Apollo 15 mission, when astronauts used a laser altimeter to map the surface of the moon.

Now let’s get a real-world map to play with


Visit http://opentopo.sdsc.edu/datasetsand you’re greeted with a map. Click ‘Select Region’ and marquee the area of interest on the map. As you do so, the map will zoom to fit the marquee in the window.


The screen that greets the visitor


At the bottom of the page is a link, usually 'Shuttle Radar Topology (SRTM) Global'. Ignore that link and check the adjacent buttons marked ‘30m’ and ‘90m’, and from this you can choose your base resolution required. Click either 30m or 90m buttons and the map changes again.



Select Region brings up a global map with LIDAR coverage indicated.



Select Region again to hone in on your area of interest.
Click 30m or 90m buttons bottom right to select the resolution.


Again, ‘Select Region’ to highlight the terrain you want. Continue in this manner until you’re happy, then scroll down thru the page to select your image type (GeoTIFF) and so on. Enter your email address without worry - you’ll only get one mail, and it’s to let you know your job is ready. So when done, hit SUBMIT.

GeoTIFF is just a .tif, it seems.

Download link is provided when processing is complete.


You’ll watch your job process and result in a downloadable tarball. Get the file, decompress it and presto - your image has arrived.

At this point you can reflect on how fortunate we are to have direct access to ranging data via a multi-wavelength laser mounted on a space shuttle in orbit. That’s quite stunning, I think.

Translating the image


At this point, obscure and obsolete software would decode the image for you, but I found a simple method of working it up in Photoshop. Here’s the method:

Open the file in Photoshop. Aside from the light points of urban centres, the image will be completely black. Choose Image -> Adjust -> Levels and move the white (highlight) slider on the input range from value 255 to value 2. 

Looks dark in there.

The height map is revealed!

Hit OK and you now have a height map ready to chuck into Max.

Creating the 3D terrain


Right, so in Max it’s pretty straightforward. Make a plane the same dimensions as your map, set the divisions to be around 350x350 (for 123K faces) or as you please. Add a displace modifier to the stack, load the bitmap into that modifier, adjust the strength of the extrusion and volia - you real-world terrain is formed.

Making the terrain pretty


At this point I create a diffuse map by capturing the map screens from Bing maps, which has an excellent satellite view capability. To get the image to be very high resolution, I’ll capture as many as 30 screens at 1920x1080 and tile them to yield a diffuse map of around 2 Gigapixels, which is usually more than what is required.

Bearing in mind the size of the height map in the displacement, a very large diffuse map may bring on a memory error, particularly if you’re running Windows on less than 16Gb RAM. My Win XP machine can work with 2 x 1.2 gigapixel images on 4Gb RAM, but it requires 8Gb if my plane has more than 250K faces. So you may have to balance the resolutions of the maps against the number of faces on the plane to squeeze a result out of anything other than a fairly beefy system - my i7 with 8Gb simply folds at the sight of the height map when it weighs in at 1.7 gigapixels, so I am compelled to either retreat to the XP system or scale down the maps. Of course, at those sizes, a jpeg is not available as a format option, and the best you can do is make use of a .tif with one (black) channel and LZW compression.

Height map of the British Isles.


The result


I downsampled the monstrous maps used to create the British Isles topographic map, which you can download from tf3dm.com. The 345Mb height image was a little overboard to try and upload, but I did include a 7000x5164 .tif with that model for the adventurous to try on. For the model itself a 2445x2970 jpeg held the relief detail on the mesh just fine.

Formats: .dwf .max .obj .fbx (and images .mtl .tif .jpg)

Title: British Isles LIDAR Topographic

Description: LIDAR ALSM topographic map with Earthstar diffuse map.
135200 faces, urban centres highlighted, 7000x5164 height map included

Tags: United, Kingdom, Great, Britain, Ireland, Wales, Scotland, Isles, Archipelago, Jersey, Gurnsey, Shetland, Orkney, LIDAR, ASLM, Satellite, UK, Islands, British, England, Anglo, Monarch, Commonwealth, Geographic, Britannia, Gaelic, Celtic, Atlantic, Channel

Rendered result.


That’s it. Easy!


Detail