-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


[] 64k

, 02 2017 . 16:18 +


, ( ). . - , , 64k . (crack intro). , .

, , , . Guberniya. , , . , , , . , .



Windows: guberniya_final.zip (61.8 kB) ( AMD)

Guberniya


64k , Revision 2017. :

  • C++ OpenGL, dear imgui GUI
  • 62976 Windows, kkrunchy
  • , (raymarching)
  • 6
    • :)
  • ~8300 C++,
  • 4840 GLSL
  • ~350 git


, . , . Revision 2017, , . , .


. . ,

. , :)

: cce ( ), varko, noby, branch, msqrt goatman.


, - . , .

. , Half-Life 2:


. .


Half-Life 2: Raising the Bar

. Eldion Passageway .

, , . , :


. , . .

, , . . .


noby. , . , , .


, .

, . , , , .


branch. .


Pheromone (YouTube). OpenGL , , bin2h.


Visual Studio 2013, VS2015. :


Visual Studio 2015

- VS2015 , v120.


: , . .

, , CTRL+S:

// Listen to CTRL+S.
if (GetAsyncKeyState(VK_CONTROL) && GetAsyncKeyState('S'))
{
    // Wait for a while to let the file system finish the file write.
    if (system_get_millis() - last_load > 200) {
        Sleep(100);
        reloadShaders();
    }
    last_load = system_get_millis();
}

- , . - .

GNU Rocket


Ground Control, GNU Rocket. Rocket , TCP. . , , . . , .





, . GUI , .

, , . dear imgui .

, ( GUI).

    imgui::Begin("Postprocessing");
    imgui::SliderFloat("Bloom blur", &postproc_bloom_blur_steps, 1, 5);
    imgui::SliderFloat("Luminance", &postproc_luminance, 0.0, 1.0, "%.3f", 1.0);
    imgui::SliderFloat("Threshold", &postproc_threshold, 0.0, 1.0, "%.3f", 3.0);
    imgui::End();

:


.

.cpp, F6, . , .


. Tiny C Runtime Library Mike_V.

kkrunchy , . , C++, Rust, Object Pascal . , . , . !


, . , SSE /arch:IA32 ftol /QIfst, , FPU . , :

// set rounding mode to truncate
//  from http://www.musicdsp.org/showone.php?id=246
static short control_word;
static short control_word2;

inline void SetFloatingPointRoundingToTruncate()
{
    __asm
    {
        fstcw   control_word                // store fpu control word
        mov     dx, word ptr [control_word]
        or      dx, 0x0C00                  // rounding: truncate
        mov     control_word2, dx
        fldcw   control_word2               // load modfied control word
    }
}

benshoof.org.

POW

pow - __CIpow, . , ntdll.dll Wine , . , pow:

double __cdecl _CIpow(void) {
    // Load the values from registers to local variables.
    double b, p;
    __asm {
        fstp qword ptr p
        fstp qword ptr b
    }

    // Implementation: http://www.mindspring.com/~pfilandr/C/fs_math/fs_math.c
    return fs_pow(b, p);
}

, , , .

WinAPI


SDL , WinAPI . , :


, OpenGL, . . , , . Whole Program Optimization , - memcpy.


, , , hg_sdf. ( iq) . - ShaderToy, .

, , , -.


Unreal Engine 4 ( pdf ) GGX. , . , . , .


. , . .

- -- - . . , . . , .


.1 , , , iq. , ShaderToy. , msqrt .


.


branch, . . .

, . , , . . , . , Mercury ( ) .


() (). .

, behind elevated iq, 43. . ( 100), .


, . - , .


. .


. .


. .


, . .


- , , . .


B-52 . , . :


. .

. , - 3D-, - , . , : bomber_sdf.glsl.


. .



.

1- . . goatman.


.

-


- varko. :

  1. G-.
  2. .
  3. .
  4. N .
  5. .
  6. .
  7. FXAA (, mudlord).
  8. .
  9. - .

, . , .


. .

( DICE) . , . ( , ) . .




. DOF.


Rocket pp_index, . -:

vec3 cl = getFinalColor();

if (u_GradeId == 1) {
    cl.gb *= UV.y * 0.7;
    cl = pow(cl, vec3(1.1));
} else if (u_GradeId == 2) {
    cl.gb *= UV.y * 0.6;
    cl.g = 0.0+0.6*smoothstep(-0.05,0.9,cl.g*2.0);
    cl = 0.005+pow(cl, vec3(1.2))*1.5;
} /* etc.. */

, .


: . varko.



. .

. GPU . - , . ( ) . , - AMD.





.

512 , 128 . , . , , . GL_POINTs, , . , Half-Life 2.


64k VST-: . V2 Synthesizer farbrausch.

. - , , . , element/gesture 61%, branch -, paulstretched. 4k 64k.

Paulstretch


Paulstretch . , , Windows 98. , open source.


() (), Paulstretch Audacity. , ( ).

, , . , Kiss FFT. , $O(N^2)$ GPU. , , . GLSL , .


, - . : . MIDI2, . , kasparov elitegroup (YouTube) . 17 , ?

gm.dls Windows MIDI ( ) MilkyTracker XM. MS-DOS 90- .


MilkyTracker . , gm.dls

gm.dls , Roland 1996 . , , ! , , :




, ? , , , . , .


varko .





1. : https://mobile.twitter.com/iquilezles/status/863692824100782080 ^

2. MIDI , , Windows. , - DirectMusic API, . ^
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/330090/

:  

: [1] []
 

:
: 

: ( )

:

  URL