Donate Now Goal amount for this month: 100 USD, Received: 0 USD (0%)
Donate to support this site and ThinBASIC project development

Results 1 to 9 of 9

Thread: Artificial Screensaver Demo :-D

  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    42
    Posts
    914
    Rep Power
    98

    Artificial Screensaver Demo :-D

    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 !

    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

    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???
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Artificial_Screensaver_Lionhearat_Demo-pic1.png 
Views:	137 
Size:	120.1 KB 
ID:	5444  
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    47
    Posts
    7,622
    Blog Entries
    2
    Rep Power
    10

    Re: Artificial Screensaver Demo :-D

    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
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  3. #3
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    42
    Posts
    914
    Rep Power
    98

    Re: Artificial Screensaver Demo :-D

    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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	artificial_screensaver_demo_X_Lionheart-pic.png 
Views:	100 
Size:	80.0 KB 
ID:	5448  
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  4. #4
    thinBasic MVPs Michael Clease's Avatar
    Join Date
    May 2007
    Posts
    1,416
    Blog Entries
    1
    Rep Power
    149

    Re: Artificial Screensaver Demo :-D

    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 )



    Why is the world full of nobs trying to push my buttons!!

    Home Desktop : WinXP Pro SP3 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : WinXP Pro SP3 - Intel Pentium 4 - 3 Ghz - 512 MB - ATI Mobile Radeon 7000 IGP
    Work Desktop : WinXP Pro SP3 - Intel core 2 Quad Q8200 - 2.33 Ghz - 2 Gb - Quadro Fx 370

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,444
    Rep Power
    655

    Re: Artificial Screensaver Demo :-D

    Hi Frank,

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


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  6. #6
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    42
    Posts
    914
    Rep Power
    98

    Re: Artificial Screensaver Demo :-D

    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!

    franko l÷wenherz (Lionheart)
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  7. #7
    Super Moderator Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    48
    Posts
    3,151
    Blog Entries
    2
    Rep Power
    324

    Re: Artificial Screensaver Demo :-D

    Which school will you attend to?

  8. #8
    thinBasic MVPs Michael Clease's Avatar
    Join Date
    May 2007
    Posts
    1,416
    Blog Entries
    1
    Rep Power
    149

    Re: Artificial Screensaver Demo :-D

    runs at about 100 fps and about 40-50 cpu on my laptop.
    Why is the world full of nobs trying to push my buttons!!

    Home Desktop : WinXP Pro SP3 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : WinXP Pro SP3 - Intel Pentium 4 - 3 Ghz - 512 MB - ATI Mobile Radeon 7000 IGP
    Work Desktop : WinXP Pro SP3 - Intel core 2 Quad Q8200 - 2.33 Ghz - 2 Gb - Quadro Fx 370

  9. #9
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    42
    Posts
    914
    Rep Power
    98

    Re: Artificial Screensaver Demo :-D

    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
    you can't always get what you want, but if you try sometimes you might find, you get what you need

Similar Threads

  1. How to avoid screensaver / keep win alive ?
    By chris_bdnsee in forum thinBasic General
    Replies: 4
    Last Post: 15-03-2009, 22:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •