10.03.2019 - Round 1 results of our "A Love Letter For FreeBASIC" game dev competition have been published. Please be sure to check the results thread: http://games.freebasic.net/forum/index.php?topic=629.0. Don't forget that the competition is continuing with a round 2, lasting till 29th of April, 300 USD first prize. Stay tuned!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ecxjoe

Pages: 1 ... 4 5 [6]
76
Programming / Re: 3D rendering (software)
« on: May 02, 2010, 09:28:41 AM »
I've written a textured triangle function before. All you need to make sense of is interpolation, scaling textures onto arbitrary-sized surfaces. If you can do this with rectangles (such as sprites), then you can do it with triangles.

For a sprite (psuedo code):

Code: [Select]
scalex = renderW / spriteW: scaley = renderH / spriteH
FOR y = 0 TO renderH-1
    FOR x = 0 TO renderW-1
        PSET (x, y), sprite(x*scalex, y*scaleY)
    NEXT x
NEXT y

If you can make sense of that, then you can apply the same thing to a triangle algorithm. Though it's a little more complicated, because a triangle as varying lengths of width, so as you move down the triangle you have to recalculate a new horizontal scale for each line of the triangle you draw. Once you get that going then it's not too hard to work out the other quirks.

77
Work In Progress / What have I been wasting time on?
« on: April 30, 2010, 09:08:27 PM »
Sprite Editor



Inspired by PixelPlus 256.
Supports 320x200 to 1024x768+ resolutions.
32bit color.
Can switch between 16 different palette maps.
It is still early in development.
Functions currently implemented:
- Brush and paint tools.
- Zoom and pan.
- Palette color-picker.
- Adding/browsing sprites

Still much to work on. I'm currently working on the selection box and cut/copy/paste tools.


Toadman 3



Very early in development.
Plans for finished product:
- 640x480 graphics
- One player campaign (progress through matches, similar to Quake 3)
- Two player split-screen
- Death matches against AI opponents
- Other match modes (such as obstacle courses and a variation of steal the flag)



More to come!

78
General Discussion / To Whom It May Concern
« on: April 30, 2010, 08:05:17 PM »
Hello.

Pages: 1 ... 4 5 [6]