Author Topic: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC  (Read 5997 times)

0 Members and 1 Guest are viewing this topic.

Offline Ford_Prefect

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #15 on: January 21, 2023, 03:17:32 PM »
Oh wait, so those are voxel models? Converting them to vertexes and polygons will be fun challlenge then  :)
And yes, good job decoding it  ;b;

About dynamic music - it will be hard or impossible to copy exact algorithm, but sounds are there and I can improvise.

Not really sure the music is dynamic.  The .amb files have multiple tracks and really looked like midi at first glance other than the references to the sound files at the start.  I just never got around to finding a good library for changing the pitch and playing wav files before I lost interest.
« Last Edit: January 21, 2023, 03:35:07 PM by Ford_Prefect »

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #16 on: January 26, 2023, 09:22:20 AM »
Not really sure the music is dynamic.
If you go afk then after a while music stops playing. Then as soon as you move mouse - it continues. It also seem to depend on your situation (i.e. if you are at war or not). So it's at least a bit dynamic (but made from predefined pieces).

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #17 on: January 28, 2023, 12:47:37 PM »
For those not on discord - I updated README with more information and added possible 1.x+ and 2.x+ features, come have a look - https://github.com/afwbkbc/glsmac  8)
Current status: v0.1 is released, working on map functions now.

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #18 on: January 29, 2023, 01:01:05 AM »
Made some progress with maps  :) Water and rivers coming soon.
« Last Edit: January 29, 2023, 01:39:10 AM by afwbkbc »

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #19 on: January 30, 2023, 04:25:50 PM »
Added some water, it looks a bit different from SMAC but hopefully not too bad. Replicating exact SMAC water algorithm is too much effort, I'll focus on other things first.
Not the final version of water, it will be improved further, but for now I'll be focusing on reaching some playable state.

Online Buster's Uncle

  • In Buster's Orbit, I
  • Ascend
  • *
  • Posts: 49271
  • €440
  • View Inventory
  • Send /Gift
  • Because there are times when people just need a cute puppy  Soft kitty, warm kitty, little ball of fur  A WONDERFUL concept, Unity - & a 1-way trip that cost 400 trillion & 40 yrs.  
  • AC2 is my instrument, my heart, as I play my song.
  • Planet tales writer Smilie Artist Custom Faction Modder AC2 Wiki contributor Downloads Contributor
    • View Profile
    • My Custom Factions
    • Awards
Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #20 on: January 30, 2023, 05:18:57 PM »
-Design note:  GIFs.  .PCX is a pain to work with and .FLCs are impossible.  Do it all with .GIFs and modders will beat a path to your door.


-Also, a little leaderhead animation would then be feasible.

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #21 on: January 30, 2023, 05:55:43 PM »
-Design note:  GIFs.  .PCX is a pain to work with and .FLCs are impossible.  Do it all with .GIFs and modders will beat a path to your door.


-Also, a little leaderhead animation would then be feasible.

I know, when modding support is done it will accept any format, 32-bit color and different resolutions. For now I'm focusing on game itself.

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #22 on: January 31, 2023, 02:45:08 AM »
Added some light and shadows, looks better imo

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #23 on: January 31, 2023, 09:59:55 PM »
Fixed 'half-submerged tiles' problem. Still working on coasts, this isn't final look :)

Offline Vidsek

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #24 on: February 01, 2023, 01:14:36 AM »
  Step by step, better and better!  Can't wait to see how stable it is in gameplay  ;lol   I'm rooting for you, keep up the good work!
All this talk of fungus and worms makes me hungry...

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #25 on: February 01, 2023, 03:49:11 AM »
Better water, sea fungus, smoother map generation  :)

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #26 on: February 01, 2023, 03:51:55 AM »
Some 160x160 aswell :) ~2600FPS, map generation + loading takes around 3 seconds (release build)

Offline dino

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #27 on: February 01, 2023, 09:00:19 AM »
I wonder if it's feasible for a single person to complete such project in a reasonable timeframe, hopefully more than disassembling and recreating the original code 1:1 in C++ ;)

Anyway, impressive speed of progress, only smooth tile edges left to make land look almost like the original.

You should be able to lift some code from "thinker" mod like AI, or map generation, hope you guys are in contact.

Please consider for v1.0 an option for simultaneous turns in multiplayer like in Freeciv, turn times close to singleplayer makes all sillyness involved worth it.

Offline afwbkbc

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #28 on: February 01, 2023, 04:39:03 PM »
I wonder if it's feasible for a single person to complete such project in a reasonable timeframe, hopefully more than disassembling and recreating the original code 1:1 in C++ ;)

Anyway, impressive speed of progress, only smooth tile edges left to make land look almost like the original.

You should be able to lift some code from "thinker" mod like AI, or map generation, hope you guys are in contact.

Please consider for v1.0 an option for simultaneous turns in multiplayer like in Freeciv, turn times close to singleplayer makes all sillyness involved worth it.
Simultaneous turns is something that was in original SMAC, so of course they will be implemented :)
About "thinker" mod - actually I'm hoping it's author can merge stuff from it to GLSMAC once it's more mature (and has all necessary APIs etc)  ::) :) But I can probably do it myself, it's just that I'll be busy with other things first.

Coastlines is still work in progress, getting close :)
Also check this out - :) All map is actually in 3D, and water is transparent and you can see texture and objects on it's bottom like rockyness, monoliths (youtube screwed quality a bit tho so it's not visible there).

Offline dino

Re: GLSMAC - Open-source OpenGL/SDL2 remaster of SMAC
« Reply #29 on: February 01, 2023, 06:23:54 PM »
SMAC has simultaneous turns ? I didn't knew, lol, a way to reveal I've never played SMAC multi.

Do people here play over IP multi, or is it all PBEM ?

 

* User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
103 (32%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 314
AC2 Wiki Logo
-click pic for wik-

* Random quote

In one moment, Earth; in the next, Heaven.
~Academician Prokhor Zakharov 'For I Have Tasted the Fruit'

* Select your theme

*
Templates: 5: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Display (default), GenericControls (default).
Sub templates: 8: init, html_above, body_above, portamx_above, main, portamx_below, body_below, html_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 45 - 1228KB. (show)
Queries used: 39.

[Show Queries]