Mini sfs tool

Tips for creating and manipulating planet textures for Celestia.
Avatar
Topic author
ILikeSaturn
Posts: 38
Joined: 28.09.2020
With us: 4 years 1 month

Mini sfs tool

Post #1by ILikeSaturn » 01.04.2021, 06:33

I compiled and ran the mini_sfs tool by JVV and ran it on the sample image he provided
1kc.tiff
1kc.tiff (4 MiB) Viewed 17333 times

In case preview is broken
1kc.png


anyway here is the compiled exe
mini.exe
(309.2 KiB) Downloaded 367 times

It was compiled in cygwin so you have to install cygwin
If you don't want the cygwin version (you need a dll for it to run) you can download the MinGW version at the bottom

MinGW version (compiled in 64 bit):
mini_sfs.exe
(285.53 KiB) Downloaded 412 times

32 bit version
mini_sfs32.exe
(278.21 KiB) Downloaded 392 times

If you want to use it in cmd make sure to put it in PATH.

To use it you need a .raw image file and a .hdr file for it to run.
And if you know to calculate the input values down there you can use those to make it look good.

and here's the help output
(mini is supposed to be mini_sfs)

Code: Select all

Usage:  mini inName inFmt sunElevAngle sunAzimAngle lamda iterNum -d initDemName outFmt outName
    inputs: inName      input image
            inFmt       input image file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
            sunElevAngle  sun elevation angle in decimal degree
            sunAzimAngle  sun azimuth angle in decimal degree
            lamda         tradeoff (regulation) parameter
                          between smoothness and residual(0.4-50)
            iterNum       iteration number (e.g. 50)
            [-d initDem]   the frequencies filtered out
            outFmt      output DEM file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
    output: outName        output DEM file
==============================================


I don't know how to calculate those inputs up there.
I ran the tool again but this time with a image of Dione which created this image:
1kced.png

(probably the reason why the image looks tiled is because I used gmic and gdal for the resizing stuff)
The source image
tethysthing.png
tethysthing.png (41.75 KiB) Viewed 17331 times

and this was the command

Code: Select all

mini.exe tethysthing.raw 2 35 95 2 5 2 tethys_dem

Like I said I don't know how to compute the input values, so I had to use the same values as the example image.
So make sure you don't use the same values as the example image, and maybe try to calculate the values. Or else the DEM will not look good.
ILikeSaturn Image
Currently working on Project VEAR.
My website: TinyURL.com/ILikeSaturn

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #2by trappistplanets » 02.04.2021, 13:39

hey i tried
the 32 bit version
but it won't work...
how do i fix this, as you can see i got the dll files it told me i was missing but i am getting this now and idk how to fix this
Attachments
Untitled.png
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
Topic author
ILikeSaturn
Posts: 38
Joined: 28.09.2020
With us: 4 years 1 month

Post #3by ILikeSaturn » 02.04.2021, 17:09

Where did you get the .dll files? Also please list your system specs, maybe something is incompatible there.
I will recompile the binaries so you don't need some .dlls.

Added after 9 minutes 21 seconds:
Okay, here is the static exe (compiled in 32 bit, also compatible with 64 bit):
mini_sfs.exe
(2.29 MiB) Downloaded 376 times

The file is big because the dlls are inside there.
Oh and make sure to install G'MIC and GDAL because the tool needs a .raw and .hdr file.
In order to use it you must use cmd or terminal
delete those .dlls and download the new one I compiled.
The result will be different if you install the windows version of G'MIC.
ILikeSaturn Image
Currently working on Project VEAR.
My website: TinyURL.com/ILikeSaturn

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #4by trappistplanets » 02.04.2021, 20:14

ILikeSaturn wrote:Okay, here is the static exe (compiled in 32 bit, also compatible with 64 bit):
still asking me for dll files

Added after 3 minutes 54 seconds:
ILikeSaturn wrote:Okay, here is the static exe (compiled in 32 bit, also compatible with 64 bit):
i gave it the 1 dll its asking for
and no error messages
but it opens somthing then it closes instantly (i think its code but idk what it is bc it's only there for like a second so i can't read it) and i am left with what looks like a CMD that i am unable to type in
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
Topic author
ILikeSaturn
Posts: 38
Joined: 28.09.2020
With us: 4 years 1 month

Post #5by ILikeSaturn » 02.04.2021, 21:11

If you click on it yes a cmd window will pop up but you have to use it with cmd open.
Heres the steps
1. Open cmd (right click to paste text)
2. Go to the exe's folder (cd "C:/Users/kids/Documents/SFS")
3. type this: mini_sfs.exe
4. you should see a help screen like this:

Code: Select all

Usage:  mini inName inFmt sunElevAngle sunAzimAngle lamda iterNum -d initDemName outFmt outName
    inputs: inName      input image
            inFmt       input image file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
            sunElevAngle  sun elevation angle in decimal degree
            sunAzimAngle  sun azimuth angle in decimal degree
            lamda         tradeoff (regulation) parameter
                          between smoothness and residual(0.4-50)
            iterNum       iteration number (e.g. 50)
            [-d initDem]   the frequencies filtered out
            outFmt      output DEM file format
                        (1=bsq,2=float,3=ascii,4=grid,5=las
    output: outName        output DEM file
==============================================


Since the static .exe doesn't work I will zip it with the .dlls from MinGW.
And to use it you must have a .raw and .hdr file. Ask JVV for that to help you.

Added after 4 minutes 11 seconds:
Zipped version with all the .dlls from MinGW, and a .bat that you can click on to see the help screen. Since you might have downloaded the dlls from the internet, download and unzip this, and then use it from cmd.
mini_sfs-bin.zip
(1.36 MiB) Downloaded 325 times

Like I said, if you want to use it you must use it from cmd/terminal.
ILikeSaturn Image
Currently working on Project VEAR.
My website: TinyURL.com/ILikeSaturn

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #6by trappistplanets » 02.04.2021, 21:48

i am still having struggle with it
is there any alt windows 7 32 bit programs that does the same job as SFS but not so complex stuff just to get it to work?
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #7by trappistplanets » 03.04.2021, 12:04

hey is it possible for you to compile one that doen't need CMD so i am not cluttering my tabs/task bar with open programs
because normaly i have atlease 2 file explorer pages, 2 chrome pages, gimp, and at times celestia open
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
Topic author
ILikeSaturn
Posts: 38
Joined: 28.09.2020
With us: 4 years 1 month

Post #8by ILikeSaturn » 03.04.2021, 19:42

hey is it possible for you to compile one that doen't need CMD so i am not cluttering my tabs/task bar with open programs
because normaly i have atlease 2 file explorer pages, 2 chrome pages, gimp, and at times celestia open

Unfortunately the program was a linux program, which uses the terminal. So for that you also have to use CMD, the windows equivalent of the linux terminal. If you're having problems using that, I can process some of the images for you.
ILikeSaturn Image
Currently working on Project VEAR.
My website: TinyURL.com/ILikeSaturn

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #9by trappistplanets » 03.04.2021, 21:44

ILikeSaturn wrote:Unfortunately the program was a linux program, which uses the terminal. So for that you also have to use CMD, the windows equivalent of the linux terminal. If you're having problems using that, I can process some of the images for you.
okay

if i ever need somthing processed i'll come to you
and do you have discord so i can just DM and talk to you there?
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #10by trappistplanets » 16.10.2021, 15:29

ILikeSaturn wrote:Unfortunately the program was a linux program, which uses the terminal. So for that you also have to use CMD, the windows equivalent of the linux terminal. If you're having problems using that, I can process some of the images for you.
what ccode do i put in the CMD to open SFS
sorry if this may be condidered nacroposting
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #11by SevenSpheres » 16.10.2021, 15:40

trappistplanets wrote:what [code] do i put in the CMD to open SFS

Scroll up a bit and you'll see.

ILikeSaturn wrote:1. Open cmd (right click to paste text)
2. Go to the exe's folder (cd "C:/Users/kids/Documents/SFS")
3. type this: mini_sfs.exe
4. you should see a help screen like this:
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #12by trappistplanets » 16.10.2021, 16:49

SevenSpheres wrote:4. you should see a help screen like this:
i opened my CMD and tried to open SFS but it does nothing other than open a 2nd cmd and close it a second after it opened

Added after 30 seconds:
onless i am misunderstanding or i missed something

Added after 3 minutes 47 seconds:
also tried typing
cd "C:\Users\kids\Documents\SFS"mini_sfs.exe in the CMD i opened and it says the below
Untitled.png
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #13by SevenSpheres » 16.10.2021, 21:19

trappistplanets wrote:also tried typing
cd "C:\Users\kids\Documents\SFS"mini_sfs.exe in the CMD i opened and it says the below

It's two commands. Type cd "C:/Users/kids/Documents/SFS", press Enter, type mini_sfs.exe, press Enter.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Post #14by John Van Vliet » 17.10.2021, 18:30

as above you need to " Change Directory" ( the "cd" command )
to the location that the program is in

but i though that windows had by default a " right- click" option to open the terminal in a folder
( this used to be a MS registry hack )

Avatar
trappistplanets
Posts: 639
Joined: 11.06.2020
Age: 17
With us: 4 years 5 months

Post #15by trappistplanets » 17.10.2021, 21:05

John Van Vliet wrote:but i though that windows had by default a " right- click" option to open the terminal in a folder
i am in, i gave a PM to ilikesaturn, i am wating for a responce, his responce time is very slow
There is a limit to how far we can travel into the stars.
Owner of "The Grand Voyage" addon series
Collaborating with Dangerous_safety for the still developing Cer system

Avatar
fyr02
Posts: 249
Joined: 19.04.2019
Age: 19
With us: 5 years 7 months
Location: San Diego, California (United States)

Post #16by fyr02 » 21.10.2021, 06:02

be patient - it takes some time for people to respond
Image

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Post #17by John Van Vliet » 22.10.2021, 01:25

trappistplanets

i was looking at the code for HyperionCV/ Cyclops
( you mentioned it on unmanedspaceflight.com)

for a MS Windows build you will need to install MinGW first
and use MinGW to build the program

If you really want to build this 12 year old program just let me know


Return to “Textures”