pouët.net

python programming

category: general [glöplog]
hi, im new.

do any sceners here use python to code demos or intros?
i heard limp ninja, currently domination the xbox scene, use python for scripting their demos.

i guess you can't really use python for anything else than that.
added on the 2004-03-19 15:59:36 by skrebbel skrebbel
But you can use Pyrex even for performance critical section, or so i hear.
added on the 2004-03-19 17:49:37 by eye eye
Python is ghey - you have been warned.

How about PHP?
added on the 2004-03-19 20:30:02 by Stelthzje Stelthzje

Python is a good embedded language, but for demoscene stuff where you only want it to handle timing of asyncronous events and stuff, Io (www.iolanguage.com) is leaner and cleaner. Syntax is cryptic at first but elegant once figured out.

added on the 2004-03-20 13:17:58 by rabit rabit
Scripting in general can be useful to test new effect ideas.
("rapid prototyping")
If you write a "c" or "asm" backend that handles the pixel-crunching the demo will run quite fast.
I recommend tkscript ;), since the c++ calls are real
fast ("only" 30% slower than visual c++6)

-- python is nice, too. You may also want to look at "lua".
added on the 2004-03-20 16:11:53 by xyz xyz
I actually though about using Python until my ass would hurt, but no, it simply doesn't make much sense. Even "scripting" is better done with something like AINC's editor or Demoniac.
added on the 2004-03-20 18:10:08 by eye eye
python is very cool... but it's not for demos - the demoscene language is called assembly :))
added on the 2004-03-20 21:41:46 by blala blala
and demos are written in C/C++
added on the 2004-03-20 23:13:25 by Gargaj Gargaj

Do demo coders touch assembly code anymore? Even optimized code isn't important since the new GPUs do so much of the work faster.. The only area where assembly would be a clear advantage is in a 64k or 4k demo...
added on the 2004-03-22 04:17:59 by rabit rabit
Assembly is used yes. Optimization makes sense in many cases. Python can help as a tool. Do what the fuck you want to and stop leaving projects unfinished.

Oh, wait, that last one is for me. Shit.
Ohyeah, we used Python in our xbox demos. Python is really easy to embed and extend. If you are too lazy to write your own C/C++ function/class wrappers you can let swig (www.swig.org) do that for you.
added on the 2004-03-22 10:56:23 by bruce bruce
Do demo coders touch assembly code anymore?

some coders do, others dont. to be honest, most coders dont - but you know the saying: shit is very cool, since 10000000000 flies can't go wrong...

and of course, you can't make a decent 4k without assembly.

Even optimized code isn't important since the new GPUs do so much of the work faster..

bullshit. cpu is cpu, and gpu is gpu. they are designed to do different things... and demos _should_ use both.
added on the 2004-03-22 11:44:13 by blala blala
I made my own scripting language.

But scripting languages are not for demos, since they tend to slow down the process. However i agree that they're good for prototyping stuff :-).
added on the 2004-03-22 18:21:35 by BadSector BadSector
Quote:
bullshit. cpu is cpu, and gpu is gpu. they are designed to do different things... and demos _should_ use both.


blala: Heh! You so totally miss my point it's not even funny. GPUs do exactly what has traditionally been done in software, and they keep getting more capable all the time. Most demoscene effects can be implemented entirely within an NVidia/ATI GPU now. Download the SDK shader examples from either company and you'll see some amazing stuff.

Quote:
But scripting languages are not for demos, since they tend to slow down the process. However i agree that they're good for prototyping stuff :-).


BadSector: Sure, but I don't think anyone is talking about coding an entire 3D engine in Perl.
added on the 2004-03-22 22:38:42 by rabit rabit
Even, at this University here is a group which reimplements known 2D visualisations as shaders, and they claim that with a top-notch Radeon card, they are running on average 17 (!!!) times faster than with a top-notch Pentium 4!!!
added on the 2004-03-22 23:28:02 by eye eye
You so totally miss my point it's not even funny. GPUs do exactly what has traditionally been done in software, and they keep getting more capable all the time.

gpu plays the role of the polyfiller of the old softrender demos. since the word 'demo' should _not_ mean '3d flyby', gpu won't do everything for you. of course these newgeneration gpus can do a few more thing (for example you can implement some 2d effects too), but there's still plenty of thing to do for the cpu...

Most demoscene effects can be implemented entirely within an NVidia/ATI GPU now.

most demoscene effects sucks :)

Download the SDK shader examples from either company and you'll see some amazing stuff.

give me a fucking pixelshader card and i will check them out. when half a year ago i ugraded from a 90mhz pentium to some machine i considered kinda up-to-date (and thus got again involved with the scene) i downloaded all those examples that worked on my shitty gf4mx btw. not everybody lives in a country where you can buy the latest gfxcard every two months...

and no; it's you who totally miss my point, sorry.
added on the 2004-03-22 23:37:47 by blala blala
i live in a wonderful country and buy the 2nd latest (and definately cheapest) GFX card every 2-3 years. I wish that or better to everyone.

I was standing a gf2mx no longer... but a Pentium 90??? Ouch Ouch Ouch Ouch!
added on the 2004-03-22 23:50:25 by eye eye
Quote:
gpu plays the role of the polyfiller of the old softrender demos. since the word 'demo' should _not_ mean '3d flyby', gpu won't do everything for you.


No, it won't wait for the ESCAPE key, but there is actual, serious research going on into using the GPU for stuff traditionally done with CPUs... See link below if you don't believe me.

http://www.gpgpu.org/

Quote:
and no; it's you who totally miss my point, sorry.


No problem. :)
added on the 2004-03-23 01:26:52 by rabit rabit
"gpu plays the role of the polyfiller of the old softrender demos."

omgwtf LOL
added on the 2004-03-23 01:29:52 by sagacity sagacity
ahahah :)
added on the 2004-03-23 08:10:34 by Gargaj Gargaj
Boy am I glad I gave up on this bullshit scene of "experts" :)
added on the 2004-03-23 08:53:44 by superplek superplek
Some funny statements in this thread, "and of course, you can't make a decent 4k without assembly" just being one of 'em. :)
added on the 2004-03-23 10:15:44 by tomaes tomaes

login