Results 1 to 13 of 13

Thread: something i'm working on

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192

    something i'm working on

    100% VB. cyborg i hope you stick with the pointer method
    Last edited by dafhi; Jan 15th, 2003 at 09:26 PM.

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Wow, that's some cool stuff you have there

    What's this "algae" project you talk about? Is it a game? Nice effects... all anti-aliased and stuff... but it runs at 3FPS in my Pentium III @ 866
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192
    this project is most likely going to turn into some type of automatic drawing / animation package.

    to see 'algae', in Form_Activate uncomment

    'For N = 1 To 13 'I dimmed 100 of these
    ' DrawAlgae AlgaeWheel(N)
    'Next


    There are also some interesting moire-type effects in some of the other lines that I commented out, but I don't really have apis written for any of that so right now I'm just sharing this latest effect.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192
    I get 3.4fps on a 1Ghz Duron

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Are you gonna make a DLL or something with it? Maybe you could write a few tutorials on some of those techniques

    Btw, the algae effect, way cool...
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    it is pretty cool looking.. but yes... way too slow... you think you will be able to speed it up?

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192
    I've been thinking about making a dll. I've also been thinking about describing my technique for drawing aa circles.

    I could start by saying that I think of the center of a pixel as x.0, y.0, where the left edge is -x.5 and the bottom edge is -y.5.

    and then you have your 'brush' center which has a certain offset x and y from pixel center, where the x offset can be as much as -0.5 where it would meet the left edge of the pixel, or 0.499.. where it would just not quite touch the right edge.

    I made my own round function because with vb's dubious Round(), there are often position artifacts which are very noticeable with aa primitives
    Last edited by dafhi; Jan 9th, 2003 at 05:52 AM.

  8. #8
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    really nice!
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  9. #9
    Addicted Member jmiller's Avatar
    Join Date
    Jul 2002
    Location
    University of Michigan
    Posts
    238
    quite cool
    but why is it called algae?
    and interestingly enough, you might want to rework some of it, because it runs at about 4.5fps on my 1.4Ghz, 512DDR, GeForce 4 Ti4600 computer.
    but other than that, i must say kudos to you

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Jmiller I think algae is an effect...

  11. #11
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Its really cool, neat effect. Mind it does run quite slow even on my PC: 2.5GHz, 512MB RAM. I get about 6.4fps. I haven't looked at the source code in much detail yet but if it could be run in DirectX without much change I gues it would solve the speed. All depends if you would want to use DirectX or if the speed really matters cos it doesn't look "jumpy" to me.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192
    if directx could generate the micro-fine dots with as many options as i have, sure it would help. i am sure it would be fast.
    Last edited by dafhi; Jan 12th, 2003 at 10:22 AM.

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    192
    Here is an update. There is roughly a 30% speed improvement
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width