Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
vodkat
Jun 30, 2012



cannot legally be sold as vodka
what do I need to learn/do to make cool poo poo like this?

(ignore the ntf bollocks)

https://twitter.com/ezzzrrra/status/1383119319291330562?s=21

Adbot
ADBOT LOVES YOU

shoeberto
Jun 13, 2020

which way to the MACHINES?

vodkat posted:

what do I need to learn/do to make cool poo poo like this?

(ignore the ntf bollocks)

https://twitter.com/ezzzrrra/status/1383119319291330562?s=21

Shaders. GLSL if you wanna do something by directly interfacing with OpenGL (including WebGL) but also most popular game engines have some platform-agnostic way to write them.

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

Luigi Thirty posted:

I stuck a Proliant in my spare bedroom OP

this is so pro by the way I recommend everyone kneel before the alter of modular rackmount storage servers

I convinced her to get the ProLiant after getting my own and being massively impressed by what a relatively small amount of cash on eBay actually got me

get a DL380 Gen 8-10 with 12 LFF bays and just throw disks in it one after the other

put root on an SSD, put recovery on an SD card or USB key and install it internally, set up ILO, and see if you can actually make use of hundreds of GB of RAM

I serve swap files over NFS from a RAM disk to my retro machines and even a raspberry pi, lol

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

Fib posted:

I remember Vernor Vinge predicted this in the 90s in A Fire Upon The Deep or maybe A Deepness In The Sky, for video calls between starships

I think it’s A Fire Upon the Deep, the kinds of protocols and computing needed can’t run in the Slow Zone, only in the Beyond and Transcend

also it’s definitely going to be greedy loving humans that unleash a Blight

“hmm, this archive says that if we take it to the Transcend it’ll assist in our uplift, doesn’t seem suspicious at all, not least of which when talking about superintelligence”

Luigi Thirty
Apr 30, 2006

Emergency confection port.

having lots of fun with OpenVMS, my VAX workstation, and a graphics terminal atm

i customized LSE to my needs. I don’t like MMS very much (it’s very finicky) and there’s a freeware clone I should install to replace it

VMS supports modern stuff like git etc but not on VAX so I’m doing it the old fashioned way

Samuel L. ACKSYN
Feb 29, 2008


ughh drat it.


for a long while now i was having issues with my 3d printer. most stuff would print perfectly fine, but when i printed something with a larger footprint i would have adhesion issues and layer issues in certain areas on the model. i tried to figure out what was going on but it didn't have any problems with smaller things so i kinda assumed it was just a random adhesion issue or something

the printer is in another room and yesterday i was doing something to it while watching it go thru the auto bed leveling using the bltouch.



the bltouch was hitting the drat binder clip in the front. it was assuming the bed was massively unlevel in the front, and when i printed something large enough, it was trying to compensate for it, causing all of the issues i was having.


im a loving idiot.

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
that's an excellent debug story tho, no shame

evil_bunnY
Apr 2, 2003

Jonny 290 posted:

that's an excellent debug story tho, no shame
This. I would have never figured it out (and also felt like a gigantic moron).

Lutha Mahtin
Oct 10, 2010

Your brokebrain sin is absolved...go and shitpost no more!

Samuel L. ACKSYN posted:

the bltouch was hitting the drat binder clip in the front. it was assuming the bed was massively unlevel in the front, and when i printed something large enough, it was trying to compensate for it, causing all of the issues i was having.

im a loving idiot.

well its the binder clips fault for getting in the way :rolleyes:

Zlodo
Nov 25, 2006
i'm making a wow addon (this is the literal idiot project thread right) to manage macros and since i didn't want to display the editor when no macro is selected i figured i'd display the logo and version instead

i wanted to do something pretty but wow's graphic api for addons is pretty limited. but you can draw lines and i thought of playing around with marching squares and an old school demo fire effect and im pretty happy with how it turned out:

https://i.imgur.com/vvgHKpe.mp4

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
not much what's n'zoth with you

Corla Plankun
May 8, 2007

improve the lives of everyone

hell yeah, giving me vibes from the good old days of running everything i found on aol warez private rooms on my parents computer

hbag
Feb 13, 2021

speaking of warez i should probably get back to working on yosbbs

Pile Of Garbage
May 28, 2007



Zlodo posted:

i'm making a wow addon (this is the literal idiot project thread right) to manage macros and since i didn't want to display the editor when no macro is selected i figured i'd display the logo and version instead

i wanted to do something pretty but wow's graphic api for addons is pretty limited. but you can draw lines and i thought of playing around with marching squares and an old school demo fire effect and im pretty happy with how it turned out:

https://i.imgur.com/vvgHKpe.mp4

new wow keygen looks sick

You Am I
May 20, 2001

Me @ your poasting

Luigi Thirty posted:

my vt340 is from '89 and the vt420 i have is from '91, you can repair or replace everything in them but the CRT itself (unless you happen to have a supply of those somewhere)

It just gave that workplace a reason to replace them with computers as they were slowly phasing out that system

Zlodo
Nov 25, 2006

Corla Plankun posted:

hell yeah, giving me vibes from the good old days of running everything i found on aol warez private rooms on my parents computer

Pile Of Garbage posted:

new wow keygen looks sick

i know, Im actually considering adding some horrible chip tune and a scrolling text

Luigi Thirty
Apr 30, 2006

Emergency confection port.

Zlodo posted:

i'm making a wow addon (this is the literal idiot project thread right) to manage macros and since i didn't want to display the editor when no macro is selected i figured i'd display the logo and version instead

i wanted to do something pretty but wow's graphic api for addons is pretty limited. but you can draw lines and i thought of playing around with marching squares and an old school demo fire effect and im pretty happy with how it turned out:

https://i.imgur.com/vvgHKpe.mp4

Hell yeah, just needs chip tune arpeggios

I have a bunch of computer junk coming next week hell yeah. a Morrow Designs CP/M desktop computer, an old Altera CPLD kit, an AlphaServer DS10...

Luigi Thirty
Apr 30, 2006

Emergency confection port.

my alphaserver arrived and it owns

i had to swap the (dead) cdrom drive out of it but other than that it works perfectly. 617MHz 21264 CPU, 768MB of RAM (upgradable to 2GB), DDS3 tape drive, HP OEM 3dlabs video card







CDE!!!!!

i plopped in a hard drive and installed vms 8.4 plus all the compilers and software that come with the hobbyist package so i've got C, C++, COBOL, Fortran, Pascal, all the hits. also samba, git, and other stuff! and they have full toolchain integration with visual studio code now so i can write CUBE.F77 on my desktop

evil_bunnY
Apr 2, 2003

alphas loving own.

Cybernetic Vermin
Apr 18, 2005

man, 4430 people other than luigi30 actually developing for vms.

Sweevo
Nov 8, 2007

i sometimes throw cables away

i mean straight into the bin without spending 10+ years in the box of might-come-in-handy-someday first

im a fucking monster

iirc vms still has a few weird niche uses in obscure industries.

Luigi Thirty
Apr 30, 2006

Emergency confection port.

Sweevo posted:

iirc vms still has a few weird niche uses in obscure industries.

banks and medical, I think

unlike most of my weird projects this one could actually impress a future employer

You Am I
May 20, 2001

Me @ your poasting

Luigi Thirty posted:

my alphaserver arrived and it owns

i had to swap the (dead) cdrom drive out of it but other than that it works perfectly. 617MHz 21264 CPU, 768MB of RAM (upgradable to 2GB), DDS3 tape drive, HP OEM 3dlabs video card


I used to manage about 10 of those Compaq Alphaservers back around 2002-05. I still remember throwing them into eWaste as well...

Sweevo posted:

iirc vms still has a few weird niche uses in obscure industries.

My workplace finally got off their user account system that depended on VMS back in 2016 after nearly 40 years, and finally shutdown our last DEC branded server mid last year

r u ready to WALK
Sep 29, 2001

that day i finally got to dump all of the old HPUX servers they forced me to manage into the ewaste will probably remain the highlight of my entire working career forever

Luigi Thirty
Apr 30, 2006

Emergency confection port.

who likes cubes? I’ve got my library files so robust now that I was able to transplant the 3D projection stuff right from my Saturn game engine into a VMS application

just had to fix syntax for the older compiler and hook up the ReGIS renderer

https://twitter.com/LuigiThirty/status/1389117901026828292?s=20

Doc Block
Apr 15, 2003
Fun Shoe
tite af

hbag
Feb 13, 2021

cyoob

Lutha Mahtin
Oct 10, 2010

Your brokebrain sin is absolved...go and shitpost no more!

Luigi Thirty posted:

who likes cubes? I’ve got my library files so robust now that I was able to transplant the 3D projection stuff right from my Saturn game engine into a VMS application

all hail cubelib

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?
LuiGL

Spatial
Nov 15, 2007

did some work making realtime antialised thick polylines with zero overdraw. may as well do a writeup!

this is a thick polyline:


making one of these out of triangles with no overdraw is a severe pain in the rear end, so i gave up after a few hours. it's an infinity of unavoidable edge cases. and the lines will have transparency and sometimes gradients so any overdraw is a big no-no. so i thought, hey, GPUs are stupidly fast now so can't i just evaluate the entire polyline analytically per-pixel on the GPU? oh yeah!

inputs to the GPU:
- a quad (the bounding box of the polyline)
- points (the polyline segments)
- points count
- radius (line thickness)

first attempt:
- find the closest point out of all lines to the current draw position
- output pixel = 1.0 / distance
result: glowing laser beams :ok:


let's try that again:
- find the closest point out of all line segments to the current draw position
- output pixel = 1.0 / distance
result: a glowing polyline. yes!


now add a simple binary threshold using distance and radius:
result: thicc boy with rough edges


that aliasing though. it's gotta be smooth. instead of a binary threshold, make a smooth gradient between inside and outside by clamping between two thresholds 1 unit apart.
result: perfectly antialiased fatline


next is colour interpolation along the polyline. to do this we need a metric of how far the pixel is along the polyline. sounds tricky but it's not as bad as it sounds, since the fraction of how far along the segment a pixel is gets naturally produced by the line segment distance evaluation. the initial drawing of multiple lines was caused by not clamping this to [0,1].
fraction along the polyline rendered on top of the polyline as greyscale:


this looks pretty funky when moving. it's like a voronoi diagram or something. idk i'm not a mathman ok.
https://i.imgur.com/loXeUkL.mp4

now we can lerp between colours along the line. woo!:

hm. didn't i see this at your mom's house?


one problem with this: it's very slow when scaled up. it's okay for short lines with few points, but evaluating the distance for each pixel in that entire box is very time consuming and making it fullscreen with 256 points brings my gtx 1070 to its knees. but! this can be hugely optimised.

only the pixels which fall approximately on the polyline should be evaluated at all. and we can limit the evaluation of certain pixels using the stencil buffer. the stencil buffer acts as a configurable mask for further drawing to use. pixels which fail the stencil test don't execute the pixel shader at all.

first i'll add a debugging aid to show how many pixels the heavy-duty shader is touching. this shows as dithered red dots and represents the pixels which aren't stenciled out. starting point: drawing everything. mostly wasted effort as you can see by the ocean of red.


let's create a stencil of the basic outline using boxes expanded to the radius of the polyline plus a small tolerance value. this sets any covered pixels in the stencil buffer mask to 1 but doesn't draw anything visible. now with the stencil test enabled only for the masked area, MUCH fewer pixels are being touched and it runs wayyyy faster.


but we can do better! if we know the colour inside the line is going to be constant we can simply fill it with solid colour without evaluating any distances (and it works for transparency too). the fill is drawn with stencil buffer writes to zero, cutting out the inside of the mask. the approximation boxes are shrunk so just the corners and edges are left uncovered (for rounding and antialiasing to work). this time drawing will be left enabled so the fill gets drawn and the mask gets updated at the same time.


now hardly any pixels are going through the heavy duty shader. it's now outright cheap to draw these fancy lines. it could be improved more with some effort, e.g. using circles to stencil out even more pixels, and limiting the range of segments evaluated at certain points along the line, but that's good enough for me!

evil_bunnY
Apr 2, 2003

This is legit v interesting.

The Eyes Have It
Feb 10, 2008

Third Eye Sees All
...snookums
That was really cool and I agree, legit interesting.


Top shelf pixel touching is what I'm trying to say

spankmeister
Jun 15, 2008






Wow, that was an interesting read thanks!

quote:

- find the closest point out of all lines to the current draw position

- find the closest point out of all line segments to the current draw position

I'm trying to get my head around what you're saying here but I'm not getting it, could you explain this a bit more please?

I do get the difference between the lines and line segments, and how taking 1 over a distance causes that glow effect. I just don't get "the closest point out of all lines to the current draw position". Thanks!

spankmeister fucked around with this message at 07:42 on May 6, 2021

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.
Thanks for sharing, Spatial! It reminds me of this blog post about the rendering of infinite grids in UIs.

Luigi Thirty
Apr 30, 2006

Emergency confection port.

Nice!

my idiot project is proceeding apace

https://twitter.com/LuigiThirty/status/1390234503214469120?s=20

Spatial
Nov 15, 2007

spankmeister posted:

Wow, that was an interesting read thanks!


I'm trying to get my head around what you're saying here but I'm not getting it, could you explain this a bit more please?

I do get the difference between the lines and line segments, and how taking 1 over a distance causes that glow effect. I just don't get "the closest point out of all lines to the current draw position". Thanks!
yeah that is a bit vague lol. i should have explained that more since it's kinda key

each pixel needs to evaluate how close it is to the polyline. the inputs to this procedure are the pixel's position and the list of line segments. the shader iterates over each line segment, evaluating the distance to the pixel, keeping track of the lowest distance value it has found. this minimum distance is then used to define the boundary of the final shape together with the drawing radius.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!


cool regis cube, can you do a kathy lee one though? :haw:

Luigi Thirty
Apr 30, 2006

Emergency confection port.

peepsalot posted:

cool regis cube, can you do a kathy lee one though? :haw:

boo! get out!

making progress on getting my voodoo2 going in VMS

https://twitter.com/LuigiThirty/status/1390958675754471427?s=20

Selklubber
Jul 11, 2010
im working on a sql online course, finally managed to get multiple joins working together!
code:
SELECT DISTINCT title FROM movies
JOIN stars ON movies.id = stars.movie_id
JOIN people ON stars.person_id = people.id
JOIN ratings ON movies.id = ratings.movie_id
WHERE stars.person_id = (
    SELECT id FROM people
    WHERE name = "Chadwick Boseman")
ORDER BY rating desc
LIMIT 5;
code:
me@mban movies % cat 11.sql | sqlite3 movies.db
42|7.5
Black Panther|7.3
Marshall|7.2
Get on Up|6.9
Draft Day|6.8

Adbot
ADBOT LOVES YOU

Zaxxon
Feb 14, 2004

Wir Tanzen Mekanik
i made a synth

https://www.youtube.com/watch?v=9nL3C2CP40U

Zaxxon fucked around with this message at 08:44 on May 10, 2021

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply