Advertisement

Results for "Author: robert rayment"

Java_Volume1 #96215
Knots

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.

Java_Volume1 #96735
Dither(Updated)

Dither by Robert Rayment. (Updated 26/11/02 Jump table used in ASM, 2-color saving corrected, improved scroll bars) This produces a 2-color bitmap from any original using a variety of methods and can be saved or printed. The program can be run in VB or VB+ASM. The structure of the asm file roughly follows that of the VB code and so should be useful for those new to assembler. The asm code is in a bin file but could be stored in a res file or made into a dll or a class (see buggy). See Notes.txt for more info. Zip 59KB, Win98 & exe tested on WinXP.

Java_Volume1 #97132
VTrack

VTrack2 by Robert Rayment This program uses floor ray-casting from the eye onto a color-height byte array (ie for simplicity avoiding separate height & color maps). The color-heights are then projected back to a front surface byte array which blitted to the screen using the API StretchDIBits. The program can be run with or without machine code and it runs for any screen size or color setting There is an automatic mode which goes round a track once with timing. In the VB environment this takes about 300 secs, VB EXE takes between 35 and 65 secs depending on Voxel heights and machine code bewteen 12 and 24 secs on my 400 MHz computer. Controls are the cursor keys to move forward, backward, turn to the left and turn to the right. With Shift the up & down arrows change the height of objects and Ctrl with the up & down arrows moves the viewer up & down. The SPACE bar brings the motion to an immediate halt. With the Pyramids a wall forms a boundary around the surface but with Plasmas the surface rolls over giving continuous motion. There is also collision detection based on the eye coords and the Voxel height in the vicinity on the floor surface. Different palettes can be selected and they take effect immediately. Changing the motion control or surface type requires the START button to be pressed. The casting routine is modified from that of D Brebner's of Unlimited Realities. In particular a spherical correction is applied and the scanning is from -ve to +ve angles placing the viewer in the middle of the screen. The FloorCASTER routine is commented in detail - the effects are very subtle. The machine code routines are in a bin file for use with CallWindowsProc but could easily be converted to a DLL. See also the recent prog from NLS, on PSC, which shows an alternative method for Voxels with 24-bit color. The ZIP file is 40 KB. (ADDITIONS Switch smoothing, plateau surface, collision flash, no collision in clouds).

Java_Volume1 #97405
Extractor

Extractor by Robert Rayment. Extracts a band of colors from a picture and shows them on a black & white picture which can be saved as a 1-bpp bmp mask. Also can extract rectangles or shapes plus a mask or resize to a rectangle. ASM can be toggled for large pictures. Win98 (exe WinXP) Zip 110 KB.

Java_Volume1 #97824
A Lotta Noise

"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.

Java_Volume1 #97843
Anti-aliasing & Rotation demo

"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.

Java_Volume1 #98559
Sphere (Updated)

Sphere by Robert Rayment. (Update with Latitude shift & Long for Byte Array) Demo of spherical wrap, rotate and tilt. Win98 (Zip 21 KB).

Java_Volume1 #98746
Knob-Thumb-wheels & Skins

Knob-Thumb-wheels & Skins Demo by Robert Rayment. An earlier version has been deleted. Three programs. The first develops and tests bmp strips from a starting image where, for knob wheels the central rotating part's radius and incremental angle can be set as well as, for thumb wheels, number of repeated images. The second program makes compressed True Color 2D arrays of images and masks using zlib.dll (version 1.1.4.0 from www.winimage.com/zlibdll/). For most efficient inflating zlib needs the original uncompressed size. For pictures the original width and height are needed and this is stored at the beginning of the compressed picture array, from which the uncompressed size can also be calculated. The third program uses zlib.dll to inflate the images from a resource file. This is a headerless form, skin, controls & fonts resizing demo using some standard methods (plus some WAV sounds also in the resource file) - a test bed for trying out things. There are 2 full skins but the demo also stores some bitmaps in image boxes, which then serve as buttons and source for tiled skinning. When compiled all the images are then contained within the exe. See Notes.txt. (exe tested on WinXP Home) Win98 Zip 76 KB.

1_2002 #107402
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!

1_2002 #107403
FindWords

Finds words starting with, containing, ending with, >

1_2002 #107404
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.

1_2002 #107405
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.

1_2002 #107406
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.

1_2002 #107407
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.

1_2002 #107408
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.

1_2002 #107409
PLAYOIDS

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

1_2002 #107410
Spinning Illusions

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.

1_2002 #107411
RRCalc

RRCalc by Robert Rayment: (UPDATE Now stays on top) Not another calculator I hear you say. But I have this one on my Office bar and find it easier to see and use than the MS Standard calc. It has the usual numbers and arithmetic operators plus square root, square, reciprocal and pi; memory clear, store, add and recall along with a window showing what's in memory. All the buttons can be operated with the mouse or the keyboard. The zip file is 31KB.

1_2002 #107412
BRRIC

BRRIC : (Corrected for 2-color icons) This program deals with pairs of icons (16x16 & 32x32), small bitmaps and 32x32 cursors. 2 to 24-bit colors can be used depending on the image and a large number of palettes can be loaded. Many image manipulation controls are included eg drawing tools, blurr, rotate, text etc. All the controls include Tool Tip Text. My personal preference is to have as many controls on-screen rather than buried in menus. This is not to everybody's taste and the screen will look cluttered but is much quicker to use. Icons can be extracted from multiple icon files and the system icons from exe and dll files. Small 32x32 rectangles can be extracted from larger bitmaps. The use of a res file for bitmaps and binary data is demonstrated. All the files are visible and commented.

1_2002 #107413
Compare Files

Compare Files: This simply does a byte comparison of any two files and reports whether or not they are identical. Included is the excellent Sudhir Rokades Auto Control Resizer with his information.

Languages
Top Categories
Global Discovery