Results 1 to 3 of 3

Thread: New Kid on the block

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    155

    New Kid on the block

    Hi guys:
    I'm new to this. I have would like to do a simple graphic with VB2005 or VB6. Here is what my intention.


    Drawing a line from Left to Right with a mouse but remembering all coordinates. I hope to draw the line in 3D graphic where I look like a Welding line where the color will be red at the current point but the previous line will have shaded or degraded color. It don't have to real as what I normally see in great 3d graphic display.

    I need to crash start this project. I'm "Ok" with VB but not VC. Can Some one guide me or provide some sample code (I search thru Code Bank, none meet my need).

    thanks


  2. #2
    Hyperactive Member cptHotkeys's Avatar
    Join Date
    Apr 2007
    Location
    New Zealand
    Posts
    294

    Re: New Kid on the block

    Im not sure how you would handle the gradient welding/redhot steel/malten look, but to get all the co-ords of mouse movement..

    Code:
    Private lstPoints as list(of point)
    Private sub mouseMove(byval sender as object,byval e as MouseEventArgs) handles me.mousemove
       if lstPoints is nothing then
          lstPoints = new list(of point)
       end if
       lstPoints.add(e.location)
    End sub
    That will record every pixel that the mouse movement covers. now im sure there is an easy way to use these points to acheive the look you want, note this line will be only one pixel wide, but Im sure you could find a function which will make a shape to follow that line as the center, and set the center gradient to red and orange or whatever...

    Signatures suck

  3. #3
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Re: New Kid on the block

    Just to clarify. VB6 is older than VB.net and is not part of the .net framework hence the code is completely different. Which are you using?
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

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