python programming
category: general [glöplog]
hi, im new.
do any sceners here use python to code demos or intros?
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.
i guess you can't really use python for anything else than that.
But you can use Pyrex even for performance critical section, or so i hear.
Python is ghey - you have been warned.
How about PHP?
How about PHP?
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.
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".
("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".
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.
python is very cool... but it's not for demos - the demoscene language is called assembly :))
and demos are written in C/C++
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...
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.
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.
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.
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.
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 :-).
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 :-).
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.
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!!!
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.
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.
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!
I was standing a gf2mx no longer... but a Pentium 90??? Ouch Ouch Ouch Ouch!
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. :)
"gpu plays the role of the polyfiller of the old softrender demos."
omgwtf LOL
omgwtf LOL
ahahah :)
Boy am I glad I gave up on this bullshit scene of "experts" :)
Some funny statements in this thread, "and of course, you can't make a decent 4k without assembly" just being one of 'em. :)