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.
Printable View
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.
what kind of a 3D grapher?
does it graph:
z=f(x,y)
or:
x=f(t)
y=g(t)
z=h(t)
z=f(x,y)
sure mate post the code, im sure i could find good use for it!!!
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.
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:
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. :)
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??
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 )
hehe I reached the 512 mark, I'm now a 'Fanatic Member', next stop 1024:D :D :D.
I'm still trying to become a "Hyperactive member." (Where the heck is the mark?! :D )
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.
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)
Thx.
Hi Darkwraith, yup stick up that exe, I'd love to check it out. :)
I will need your email address.
The package is too big to be an attachment on a post (162KB.)
Darkwraith,
[email protected]
Thx.
[email protected] yeah would love a copy of that , thanks a lot
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
And now the readme:
Sorry about the inconvience that this has caused.
not bad at all!
got the source code handy?
The equation engine is not quite done yet (hence the recent update.)
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.
I feel your blaming me for it being closed source ;)
Nah. I not blaming you or anyone. If that is how a portfolio has to be, it just has be. ;)
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.
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.
really nice grapher!
could you tell me how you draw things in 3d?
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
Well its not quite that simple.Quote:
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.
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...
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. :)
oh...thats just the opposite of what i want to do!
i wanna create my own graphics library :)
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?
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.
I have not implemented these yet either. I will make the default, though, to be culled line.Quote:
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
Updated version of my 3D Grapher. :D
And the readme. :D
Final version will be coming out in about a week! :D
If you find any bugs, please report them.
Documentation and version are done.
I need to ge around to posting them, though.
Any updates darkwraith?
Final version of Project Grapher (unless you have more suggestions or bugs)
Readme: