pouët.net

Go to bottom

Demoscene stuff in Matlab/Octave?

category: code [glöplog]
 
I've had to do a ton of code in Octave for work. I'm not exactly a brilliant coder, but FWIW I know the language fairly well now.

I'm wondering if anyone has tried some demoscene stuff or demo-ish effects in it. Obviously what you can do in terms of output is fairly limited - realtime graphics can be done, but not exactly in the traditional way. It's used all over in sound processing, but again I'm not sure if sound *output* is possible. Obviously the vector maths functions are extremely powerful for stuff like 3D transformations and number crunching; it's gonna be slow no matter what you do though.

Anyone have an example of something cool done in it?
added on the 2018-08-18 04:46:20 by jmph jmph
I don't recall any but wouldn't be surprised. There has at least been a demo made with IDL so why not octave/matlab :D
added on the 2018-08-18 09:21:21 by waffle waffle
jmph: I've used octave to debug shaders - implement the same algorithm as in glsl and plot all the internal state :) . Never tried real-time, though.
added on the 2018-08-19 03:41:50 by cxw cxw
Hi, just noticed this old thread; I'd like to get to know other Matlab coders around! We made a demoscene product with Matlab and here's the result: https://www.pouet.net/prod.php?which=83691

Getting good-looking real-time visuals is the hard-part for me; if anyone has any neat ideas, I'd like to learn.
added on the 2020-01-21 17:44:34 by pestis pestis
That's pretty neat! Well done. I agree with the comments, love the early 2000s Replay style.

Wonder if it runs on Octave? Going to have to try that out.

I don't have to use Octave/Matlab for work anymore ... which gives a bit more incentive to use it for fun. ;)
added on the 2020-01-23 01:55:54 by jmph jmph
About running on Octave: zebrain uses the example data that ships with Matlab; I checked that the data has been around at least ~ 10 years, so most likely won't disappear for some time (specifically: trimesh3d.mat, mri.mat, and mridata.mat). So unless Octave has replicated these...

Even with these datasets, I have hard time believing that Octave has 1-1 implemented all the dark corners of the graphics API (e.g. it relies on alpha blending and depth peeling to render things correctly). And it seems that Octave audioplayer does not even return the current sample time, forcing the use of simple time-based syncing that is most likely to be off.

Finally, the Matlab code obfuscating system (pcode) is proprietary, so the compressed version definitely won't run. Pcode is pwned though, if you do a little Googling :)

In short, probably doable, if you really try, but it is probably going to be a serious headache.
added on the 2020-01-23 07:47:45 by pestis pestis
added on the 2021-03-24 18:59:32 by 100bit 100bit

login

Go to top