Friday, July 20, 2012

Natural written language software idea

 Inspired on the basis of this particular article...

Proposed list of 60 things journal publishers do
Saw mentions to Latex for publishing, is nice, open source, a bit more convenient as mentioned at site then creating documents then word for higher end scientific publications...granted my personal experience were a couple decades no doubt out of date and at the mere undergraduate level in so far as in slaving over publishable formulation, I spent more time then writing formulas (some several hours) relative to the same time that could have been spent writing them out (likely an hour at best).
Tried latex briefly, I liked it since, there were short hand type methods (e.g. "/Theta" for the Greek letter theta) for writing formulation, sparing a writer some headache in typing formula.

http://www.latex-project.org/

Picked up some Cambridge Super string publication from then Greene and company published entirely in LaTex, nice looking book in any event. 

I would think though the most optimal...if it could ever developed on the open source wish list were a translator that could turn human handwriting into unicode which could then code this for LaTex.  It would probably optimize time spent writing formulation, since a writer would only have to literally write the symbol and neither search for local linguistic translated equivalents with additional symbol tags to be added, or have to scroll through a series of slow and encumbering windows to hunt and peck a given symbol.  Sort of like other commercial software that I've seen floating around these days but able to understand natural written language. 


Thursday, July 12, 2012

Working some on ogre today again.

Some tidbits here had a compiler error popping up namely:

1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Some unusual aspects about this error here:  Thought to double check the Ogre Visual Studio application wizard's default configuration settings for linking libraries and what not.  Apparently while I get the same error manually setting up Visual studio for building, I can build successfully by disabling Configuration Settings > Linker > General > Incremental Linking > No, but apparently another setting with the Ogre wizards default is still causing a persisting conflict leading to the link error above, or in other words disabling Incremental Linking doesn't resolve this problem with the Ogre Application wizard but works with a manual application configuration of a new WIN32 empty project setup. 

Blender 2.6 to Ogre mesh exporter

Installed this today, managed to import a mesh somewhat here.  Doesn't look so good at the moment, but basic tutorial provides one with working method for importation of mesh and materials into blender. 

Blender work with Sand

Mesh face and vertex count much to high for game mesh and texture here (? possibly) but someday in the future may be found in textures and mesh game renderings.  Alternately it seems if one could create nice well contoured topology around the mesh design, it seems lower face vertex polys could be done without sacrificing resolution quality.

Lately the probably that I've encountered with textures is that tonal imbalances leads to more obvious tiling overlays which become problematic in rendering more with increasing perspective distances with such textures.  Likewise, depth and three dimensional mesh structures can disappear with high tonal variability in such textures.  The more obvious solution is to control this by working with more even tonal textures, and then attempting to mimic variable tonal structures where they would be commonplace and desired in the two dimensional texture rendering.  Thus, for example, if working with sand and attempting to create sand dunes, generally sand grains themselves may not from a perspective distance appear so highly varied, but as aggregated into structures (e.g., sand dunes) one may more likely encounter higher shadow tonal variations.  I found it much easier to create depth in the mesh structure in balance to displacement modifiers and normal maps, rather then color mapping structures like sand dunes.  In this case, I chose a marble effect which is actually a bit irregular and containing distortions providing irregularity in the structures of wind deformation patterns that might be found in sand dunes.  Overall liked the effective look of sand structure, while this neither apparently matches wind based deformation features that I were looking for, namely, where where consistent and prevailing winds would likely shape features in the same ways as opposed to creating patterns of turbulent distortions found below.  Likewise, joins on channels are not found owing to the type of displacement modifier used. 



Tuesday, July 10, 2012

DirectX 9 versus DirectX 10 legacy issues

So having implemented in Blender an data exporter add on which readily converted to a mesh/textures/materials exporter and thinking this might work for DirectX 10, while a promising link here would aid in importing mesh data.  First searched for functions like D3DXLoadMeshFromX (which were a DirectX 9 supported function), but I managed to come up with nothing here, but I did manage to find out that DirectX 10 apparently no longer supports the .X file format for mesh object importation.  Apparently there is a work around, however, that utilizes the much dreaded Autodesk format (dreaded for noob developers or those with less development resources here).  In any event, may look into creating a custom importation class for data, but not really sure.
http://forums.create.msdn.com/forums/p/106138/626005.aspx 

Saturday, July 7, 2012

C++ DirectX, OpenGl, OpenCl, and so forth noob crash course

   So I thought a primer on OpenGl in C/C++  would be easy based upon tutorials.  Turns out not so easy or nice.  At least some examples written in older framework/binding stuff (e.g., glaux, glut, and others).  While openGl, or Gl and Glu headers provided natively here.  Unfortunately examples might be outdated relative to present stuff furnished by Microsoft.  Then trying to learn how to link libraries and what not.  I have to say C++  std::map containers look more pythonic then ever in terms of implementation which is nice.  Easy to remember, compact coding, noticed older implementations in a way old C++ book of mine has a much long winded speak to do the same thing I believe.  I was tempted here to go to Boost libraries for C++ for embedding code.  Because I love the python dictionary so much was looking to alternately try to create a custom dictionary class, one by overloading key and value typeobjects here (way un pythonic but is the work around to C++ rigid type fixations), and then coverting all data with multi map associations between key to key type values, similarly for value to value type pairs, and then cast converting data all to one type, which provides ostensibly one data type container virtually housing like a dictionary  multi type data, just have to re cast convert data back to its original form and overload returns on get functions so that the appropriate return type can be furnished.   The other way of handling this, seems to set up mulit type map containers and tracking in the deeper dimensional case scale of data in its given dimensional position.  Mostly my consideration of the equivalent dictionary written to C++ were a shallow form, however, and likely since I'm a enough a noob, neither allowing self nesting, until I could figure out something like a string cast conversion of such self (this) class.  Dictionaries in python are sort of the nice database utility like all in one (data type) container which I really love a lot...hmm, or then its just retraining one's thinking with respect to data handling which might not be so hard in C++ using the map container.  Also the other thing, that I might miss are the python list.  Of course, map and vectors in the standard library seem to be a closer equivalent to pythons list, since you hadn't need alloc() or malloc() to assign dynamic memory as in the case of an array whose size is yet to be formally determined?!  If you know your data's scaling in C++ already, arrays are easy and not much of a problem, but then it seems (in my rudimentary understanding) if you were say making sql calls to a given database with dynamically assigned memory, then you might easily run into problems with storage for a given return container.  Ideally I imagine an interface in C++ already has something like a multi map container setup, and at least in SQL work you could know ahead of time the type assignments for multi map in so far as data container storage.  Secondly with the multi map, the container's size could be dynamically assigned in so far as data storage (which is generally the case I believe with most python containers).

Finally figured out the purpose of the pointer here which always boggled my mind in the past.  One offered here that pointing to memory avoids having to recopy say object data sent, for example, to a function or inside a class and what not.  And when specific data were needed instead when the pointing object call needs reference values in memory, it could do so on an as needed basis.  Its seems logical and efficient enough in terms of memory usage.  If you were working with heavy data intensive projects, and you were worried about memory usage, seems important.  Nowadays though if you were working with small scaled projects, not heavy in data usage, pointers might seem a bit unnecessary in terms of computational efficiency, it seems there's more memory to go around these days then ever, and then generally it seems supposedly python is supposed to be fairly good at cleaning up on no longer used memory.  Pointers are generally absent in python lexicon.

As to working with Visual Studio which I haven't done in a long time, and when I did last, it were very very brief, so it should seem enough of a learning curve.  Python offers also natively a command line console, I haven't yet figured out a similar tool implementation in C++, although you can run scripts from console with C++ once compiled and built, not sure how to do the compilation and building from console. 

In any event, spent the better half of the day, trying to install or work with any number of stuff, like DirectX sdks, here despite my hardware not being an Nvidia based system (more so Intel graphics architecture), I were able to install Nvidia's SDK and run some examples.  OpenGl weren't so good in terms of getting working either by tutorial examples seen here, either attempting code examples with 2010 C++ libraries, or 2012 C++ libraries, or even working with supposedly appropriately linked libraries(?) packaged project files, not sure if this were because the project file examples were old enough and outdated relative to present libraries, or probably that I don't know what I am doing here so much.  :)  OpenCl were yet another fail install, having thought followed all but one pre requisite here, namely the Windows 3.1 installer fails to install.  While windows does have a patch (64 bit upgrade) coupled with the redistributable binary installer (32 bit), it seems the installer's installation was a no go, and Intel's package fails on the assertion of a missing .dll, presuming this could be owing to the missing installer version here but I am not so certain.  MSDN provides it seems tutorial information for getting started in development, included integrations for application development, there's even in the 2012 Visual studio idea, an object mesh handler for handling 3d objects, would alternately recommend Blender for in depth work and complex mesh object work here.  Hmm, anything else, not that I could think of...despite the supposed benefits of OpenGl here, I'd offer unless it can be a chore getting up and running even with supposedly easy tutorials guiding either implementation and installation.  OpenGl site itself sort of helps, but then I've been disappointed with the results.  Sure game engines like Ogre can possibly run on Linux, but the OpenGL interfaces don't properly render at times object...not sure if this were occurring because of the OpenGl packaging.  Sadly I wanted to say you might have better luck diving into WebGl before you were working decently with OpenGl from my experience if you were really new to programming there.  Hopefully in Linux OpenGl will improve more so, and hopefully in Windows...well hopefully I'll figure out some basics here.

Ending the ramble...  

Groundwater data from USGS Longitudinal data searches are not so good

'corp of engineers hydrological data missouri river'  Google search string...yields top ten entries any number of Congressional bills for one thing or other.

Then a USGS search for ground water data is pretty limited in the longitudinal sense in so far as instantaneous public access, going back at best to late -to - mid 90s.  Site disclaimer indicates that periodic recording of data were done so going back to 1965 with nothing mentioned before this date. 

Sort of amazing since one would wonder whether someone were in fact tracking much of this related information. 

Interest in this topic came up over a curiosity and interest driven by an argument.  Namely, concerning groundwater as pertaining to flooding in any given periodic context.  Corp of Engineers looked like a more promising look, but tired of the moment in the effort to filter through a lot of useless search results.  


Thursday, July 5, 2012

Lunopolis
In the Troll Hunter genre, X files stuff, can you say more. 
Sort of laughing at this movie with funny time travel sequence at the end.

No offense to Scientologist s rumor gossip crap gets old.

A long time

    The years have passed.  Life presents all the new challenges and stresses.   I am thinking of the Ship of Theseus and re-examining this ...