Posted by David in Code
This is a small sample of an OpenGL kaleidoscope I’m working on using the plasma code also posted on this site.
I’m currently struggling with texture mipmapping artifacts in OSX. Win32 versions seem to work (as shown) – although end results could be very driver dependent. I’ll post the code when I’m done.
No Comments »
Posted by David in Code
For a while now I’ve wanted to port my favourite plasma algorithm (which is the heart of my screensaver Angelicus) to Blitzmax. I’m happy to say I have finally done just that. You can download the code here: gibbongames.mod.
To get the code to run, unzip the download into the Blitzmax\mod folder. For reference, this is what the full path looks like on my XP installataion:
C:\Program Files\BlitzMax\mod\gibbongames.mod\plasma.mod
Open up Blitzmax and hit Ctrl-D to compile the module. Then open gibbongames.mod\plasma.mod\Examples\plasma.bmx and compile it to run the demo.
There’s lots of fun to be had playing with the various settings in the plasma.Create() call. So by all means experiment.
Windows users without Blitzmax can run this tiny demo program to see what I am talking about: plasma.zip.
Thanks to Michael Bevin for the C source.
Below is a flash port by Michael http://www.flashgameblog.at/blog-post/2009/12/02/plasma/ It chooses random plasma settings, not all of which look that great. Refresh page to see the variation.
6 Comments »
Posted by David in Code
Here’s another of my permanent reminder web sticky notes, covering how to set up a PostgreSQL database for Blitzmax in Windows.
• Your windows file system needs to be NTFS
• Download the latest PostgreSQL installer package
• Jump to this installer walk-through page
• Step through the walk-through. Choose the defaults in most cases. Make sure you write down all your settings!
My settings were:
Account name: postgres
domain: DAVIDDECAND6915
pass: account_sql_pass
port: 5432
UTF8 encoding for server and client
Localhost connections only (no remote connections)
superuser name: superuser_name
pass: superuser_pass
• Navigate to Control Panel/System/Advanced/Environment Variables and add the PostgreSQL bin location to the end of your PATH. Mine looked like this: ;C:\Program Files\PostgreSQL\8.3\bin
• Download Brucey’s BAH.Database and BAH.dbpostgreSQL.mod
• Place them in the folder as such: Blitzmax/mod/bah.mod/database.mod and Blitzmax/mod/bah.mod/dbpostgresql.mod
• Navigate to BlitzMax\mod\bah.mod\dbpostgresql.mod\lib and copy libpg.a and paste it in BlitzMax\lib
• Restart Windows to let the environment variables PATH settings take effect
• Load up and run the test files in BlitzMax\mod\bah.mod\dbpostgresql.mod\tests
• Edit the LoadDatabase call with your own databae specifics. My LoadDatabase call looked like this:
Local db:TDBConnection = LoadDatabase("POSTGRESQL", "postgres", "localhost", 5432, "superuser_name", "superuser_pass")
• Ctrl-D in Blitzmax to compile the new modules and then Compile and run the test.bmx file.
• If all is well, it should spit out something like:
DebugLog:1. Name = Alfred Aho
DebugLog: 2. Name = Brian Kernighan
DebugLog:3. Name = Peter Weinberger
NOTICE: CREATE TABLE/PRIMARY KEY well create implicit index "person_pkey" for table "person"
No Comments »