Page 1 of 2 12 LastLast
Results 1 to 40 of 41

Thread: 3-D Grapher

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    3-D Grapher

    Just wondering if you are interested, but I have created a three-dimensional grapher.

    If you want a copy, please PM or reply to this post.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  2. #2
    Fanatic Member twanvl's Avatar
    Join Date
    Dec 2001
    Posts
    771
    what kind of a 3D grapher?
    does it graph:
    z=f(x,y)
    or:
    x=f(t)
    y=g(t)
    z=h(t)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    z=f(x,y)
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  4. #4
    Addicted Member TheAlchemist's Avatar
    Join Date
    Jan 2003
    Location
    Dar-esSalaam,Tanzania
    Posts
    139
    sure mate post the code, im sure i could find good use for it!!!
    One thing that sustains me through life is the conciousness of the immense inferiority of everyone else
    --Oscar Wilde

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Unfortunately, that's not feasible.

    There's a little over 3800 lines of code for the whole thing. If you would like, I could give you the executible and readme. I cannot post the package because its about 163KB.

    I can email it as an attachment, though.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  6. #6
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    It'd be more useful as a .dll if not the source code, you wont be able to add it to a program anyone is making if its in .exe form
    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.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Well, this is just a personal project so I can (1) build a portofolio for industry, (2) sharpen my skills in programming, and (3) have some fun with something I learned.

    This was meant to be a complete project by itself because it is not all that big (relatively. )

    And lastly, I don't know how to build dlls using C++ and never thought of that option. (Probably that's why there's forums... )

    If you have some sources for the dll thing, I could break it down into a few dlls, so it will be easier to update if I decide to actually build this up even further. It would be most appreciated.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  8. #8
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I can't use C++ so I couldn't tell you how to make a dll in it however its simple in VB so I wouldn't think it would be too difficult. You'd only need to put it as one dll,no??
    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.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I am hoping to put my grapher in a dll, my equation editor in another, and my executable would contain the interface.

    (Woot! 250th post. )
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  10. #10
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    hehe I reached the 512 mark, I'm now a 'Fanatic Member', next stop 1024 .
    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.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I'm still trying to become a "Hyperactive member." (Where the heck is the mark?! )
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  12. #12
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Check here Theres also a link in this thread part way down that points to a thread with the list of all the marks on.
    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.

  13. #13
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I'll save you the trouble:

    New Member (Minimum Posts: 0)
    Junior Member (Minimum Posts: 16)
    Member (Minimum Posts: 32)
    Lively Member (Minimum Posts: 64)
    Addicted Member (Minimum Posts: 128)
    Hyperactive Member (Minimum Posts: 256)
    Fanatic Member (Minimum Posts: 512)
    Frenzied Member (Minimum Posts: 1024)
    Ultra-Member (Minimum Posts: 2048)
    Custom (you can choose) (Minimum Posts: 4096)
    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.

  14. #14

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Thx.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  15. #15
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Hi Darkwraith, yup stick up that exe, I'd love to check it out.
    There are 10 types of people in the world - those that understand binary, and those that don't.

  16. #16

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I will need your email address.

    The package is too big to be an attachment on a post (162KB.)
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  17. #17
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Darkwraith,
    [email protected]
    Thx.
    There are 10 types of people in the world - those that understand binary, and those that don't.

  18. #18
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    [email protected] yeah would love a copy of that , thanks a lot

  19. #19

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    After updating the grapher, I realized that if I put the .exe and the readme in two seperate zips, it would actually fit.

    So here's the exe
    Attached Files Attached Files
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  20. #20

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    And now the readme:

    Sorry about the inconvience that this has caused.
    Attached Files Attached Files
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  21. #21
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    not bad at all!

    got the source code handy?

  22. #22

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    The equation engine is not quite done yet (hence the recent update.)
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  23. #23

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    http://www.vbforums.com/showthread.p...13#post1491213

    This is closed source (sorry , I need this for my portfolio.), however, if you are creating something similar and need some help, I am willing to share some insight.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  24. #24
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I feel your blaming me for it being closed source
    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.

  25. #25

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Nah. I not blaming you or anyone. If that is how a portfolio has to be, it just has be.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  26. #26
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Hi Darkwraith,
    Right, love the program. Excellent stuff.

    Here's a couple of bugs/suggestions for a future version:

    When you press a key (say rotate in some axis), it rotates a small amount, then there's a delay, then it smoothly continues rotating.

    Can you make the form resizable? I know it at least runs full screen cos I ran it with the shell function and vbMaximise parameter from vb

    Can you implement a command to change the front and back fill together?

    Can you implement some sort of mouse rotation?

    Can you implement axes on/off and axis labels on/off?

    Can you implement an absolute value function?

    Anyway, cheers again. Good work.
    There are 10 types of people in the world - those that understand binary, and those that don't.

  27. #27

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I found a bug in my equation editor (F=X^-2 is not correct) so another version will be coming out.

    DavidHooper, so far, most of your comments have been added.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  28. #28
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    really nice grapher!

    could you tell me how you draw things in 3d?
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  29. #29

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Its actually quite simple.

    In order to render a surface in three-dimensional space, you set up a grid of vertices. Then go through the grid in a Z fashion rendering each strip.

    This is actually how most of your 3D landscapes are rendered in your video games.

    Now, if you are implying that I created my own graphics library, well then I cannot take credit for that because I used OpenGL.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  30. #30
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    Originally posted by Darkwraith
    In order to render a surface in three-dimensional space, you set up a grid of vertices. Then go through the grid in a Z fashion rendering each strip.
    Well its not quite that simple.
    If you know the x,y,z values of anything to draw (a dot for example) where on the screen should it be drawn?
    If you also have a camera that could be moved and rotated...thats alot of thing you have to calculate, so its really not that simple...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  31. #31

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    That's what a graphics library is for. I used OpenGL because I did not want to do all of that stuff.

    I just wanted to set up the environment and have it render. This allowed me to concentrate on what I was rendering.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  32. #32
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    oh...thats just the opposite of what i want to do!
    i wanna create my own graphics library
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  33. #33
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Darkwraith, any chance you could post the new version?
    Plus, could you make the wire mesh the default fill?
    And do you have a website or something where you can post up the latest version?
    There are 10 types of people in the world - those that understand binary, and those that don't.

  34. #34

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I don't have a website.

    I am still working on the newest revision, though. There were a few bugs with the equation editor (like a totally invalid function crashing the program. )

    Sorry thast this has been going so slow. I wanted to finish an algorithm that I was working on (check "Draft for collision") first before I completed some of the major revisions.

    When you press a key (say rotate in some axis), it rotates a small amount, then there's a delay, then it smoothly continues rotating.

    Can you implement some sort of mouse rotation?

    Can you make the form resizable? I know it at least runs full screen cos I ran it with the shell function and vbMaximise parameter from vb
    I have not implemented these yet either. I will make the default, though, to be culled line.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  35. #35

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    Post

    Updated version of my 3D Grapher.
    Attached Files Attached Files
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  36. #36

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    And the readme.
    Attached Files Attached Files
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  37. #37

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Final version will be coming out in about a week!

    If you find any bugs, please report them.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  38. #38

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Documentation and version are done.

    I need to ge around to posting them, though.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  39. #39
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357
    Any updates darkwraith?
    There are 10 types of people in the world - those that understand binary, and those that don't.

  40. #40

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Final version of Project Grapher (unless you have more suggestions or bugs)

    Readme:
    Attached Files Attached Files
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

Page 1 of 2 12 LastLast

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