PDA

View Full Version : Artificial Screensaver Demo :-D



Lionheart008
30-01-2009, 01:17
Hello, first of all: it's just a Screensaver Demo and learning script for me. I have build the script new after an existing example and nothing for calm people ;) it's based on an old tbgl script from petr, but run's with the current thinbasic 1.7.6.0 release without errors (!), but the tbgl structure isn't the actual one, so I have translated it still for the entity system, when there is more time to learn about particle systems and use it for tbgl entity system :) will change the script more and modified it for me....

I have worked with a water texture for another project, wanted to do quite other things with it, but so I can test it also for my first screensaver ! :lol:

I love this kind of screensaver and hope somebody can test the demo, if it's running and I can imagine it's a lot too fast for this first release, don't know... at the beginning I have got some errors with the old 1.7.0.0 version, but the new one runs very fast and superb.

please wait some seconds, minutes to check the screensaver, it changes the structures in a continuous way of behaviour :o

enjoy it, wish fun with it, Lionheart, good night

ps: you can change the endings *.exe into *.scr and push the screensaver into the WinXP user directory, but where to place it, I haven't done it before, sorry... must laugh... perhaps somebody can say the exact position???

ErosOlmi
30-01-2009, 08:22
Works perfectly here. Very nice indeed.

The only problem with this script structure is the usage of the WHILE/WEND way of coding so CPU is almost 100% used.
Maybe better could be to use UI module with timers using TBGL and canvas binding. In this way CPU load could go down to less than 10% or so.

Ciao
Eros

Lionheart008
30-01-2009, 20:07
hi,

here it comes a little update for the screensaver with rotation of the emitter objects...


Maybe better could be to use UI module with timers using TBGL and canvas binding. In this way CPU load could go down to less than 10% or so.


yes, I will do that and use the next time the "UI", "TBGL" friends!;) I am thinking this version isn't fast enough for your cpu or does I must change something for decreasing the speed???

would be nice if somebody can check it for speed ;)

bye, have a nice evening, Lionheart

edit: the whole screensaver script you can see one post after this one from me with all what you need :)

Michael Clease
30-01-2009, 20:23
Frank to speed test it we would need to edit your code and you have encrypted it.

add this line in your main loop

TBGL_SetWindowTitle( hWnd, Framerate )

Petr Schreiber
30-01-2009, 20:23
Hi Frank,

30% use of CPU, I cannot measure speed without source code :D, but it seems smooth enough.
Before you plan to spread it widely, I highly recommend to do tests on Intel graphics.


Petr

Lionheart008
30-01-2009, 20:47
sorry! I have forgotten to add the script, I have bundled it into my old folder...

thanks for replies, michael, petr, eros :-)))

see you, now it's week-end... for me and private things! :-) have had a hard week!!!

other thing: I plan to take a game-development course (first practise training, than undergo an examination) in spring, I will say more, if I manage the test :-) after this one I can study this exciting stuff for two years ...!!!

hope this skills help what I have learned the last month with thinbasic (must laugh loud!)...

ciao, good evening, I love thinbasic! :D

franko löwenherz (Lionheart) ;)

Michael Hartlef
30-01-2009, 22:12
Which school will you attend to?

Michael Clease
30-01-2009, 23:18
runs at about 100 fps and about 40-50 cpu on my laptop.

Lionheart008
04-02-2009, 13:48
Hi michael hartlef, hi all:-)

the school starts in march in berlin or frankfurt :-) I will tell you more when I come back, I am on the road at the moment :-))

ciao, best wishes, Lionheart