6741b30d790e2

6741b30d7a477
2 Guests are here.
 

Topic: SS1src: SS1 source code release
Page: « 1 [2] 3 4 »
Read 12049 times  

Re: SS1 source code release
6741b30d7abfe
There are some header files related to resource offsets. File header says they are created by RESTOOL.
I couldn't find RESTOOL in sources. :(
Re: SS1 source code release
6741b30d7ae09
https://player.twitch.tv/?channel=nothings2

Sean Barrett is going through the source right now.

6741b30d7b262dertseha

Re: SS1 source code release
6741b30d7b2b8
https://player.twitch.tv/?channel=nothings2

Sean Barrett is going through the source right now.
Is just closing down. It was interesting and had funny details in it as well.
Though I don't think I'll stay up to 1:30AM so often ;)
Re: SS1 source code release
6741b30d7b3e0
Yeah, I caught your message on discord too late. Fortunately the stream is still available. And here is Barrett's fork: https://github.com/nothings/shockmac/blob/master/README.md
Acknowledged by: dertseha

6741b30d7b673JosiahJack

Re: SS1 source code release
6741b30d7b6c3
There are some header files related to resource offsets. File header says they are created by RESTOOL.
I couldn't find RESTOOL in sources. :(
Resource.m and other tools are found in /Libraries, e.g. Libraries/RES/Source/ for the source to what appears to be a command line utility for pack and unpack of the .RES files.
Re: SS1 source code release
6741b30d7b7c0
Didn't find it.
There is also comment about RESOURCE.DOC that isn't in the sources.
Re: SS1 source code release
6741b30d7b936
It looks like the 3D graphics library was completely rewritten in C for the MAC port. The original was in ASM.

Descent seems to use the same (later version) graphics library.
For example Libraries/3D/Source/INTERP.C can be found in Descent sources

Edit:
Descent2 sources seem to have C port as well. Looks similar.
« Last Edit: 08. April 2018, 21:47:09 by Gawain »
Re: SS1 source code release
6741b30d7bab8
Descent2 sources seem to have C port as well. Looks similar.

same filename but more less complete different content, or do i compare the wrong files?
Re: SS1 source code release
6741b30d7bc02
Functionality is mostly the same (opcode based rendering).

About SS rendering:
There is a big function pointer table with all the graphic calls. There seems to be concept of "devices", and even mentions about 24bit rendering.
Adding new rasterizer implementation (Immediate OpenGL) could be possible with that.
If more modern approach is wanted rendering needs to be rewritten I think.

6741b30d7bd08dertseha

Re: SS1 source code release
6741b30d7bd56
Asked about which resources the source port is going to use, Stephen said
It will look like the Mac version
all the Mac assets are higher resolution as well!
Which will make many happy I guess - though the answer to my question which file format they are using is still pending. (I'm not talking about endianess, it's about the general file formats) Because if that's changed as well, I need to get my tools ready, stat.

6741b30d7be8dvoodoo47

Re: SS1 source code release
6741b30d7bedb
interesting - and a confirmation that we'll have work to do as some people will definitely want to play the pc cd version. no info on the renderer?
Re: SS1 source code release
6741b30d7c27d
If more modern approach is wanted rendering needs to be rewritten I think.
You'd just be writing to arrays instead of issuing (zillions of) draw calls. That shouldn't be much of a leap.
Re: SS1 source code release
6741b30d7c527
You'd just be writing to arrays instead of issuing (zillions of) draw calls. That shouldn't be much of a leap.

I have looked into the source code and it will be a lot of work.
Reimplementing the rasterizer phase (basically polygon tmap (and some non textured too) calls) is a lot less work.

Edit:
It think it may be possible emulate immediate mode by rewriting all of the index and vertex buffers every frame. But that propably won't have any benefits over immediate mode anyway, since you can use command buffers?
Re: SS1 source code release
6741b30d7c67b
I think UI rendering could be kept as it is (software).
But it might need some hacks to allow sensaround to work. I didn't look yet, but if it is just rendered on top of UI instead of inside UI canvas no hacks are needed.

More about 3D acceleration:
One of the problems with accelerated rasterizing is CLUT (color lookup table / palette).
That can of course be done with pixel shader.

Edit:
If I have understood correctly object picking still needs to use the software rendering. I don't think it uses physics engine (raycasting).
« Last Edit: 10. April 2018, 09:22:09 by Gawain »

6741b30d7c72evoodoo47

Re: SS1 source code release
6741b30d7c778
I wouldn't worry about sensaround too much, as mouselook pretty much obsoletes it. meaning, if it's something that won't work properly at first, then so be it.
Re: SS1 source code release
6741b30d7c876
Yes, I agree, its not very useful when playing with old controls either. It however does have effect on enemy spawns as they won't spawn behind you if sensaround is active.
But using it like that feels little bit like cheating anyway.

6741b30d7c9c1icemann

Re: SS1 source code release
6741b30d7cae2
Annoying that we get stuck with Mac assets. Yes I know their higher rez and all that. But to use SS2 as an example, I don't use rebirth as I prefer the vanilla models, whilst I do use SHTUP as that improves everything texture wise while still retaining the original look.

I'd prefer the same with SS1. Let me pick in the options or something which to use. This I want in the source port.
Re: SS1 source code release
6741b30d7cc83
I'm not happy that they force to use the "higher resolution" assets. It should be optional.
They really aren't just high resolution versions of the assets, they are shopped assets and some of them are not faithful to originals.

I hope they can return/fix the smoothing code that DOS version uses on sprites. Mac doesn't smooth them and sprites actually look a lot worse (low resolution) in Mac. Sprites are rendered four times bigger in DOS with multisampling (not interpolated, but there is some color shading going on).

There is of course technical reason (time/money reasons) for using the Mac assets:
The resource code has been butchered (no compression, top level file format has been changed to use apple own format, data seems to be indentical however, it is basically just wrapped differently.
UI code has been changed to support higher resolution images. It looks like old code is kept there, so it can be restored (and made so that you can use dos or mac versions)

6741b30d7cd32icemann

Re: SS1 source code release
6741b30d7cd85
Good to see that I'm not the only one of the opinion on the assets.

6741b30d7ce57voodoo47

Re: SS1 source code release
6741b30d7cea9
using the mac assets with a port based on the mac source is probably the easiest way of getting it work, so no surprise really.

pretty sure it will be possible to get the source port to load the pc cd data as well - the question is how much effort will be required to make it work.

6741b30d7d012dertseha

Re: SS1 source code release
6741b30d7d044
Your friendly Discord report here:
In the source-code chat there are two people independently porting the mac code to Intel platform (more as a hobby as I see it, they fully realize that an "official" source port is pending). One (named "Interrupt") got the renderer to work yesterday and posted screenshots.

This also brought Stephen on the plan, who finally invited the one person onto the Discord server who is doing the official source port (named "Axemelon").

Open for questions, Axemelon answered the following:
* The source port uses the mac resources, which were ported into the DOS .res files -- should be good for InkyBlackness, this makes the editor & tools compatible.
* As for OS, they said: "Windows-only for now. For the near future, hopefully we can get it working on other platforms as well." and "It was already running in Linux at some point, there's no reason it won't run again ;)"
Acknowledged by 2 members: Kolya, voodoo47

6741b30d7d0e8icemann

Re: SS1 source code release
6741b30d7d13a
Care to post these screenshots?

Good to hear that a porting over of the code to Windows is in progress.

6741b30d7d27adertseha

Re: SS1 source code release
6741b30d7d2cf
Screenshots, and the general endeavor, documented in separate topic.

I wanted to know how the release is progressing. Axemelon replied
I'm fixing some final issues and then I will be submitting the game for testing this week
When the source release itself will happen, and whether it will be parallel to the "binary" release, or staged, Axemelon couldn't say (directing to Stephen).

Back to you in the studio...
« Last Edit: 09. May 2018, 15:33:10 by dertseha »
Acknowledged by: voodoo47

6741b30d7d3b0dertseha

Re: SS1 source code release
6741b30d7d408
This bump to notify I've split Interrupt's work into a separate topic.
2 Guests are here.
We are all outlaws in the eyes of America.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6741b30d7deab