Search found 625 matches

by Stonemonkey
Aug 11, 2020 9:50
Forum: Game Dev
Topic: Drawing a horizon in 3D
Replies: 6
Views: 1522

Re: Drawin a horizon in 3D

Are you using a z buffer? By background image do you mean something like a skybox?

Could something like a large square of 2 tris made for the ground plane but repositioned/rotated around Y each frame to be centred below the camera work?
by Stonemonkey
Aug 10, 2020 18:18
Forum: Projects
Topic: Attempt at an electron emulator (sort of)
Replies: 14
Views: 3311

Re: Attempt at an electron emulator (sort of)

I have to agree it was quite a crippled system, probably one of the reasons I want to see if my rendering idea can be made to work on it, it'll be a challenge.
by Stonemonkey
Aug 09, 2020 22:38
Forum: Projects
Topic: Attempt at an electron emulator (sort of)
Replies: 14
Views: 3311

Re: Attempt at an electron emulator (sort of)

Thanks, yes, much nicer. Edited the code above to use that now.
by Stonemonkey
Aug 09, 2020 22:04
Forum: Projects
Topic: Attempt at an electron emulator (sort of)
Replies: 14
Views: 3311

Re: Attempt at an electron emulator (sort of)

This is a simple example in FB of a rendering method I came up with, I don't see it having much use these days but i'm attempting to write it for the old Electron. Arrow keys = left/right/forward type gfx_buffer wwidth as long height as long pixels as ulong ptr z as single ptr c as ulong ptr end typ...
by Stonemonkey
Aug 08, 2020 15:30
Forum: Beginners
Topic: Stuck writing a simple bit toggle routine
Replies: 19
Views: 2505

Re: Stuck writing a simple bit toggle routine

Looks like you have other subs for setting and clearing flags too.

Code: Select all

#define tog_flag(flag_,bit_) flag xor=1 shl bit_
#define set_flag(flag_,bit_) flag_ or=1 shl bit_
#define clr_flag(flag_,bit_) flag_ and=&hfffffffe shl bit_
by Stonemonkey
Aug 08, 2020 15:08
Forum: General
Topic: Squares
Replies: 8041
Views: 774304

Re: Squares

You should work on the assumption that everything you discover or think of, has been invented earlier by someone else. I invented a rendering method some time ago (at least in all my time obsessed with software rendering I've never encountered it), the results are similar to early Doom type games s...
by Stonemonkey
Jul 12, 2020 9:12
Forum: Projects
Topic: Attempt at an electron emulator (sort of)
Replies: 14
Views: 3311

Re: Attempt at an electron emulator (sort of)

Hi Paul, thanks for the suggestions. Language wise I was thinking of sticking mostly to the ASM possibly with some sort of additional way to deal with data structures, function calling and loops but that's not really high on my list and I'll just see what comes up as I go on with just an assembler t...
by Stonemonkey
Jul 11, 2020 22:25
Forum: Projects
Topic: Attempt at an electron emulator (sort of)
Replies: 14
Views: 3311

Attempt at an electron emulator (sort of)

This is a bit of a strange project, my first computer was an acorn electron and there's something i want to attempt to code on it. I don't have the machine any more but I have the electrem emulator. Unfortunately it's a bit of a clunky system to code on so my plan is to sort of emulate it although I...
by Stonemonkey
Jul 11, 2020 10:41
Forum: General
Topic: How do I generate a 2d wiremesh for a object?
Replies: 2
Views: 966

Re: How do I generate a 2d wiremesh for a object?

Come up with a data structure that contains the object data, something with a list of 3D vertices and a list of connections of pairs of those vertices for each line of the wireframe. The object will need a position and orientation in 3D space, so you'll need some sort of transformation matrix for th...
by Stonemonkey
Jan 05, 2020 19:36
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 23
Views: 18769

Re: fbvideoclass (Windows 32/64-bit)

I have something kind of working now (in 32bit) and the effect is quite good even though its all pretty rough so far. The lag to the screen is there but it's not too bad but there seems to be a slight lag between the cameras, so when triangulating head position if I move my head to one side it think...
by Stonemonkey
Jan 03, 2020 23:32
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 23
Views: 18769

Re: fbvideoclass (Windows 32/64-bit)

Thanks, and no worries, I can do it in 32 bit, it's just a test to see what sort of results I can get.
Got some coloured LEDs ordered, but now wondering if IR might be better, tried out an LED light and it results in bad reflection off screen, and with an IR pass filter it would be easier to track.
by Stonemonkey
Jan 03, 2020 19:13
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 23
Views: 18769

Re: fbvideoclass (Windows 32/64-bit)

@Joshy thanks, I've installed the 32 bit compiler now and im_capture is working on that, both streams and not too much lag but I'm not sure how my project will work with even a little lag, might just end up with motion sickness or something.
by Stonemonkey
Jan 03, 2020 3:33
Forum: General
Topic: Squares
Replies: 8041
Views: 774304

Re: Squares

i'm getting myself confused, i thought you were just trying to get the overloaded operator to work.
by Stonemonkey
Jan 03, 2020 3:32
Forum: General
Topic: Squares
Replies: 8041
Views: 774304

Re: Squares

sorry, it was working, ive edited the code in my post above.
by Stonemonkey
Jan 03, 2020 3:11
Forum: General
Topic: Squares
Replies: 8041
Views: 774304

Re: Squares

@albert, looks like it works, it was writing the value into i screen 19 type number i as integer orig as integer end type operator abs overload( byref n as number ) as integer n.orig = n.i return abs( n.i )' or n.i*sgn(n.i) end operator print "number" , "abs(number)" , "orig...