Recent Posts

Pages: [1] 2 3 ... 10
1
General Discussion / Re: How lighting works in the XCOM games
« Last post by pmprog on February 15, 2017, 12:10:20 pm »
There's a section in the video where he talks about a graphic he produced for an X-MEN game based on the character Storm (Starts at around 12 minutes). From the one image he loads several palettes (but retaining the image), and the differences are great. Yeah, I guess they're not "exactly" like Apoc, but using one image with multiple palettes to produce effects is practically the same
2
General Discussion / Re: How lighting works in the XCOM games
« Last post by JonnyH on February 14, 2017, 06:49:18 pm »
Interesting, I'll probably watch it this evening.

The older xcoms (UFO & TFTD) both used a weird index 'shift' to implement lighting too, but apoc doesn't happen to use that. Only interpolating the palette between day/twilight/night palettes in the city. In the battlescape itself I believe the palette is always static and no weird tricks played.

Which feels a bit of a shame, as the battles always appear to be during the day, no matter the clock.
3
General Discussion / How lighting works in the XCOM games
« Last post by pmprog on February 14, 2017, 10:02:06 am »
Well, the title is a bit misleading. This video isn't specifically about any of the XCOM games, it's also not specifically about "lighting". But if you've ever wondered how the city in Apoc translates from day to night and back (or even the globe in UFO:EU and TFTD), this gives you a pretty good detail of palette techniques used back in the days of DOS games and 8bit computers.

https://www.youtube.com/watch?v=aMcJ1Jvtef0
4
General Discussion / Re: Welcome to OpenApoc
« Last post by MangoTangerine on February 06, 2017, 05:34:11 pm »
Mango here.

This is looking to be an amazing project, and although I've only started in my basic programming class--I am an Information Systems student--I hope to help where I can as I develop my knowledge. On the side, I have some understanding of German from a class I attended last year. I look forward to pitching in.
5
Tools / Re: apoc'd
« Last post by jordos on January 10, 2017, 11:48:39 am »
Don't worry about it, no offense taken :)
6
Coding / Re: Battlescape progress and questions
« Last post by pmprog on January 04, 2017, 08:51:35 am »
Damn Istrebitel... I'm well behind in your battlescape work. Need to try and find some time and read most of this thread!
7
Tools / Re: apoc'd
« Last post by pmprog on January 04, 2017, 08:32:09 am »
Sorry jordos, and welcome. I don't get to spend as much time as I would like (hence why my name hasn't been listed on a github commit for a loooong time), so everything I do kind of a quickfire "pop in and pop out", which does mean I do misread/misjudge things.
8
Tools / Re: apoc'd
« Last post by jordos on December 28, 2016, 09:16:19 am »
Field sizes are defined in apoc'r.bas, where I do the actual reading of the data. Each read_... sub there contains a for loop like this
Code: [Select]
dim as ubyte btmp
for record=0 to sel3max
        posidata(record,0)=loc(mainfile(0))     'offset
        get #mainfile(0), ,btmp
        maindata(record,0)=btmp                 'main data
        'ideally these should get their own loop
        othrdata(0,0,0)=1                       'record length
        othrdata(0,0,1)=1                       'input modifier (1 = cycle up)
 ...
sel3max is the number of records
btmp is an unsigned byte, so the get operation reads one byte and puts it in the maindata array.
othrdata(0,0,0)=1 also defines the length of this field as one byte. This is later used for saving and also for showing the hex value in the editor.

So to change the length of a field you will have to change othrdata(0,X,0) and also use the proper variable in the get operation (byte/short/int/...)
When you change the length you will probably also need to add or remove existing fields. For this you need to change sel4max, which defines the number of fields. Then you remove or add a few gets, and review the misc_... sub to make sure the linktext and misctext references are still good.

Obviously this is not as trivial as it should be :)
9
Tools / Re: apoc'd
« Last post by Skin36 on December 27, 2016, 09:17:23 pm »
yet I could not understand how to specified field sizes
10
Tools / Re: apoc'd
« Last post by jordos on December 27, 2016, 10:12:16 am »
Great! If you have any questions, feel free to ask :)
Pages: [1] 2 3 ... 10

hogan outlet hogan outlet hogan outlet woolrich outlet hogan outlet woolrich outlet Nike Air Max Outlet Online replica ray ban outlet moncler outlet peuterey outlet giuseppe zanotti pas cher louboutin pas cher Zanotti Pas Cher nike air max pas cher Moncler Pas Cher cheap nike air max 90 louboutin outlet cheap nfl jerseys from china cheap jordans for sale louboutin pas cher air jordan pas cher lancel pas cher ralph lauren pas cher Sac Longchamp Pas cher ralph lauren pas cher