Click to See Complete Forum and Search --> : 3-D Grapher
Darkwraith
Jul 20th, 2003, 01:30 PM
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.
twanvl
Jul 20th, 2003, 02:47 PM
what kind of a 3D grapher?
does it graph:
z=f(x,y)
or:
x=f(t)
y=g(t)
z=h(t)
Darkwraith
Jul 20th, 2003, 04:00 PM
z=f(x,y)
TheAlchemist
Jul 21st, 2003, 04:04 AM
sure mate post the code, im sure i could find good use for it!!!
Darkwraith
Jul 21st, 2003, 01:02 PM
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.
Electroman
Jul 21st, 2003, 03:00 PM
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:confused:
Darkwraith
Jul 21st, 2003, 04:40 PM
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... :D )
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. :)
Electroman
Jul 21st, 2003, 05:07 PM
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??
Darkwraith
Jul 21st, 2003, 05:24 PM
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. :D )
Electroman
Jul 21st, 2003, 05:34 PM
hehe I reached the 512 mark, I'm now a 'Fanatic Member', next stop 1024:D :D :D.
Darkwraith
Jul 21st, 2003, 05:39 PM
I'm still trying to become a "Hyperactive member." (Where the heck is the mark?! :D )
Electroman
Jul 21st, 2003, 05:43 PM
Check here (http://www.vbforums.com/showthread.php?s=&threadid=254310) Theres also a link in this thread part way down that points to a thread with the list of all the marks on.
Electroman
Jul 21st, 2003, 05:44 PM
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)
Darkwraith
Jul 21st, 2003, 06:01 PM
Thx.
DavidHooper
Jul 22nd, 2003, 01:56 PM
Hi Darkwraith, yup stick up that exe, I'd love to check it out. :)
Darkwraith
Jul 22nd, 2003, 03:08 PM
I will need your email address.
The package is too big to be an attachment on a post (162KB.)
DavidHooper
Jul 23rd, 2003, 04:20 PM
Darkwraith,
davidhooper82@hotmail.com
Thx.
Jmacp
Jul 25th, 2003, 05:17 AM
jmacp62@hotmail.com yeah would love a copy of that , thanks a lot
Darkwraith
Jul 25th, 2003, 09:50 AM
After updating the grapher, I realized that if I put the .exe and the readme in two seperate zips, it would actually fit. :o
So here's the exe
Darkwraith
Jul 25th, 2003, 09:52 AM
And now the readme:
Sorry about the inconvience that this has caused.
Jmacp
Jul 25th, 2003, 09:58 AM
not bad at all!
got the source code handy?
Darkwraith
Jul 25th, 2003, 03:31 PM
The equation engine is not quite done yet (hence the recent update.)
Darkwraith
Jul 25th, 2003, 05:50 PM
http://www.vbforums.com/showthread.php?s=&postid=1491213#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.
Electroman
Jul 25th, 2003, 05:55 PM
I feel your blaming me for it being closed source ;)
Darkwraith
Jul 25th, 2003, 06:00 PM
Nah. I not blaming you or anyone. If that is how a portfolio has to be, it just has be. ;)
DavidHooper
Jul 30th, 2003, 01:37 AM
Hi Darkwraith,
Right, love the program. Excellent stuff. :D
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 :p
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.
Darkwraith
Jul 30th, 2003, 07:40 PM
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.
cyborg
Jul 31st, 2003, 04:49 AM
really nice grapher!
could you tell me how you draw things in 3d?
Darkwraith
Jul 31st, 2003, 02:45 PM
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. :D
Now, if you are implying that I created my own graphics library, well then I cannot take credit for that because I used OpenGL. :D
cyborg
Jul 31st, 2003, 04:45 PM
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...
Darkwraith
Jul 31st, 2003, 04:52 PM
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. :)
cyborg
Jul 31st, 2003, 04:55 PM
oh...thats just the opposite of what i want to do!
i wanna create my own graphics library :)
DavidHooper
Aug 4th, 2003, 04:30 PM
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?
Darkwraith
Aug 4th, 2003, 04:39 PM
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. :rolleyes: )
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.
Darkwraith
Aug 4th, 2003, 07:19 PM
Updated version of my 3D Grapher. :D
Darkwraith
Aug 4th, 2003, 07:20 PM
And the readme. :D
Darkwraith
Aug 7th, 2003, 12:06 AM
Final version will be coming out in about a week! :D
If you find any bugs, please report them.
Darkwraith
Aug 23rd, 2003, 10:43 PM
Documentation and version are done.
I need to ge around to posting them, though.
DavidHooper
Sep 7th, 2003, 02:07 AM
Any updates darkwraith?
Darkwraith
Sep 7th, 2003, 09:37 AM
Final version of Project Grapher (unless you have more suggestions or bugs)
Readme:
Darkwraith
Sep 7th, 2003, 09:58 AM
And the executable:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.