Advertisement

Results for "Author: robert rayment"

2002C #12103
EarthWaterFireAirLight

Elemental NASM.(UPDATE Now works on Win2000 and Probably WinNT) The zip file is ~ 26KB

2002C #12104
As(s)embler Plus VB Picture Processing Fun

As(s)embler Plus VB Picture Processing Fun: by Robert Rayment. 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.

2002C #12105
Crazy Mirrors

Crazy Mirrors by Robert Rayment. See Screen shot. This is very straighforward and I've left the interface simple so, if you have a mind to, you can easily add some crazy mirrors of your own, Or add your own save bmp if you want. A couple of bitmaps are included which is why the Zip file is 102 kb.

2002C #12106
Newton's Cradle and Metronome

Newton's Cradle & Metronome by Robert Rayment. Simulates the known movement of balls in an idealized Cradle with variable speed & improved timing for the Metronome. Two progs. Win98. Zip file 24 KB.

2002C #12107
Interactive Filter Design

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.

2002C #12108
Demo Spheroid Wrapping

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.

2002C #12109
Tunnels & Things

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). BTW please do not contaminate my progs with the prurient Option Explicit !! Zip file is 63KB.

2002C #12110
Linear transforms

Linear Transforms by Robert Rayment. This is maybe 'old hat' to some of you. It shows in pure VB, apart from loading bitmaps & set & get pixels, how to map a rectangular bitmap area onto a non-reeentrant quadrilateral, a circle, cylinder, right-circular cone and a sphere. I've stopped short of automating the shapes and saving the transfoms so you need to change the parameters in the code to get variations. Hopefully the comments are sufficient for you to do with it as you wish! Zip file 145KB (With some bitmaps).

2002C #12111
Spirals

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. Zip file 24 KB.

2002C #12112
A Dash Thru the Woods

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.

2002C #12113
NASM Editor, assembler & Tutorial

NASM Editor, assembler & Tutorial by Robert Rayment. (Version 3.4) 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.

2002C #12114
Simple reader for kjv.ini

Simple reader for kjv.ini by Robert Rayment. This may be of interest to those who want a simple but effective way of displaying large text files using simple VB. You will need to download Clint LaFever's kjv.ini (KJV BIBLE on PSC, I have his permission) and put it in the same folder as this prog. Basically the whole of the file is loaded into a string (most computers nowadays, can cope with this size of file) and an offset table built up to the Book, Chapter and Verse. 3 list boxes then take Book description and Chapter & Verse numbers enabling any Book, Chapter and all its Verses to be displayed quickly in a multi-line, scrollable text box. UPGRADE for Jude which has only 1 chapter -- whoops.

2002VB #20648
Machine code & more PicBox Games

Machine code & Picture Box Games by Robert Rayment: This shows some more demonstrations of machine code and picture boxes. Mixing, Blending, Greying, Scrolling, Color cycling, Shimmering, Darkening, Brightening and Rotating. All code fully commented - good fun!

2002VB #20649
FindWords

Finds words starting with, containing, ending with, >

2002VB #20650
Machine code(ADDITIONS)

Machine code: Demonstrates the use of machine code in VB using CallWindowProc (as put forward by Ulli). 7 pieces of code ending with code equivalent to the API CopyMemory. I've added some notes on using MASM32 as suggested by respondents. NB See later submissions for use of the freeware assembler NASM.

2002VB #20651
Machine code & Picture Boxes

Machine Code Picture box addressing: This show how to manipulate picture box images using direct machine code with CallWindowProc (see Ulli). This demonstration is a door to other image processing without using DirectX. Non-linear systems recent Alpha24 shows the DLL way.

2002VB #20652
RRPencil

I love pencil drawing and there's nothing to beat pencil and paper. On the computer the mouse never moves as easily as a pencil but mathematics does allow some types of drawing to be carried out much more quickly than would be possible by hand. This is a pencil drawing programme with 256 shades of grey. It has 21 drawing tools and a host of sub-tools all easily selected from on-screen toolbars. Many shaded shapes such as curved lines, tubes, cones etc can be drawn. All the standard picture formats can be loaded or added and re-positioned. Saving is either as a BMP or a JPG file. Any rectangular part of the picture can be saved. JPG saving and printing is accomplished by using a single exe, free-standing, freeware conversion program that takes a command line and is hence easily used in VB. The source and credits for this are included in the .zip file In addition to the tools there is a zoom facility, whole-picture scrolling, +, X & perspective hair-lines, settable brick & tile sizes, text with any font, size or angle, undo and two canvas sizes suitable for A4 paper. All the source files, including button bitmaps, are included. The .zip file is just over 1MB and the program is written for an 800x600 screen.

2002VB #20653
Brick Play

Brick Play by Robert Rayment. UPDATE: picture size handle added (idea from Loc Nyguyen's VB Paint). Produces a variety of brick patterns that can be saved as BMPs. Pure and simple VB apart from a bit of blitting and a touch of timing (Assembler Not Included). Zip file 10 Kb.

2002VB #20654
Jargon Generator

Jargon Generator by Robert Rayment. Pure VB apart from timing. Uses Windings font for buttons. Auto-resize controls on width only. Scrolling text in a picture box using arrays. Jargon.txt in application folder. Zip 6KB, Win98.

2002VB #20655
PLAYOIDS

PLAYOIDS Demonstrates rotatable spheres, ellipsoids, cylinders etc with and without perspective. Aspect ratio, perspective distance and animation variable on the fly.

Languages
Top Categories
Global Discovery