Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
GraphX #183186
02/10/08 17:59
02/10/08 17:59
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline OP
User
Shadow969  Offline OP
User
S

Joined: Oct 2006
Posts: 873
I'm sick and tired of functions right now at school, so i've written a small application that graws graphs and can be used to solve equations with one variable. It can draw up to 9 graphs at the same time and it's main feature is function interpreter that reads a function out of string (i need it since lite-c doesn't have execute() function). Everything is drawn with standart GS drawing commands, no bitmaps.
My next goal is to add algorythm that calculates the derivative of the function

I hope somebody may find this version useful

http://files.filefront.com/GraphX+v1ENrar/;9607827;/fileinfo.html

Re: GraphX [Re: Shadow969] #183187
02/10/08 19:53
02/10/08 19:53
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
For liteC there is such thing as var_for_name.
Know this?
P.S. For creating such things best solution will be downloading Microsoft Visual Basic Express.
If you will ask, i can tell full needed changes to script.


I switched to other account since marth 2010. Guess which.
Re: GraphX [Re: Vadim647] #183188
02/10/08 20:15
02/10/08 20:15
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
If you want to generate charts with 3dgs, native functions cant be beat. Using VB.NET doesn't make any sense at all, because you can't combine it easily to your game.


BASIC programmers never die, they GOSUB and don't RETURN.
Re: GraphX [Re: bstudio] #183189
02/10/08 20:24
02/10/08 20:24
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
I actualy wanted to say that for making this kind of programs you need VB only.
I bringed something native to this one to scool and was quite happy.


I switched to other account since marth 2010. Guess which.
Re: GraphX [Re: Vadim647] #183190
02/10/08 21:07
02/10/08 21:07
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline OP
User
Shadow969  Offline OP
User
S

Joined: Oct 2006
Posts: 873
i just wanted to show that it's possible with GS

Re: GraphX [Re: Shadow969] #183191
02/11/08 17:11
02/11/08 17:11
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
while the others are discussing VB...

good work!
impressed... I was to slack to do something like this, so i just used a graphing calculator or "maple" (does anyone hate that program as much as me? I'm sure that no programmers programmed that tool... it was mathematicians ... they're at verson 11, and scrolling still doesn't work ^^)

anyways, neat tool. I can't imagine at all how you transform the string into a function that can be calculated for multiple points...
well done

MIcha


~"I never let school interfere with my education"~
-Mark Twain
Re: GraphX [Re: Germanunkol] #183192
02/11/08 17:38
02/11/08 17:38
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
It's easy to make:
You use one string for code function (changed by input)
Then make a "y=" string.
And add into while loop in drawing obj:
Code:

temp_i = -draw_range;
draw_line(nullvector,NULL,100);
while (temp_i<draw_range)
{
x = temp_i;
str_cpy(temp_s,"y=");
str_cat(temp_s,function_code);
var_for_name(temp_s);
draw_line(vector(x,y,0),line_color,100);
temp_i += 1;
}


That's easy on practice.


I switched to other account since marth 2010. Guess which.
Re: GraphX [Re: Vadim647] #183193
02/11/08 19:52
02/11/08 19:52
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
@ Shadow:

Looks handy indeed

@ Vadim:

Why don't you make your own version then ^^

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: GraphX [Re: frazzle] #183194
02/11/08 21:28
02/11/08 21:28
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline OP
User
Shadow969  Offline OP
User
S

Joined: Oct 2006
Posts: 873
Thanks for all the positive responses

@ Vadim:
I think Germanunkol meant converting string into the working function.

If anyone is interested i can publish the source code

Re: GraphX [Re: Shadow969] #183195
02/12/08 17:59
02/12/08 17:59
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
ok i`m very stupid (well not that stupid, just very new) ok ok (not that new just very slow) is slow better than stupid?
what exactly does this mean?
Quote:

draws graphs and can be used to solve equations with one variable


is it for setting up stuff for collison? like an easy way to set up particles and the like?


Why does everyone like dolphins? Never trust a species which smiles all the time!
Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1