Results for "Author: robert rayment"
A Dash Through the Woods by Robert Rayment. UPDATE: Improved bitmap creation (Having been goaded by Paul) plus some simple sound. This prog is based on the triplet StretchDIBits, byte arrays and assembler (as with 'Tunnels & Things' which got 10 excellent votes) except I've left out the assembler which means that it MUST be compiled so that the array manipulations are again dealt with by machine code. The prog will only produce a large bitmap file of smaller trees from a starting bitmap ONCE so that later runs can load up the byte arrays quickly. The creation of the bit maps is fast enough now so you could leave out the save to disk if you wanted to. It shows some other uses for StretchDIBits and 8-bit color byte surfaces, which might be of interest to some of you. No assembler is used. Trees are then put onto a drawing surface starting with the smallest and ignoring a white surround (masks not needed). By keeping and adjusting the x-position, direction and type of tree it looks like moving through some woods. Timing (using GetTickCount) and hence speed, the number of tree starts and their spread are on an options menu. The left & right cursor moves a little car to the left & right (actually the trees move in the opposite direction) and the up & down cursor changes the speed. You have to try not to hit the trees. Collision detection is based on x-coords. It needs compiling to an EXE to get a decent speed. Don't expect DirectX quality but I think its fun! The Zip file is 54 KB.
Spirals by Robert Rayment. Chris and I were looking at some spirals and I've animated a few for your pleasure (if you like that kind of thing!). See 'Tunnels & Things' for the techniques. Win98 only. Zip file 24 KB.
Tunnels & Things by Robert Rayment: The simplicity of this appeals to me. Draw to a byte array and blit it to the form using StretchDIBits. The advantage of StretchDIBits is that it can take a pointer to the byte drawing surface and to a palette. It can be as close as VB gets to direct screen addressing similar to the old DOS Screen 13, only better. It is no competitor to DirectX but is very much simpler and pretty fast. The demonstration shows various tunnels, MMX scrolling, Plasma, Fire etc. Drawing is done using VB and animation using assembler (assembler doesn't have to be used but I prefer it). Win98 only. Zip file is 63KB.
File Format Viewer & Editor (FFVe) by Robert Rayment. (Update 6 Apr 2008) The purpose of this program is to be able to view any file, particularly binary files, in an easily read format, ie as characters, bytes, integers and longs as decimal or hex. Format changes are set out on a new line with different colors and can be saved in a template file. Also loading in a template file will automatically parse the display. Numbers or characters can be editted and the new file saved. There is unlimited undo. Search & Mark, Goto and Highlighting is included. The displayed page can be printed and placing a shortcut of the EXE in the Windows SendTo folder will enable any file to be sent to this program or dropped onto a DeskTop shortcut. Some simple samples (made with this program) for ico, cur, bmp, gif, png, jpeg and RIFF palette files are included. There is a DEMO button to show the main functions... __________________________________________________ Update 6 Apr:...Added variation to Slider, see screenshot. Plus a few other tweaks, see Form1. __________________________________________________ Upgrade 5 Apr:...1..Added ASCII Panel..2..Added Animated navigation..3..Added Slider for large files. __________________________________________________ (Update 1 Apr:.. Correct a zero divide error and allow for line numbers >= 10,000,000)...(Update 31 Mar:..Extended for higher screen resolutions). See Form1 for other changes. Zip 92KB.
Mini-Fractal Painter by Robert Rayment. (Correction for no drive) (Additions: Faster string-byte handling + DrawWidth) The starting point for this was Loreno Heer's LSystems prog on PSC, where the VB6 Replace function is used to develop the LSys strings. The trees' & plants' size, complexity, color & orientation can be varied. See screen shot which was made in just a few seconds. This prog could easily be extended to include other functions (I've resisted doing that and have only included those necessary to produce a picture like the screenshot) or the methods could be added to an existing VB paint program. VB or ASM can be used to translate the LSys strings and draw to the screen. Win98, Zip 55KB.
Plasma Tunnels by Robert Rayment. (Now maximizable) VB+ASM. Win98 (see Plasma Worlds for other uses of plasmas) Zip 27KB
Spinning Illusions by Robert Rayment. (Small change, hopefully more stable on other OS than Win98) Just a bit of VB doodling, 8 shapes with odd effects. [ Shaped form & picbox, +/- rotation anti-alias rotation, VBASM, Res wav ]. Zip 100 KB, Win98.
Plasma Worlds by Robert Rayment. (Cylindrical tunnel added to ASM version)Two progs. One, pure VB (no APIs or OCXs) for making plasma screens that can be saved as a bmp, bit slow but adequate when compiled. Plasma uses a non-recursive routine on to any rectangle and can be wrapped for tiling. Graininess, scale & color palettes can be changed. The other prog is the same PLUS scrolling in 16 directions, color cycling, cylindrical, spherical & hyperbolic wrapping and fantasy landscape projections all with multiple controls - VB+APIs+ASM, much faster. Only tested on Win98, should be OK on ME & XP but some Win2K OSs have problems with this use of Assembler. Please let me know your OS if you find bugs. Zip 79KB.
Knots by Robert Rayment. Load knots, Save knots (*.knt files), Make a knot (colored cursor, + hairs, grid). Examples KNOTS.knt (20 knots drawn using this prog) & Hello.knt included. See also KnotsInfo.txt. Zip 21KB, Win98.
Shove H'Penny by Robert Rayment. (Updated for XP)An old English pub game. The full rules are applied including illegal moves - see help file. The hardest part was getting a reasonable collision between disks: a bit of distorted Newton plus blitting, constructive comments on this welcome. Win98, Zip file 56 kb.
"Anti-aliasing demo" by Robert Rayment. There are a few anti-aliasing progs on PSC. Mostly they are cleverly convoluted into several subs. I thought I'd stretch out the logic - makes it easier for me to understand and maybe for some of you.
"A Lotta Noise" by Robert Rayment: (UPDATE2 Cycle speed added) (UPDATE with faster linear Perlin & Marble) This is a demonstration of 32-bit StretchDIBits which can be run as VB code or VB + machine code. Perlin noise (Linear or Cosine-EASE), wood grain and marble surfaces can be designed on a picture box varying from 16x16 to 768x512 pixels. Color weighting, scales, wood and marble types, animated scales and color cyling can be done and the image saved, as a BMP, at any point. The prog can be run with any system color setting. A long integer graphic surface has the advantage in that it can more easily be dealt with using MMX. This demo is just the 'tip of the iceberg' but the method might be useful for designing textures for any application since the machine code is quite general and the bin file can be run locally. Zip file 38 kb.
As(s)embler Plus VB Picture Processing Fun: by Robert Rayment. (Updated for XP)I like to have everything at my finger tips as the screen shot shows. If you prefer the minimalist approach see the excellent filter prog by Manuel Santos ( I have used a modification of a couple of his filters and have included his bitmap). Stephan Swertvaegher's picture handling prog is great for ideas and delicate changes to pictures ( I haven't seen Kevin Gadd's prog but which I believe is based on a dll written in C). The ripple effect is based on Didar ul Alam's prog. My prog has some of their features but also includes scrolling, shifting, rotation, zooming (plus anti-alias rotation and zooming), rectangle extraction, resizing and crazy mirrors. Looping is also included which can cycle through changes until stopped. All but a couple of things are duplicated in mcode. For some effects this is only included for completeness but has a dramatic effect on others. The programmer is usually the last person to find all the errors so - Constructive comments welcome. Win98. Zip file 63 KB.
Newton's Cradle & Metronome by Robert Rayment. (UPDATE using QueryPer... API) Simulates the known movement of balls in an idealized Cradle with variable speed & improved timing for the Metronome. Two progs. Win98 & WinXP Zip file 24 KB.
A PinBall Demo by Robert Rayment. UPDATED for XP, wayward pixels killed, scoring and ball capture improved. See notes in the Form. Zip file 116 Kb.
Demo Spheroid Wrapping by Robert Rayment. This takes any bitmap & wraps it around a sphere. This can then be moved, rotated and magnified. The prog can be run with VB or machine code. Controls are keys only for this demo. Win 98 Zip file 85 KB.
Interactive Filter Design by Robert Rayment. IMPROVED: Input, VB or ASM, some user filters by Malcom Ferris(NZ) included in a *.ufi file. I was in two minds about submitting this since it is really for my own use. Included are some 3x3 filters from Unlimited Realities and Manuel Santos. With this prog filters can be up to 5x5. What would interest me is whether anyone can find designs that are significantly different from the 3x3 filters with the filter formula I've used. Win98, Zip file 72KB.
NASM Editor, assembler & Tutorial by Robert Rayment. (Version 3.5) This is an MDI RTB editor specifically for creating and producing pure machine code and DLLs for use with VB. I've written it because nearly all the refs on the Web are for DOS-asm, C-asm and All asm Windows progs. These are mostly confusing and none of it is needed to write useful VB-asm progs. nasmw.exe is needed to make full use of this package (Latest Web refs for NASM are given (NB Can also be obtained from A1VBCODE.com)). In the pack there is a Help file (make sure to read Requirements about the placement of nasmw.exe and other progs), a Tutor file and a crib for all the NASM mnemonics. Bin files ( called in VB using CallWindowProc) and DLL files can be created with temporary files to clear errors and then permanent files. Starter stub files for Bins and DLLs are menued. There are also 5 Bin examples and 7 DLLs showing a variety of ways that these can be written, in particular the NASM syntax. Reference code for the editor was taken from all over the place. If you're a beginner there's still a lot of work to do before you can write useful asm progs but, hopefully, this will get you over the first hurdles. Good luck! Win98, Zip 120KB.
MMX Crib by Robert Rayment. (Updated 6 Mar 2006, tidy-up & added snippets) For those interested in mixing VB & assembler. Demonstrates all the MMX instructions plus a few snippets. Win98 (exe WinXP) Zip 18 KB.
Sphere by Robert Rayment. (Update with Latitude shift & Long for Byte Array) Demo of spherical wrap, rotate and tilt. Win98 (Zip 21 KB).