Welcome to
Planetside Software Forums
.
Log in
Sign up
Search Forums
Search
Home
Search
Planetside Software Forums
►
General
►
File Sharing
►
Solving 3 equations
Solving 3 equations
Started by mogn, March 27, 2012, 11:07:50 AM
Previous topic
-
Next topic
Print
Go Down
Pages
1
User actions
mogn
Member+
Posts: 443
Location: Denmark
Logged
Solving 3 equations
March 27, 2012, 11:07:50 AM
Why do you want to solve 3 equations with 3 unknowns?
Because programming in tg2 is fun.
And because I have the need to use it in a curve (profile) tool.
The equations:
1*a + 2*b + 3*c = 14
2*a + 3*b + 1*c = 11
3*a + 2*b + 1*c = 10
has the solutions a=1 b=2 c=3.
I have tested my solver with the about equations.
Note the way to inspect numerical values, using the displacement input of a surface layer
and viewing the surface layer in a new window.
RichTwo
Member+
Posts: 671
Hey Rocky! Watch me pull a rabbit out of my hat...
Location: Right here
Logged
Re: Solving 3 equations
#1
March 28, 2012, 12:34:43 PM
Probably the lack of response here so far is due to our not knowing exactly what this set-up does.
Though I somehow have the feeling it is sheer brilliance at work. Perhaps you could show a rendered image and / or show it connected to a node network so we have an idea?
They're all wasted!
N810
Member+
Posts: 272
Logged
Re: Solving 3 equations
#2
March 28, 2012, 02:41:45 PM
Soooooo...
Waht does it do/what is it used for, exactly
Hmmm... wonder what this button does....
mogn
Member+
Posts: 443
Location: Denmark
Logged
Re: Solving 3 equations
#3
March 30, 2012, 07:04:01 AM
It was meant to force a 6 order Bezier curve through known points [0, 0] [1/6, 0] [1/3, A] [1/2, B] [2/3, C] [5/6, 1] [1, 1] by solving 3 equations
giving the unknowns a, b and c, which are then put as middle points in the Bezier spline equation.
cyphyr
1k+ Member
Posts: 4,435
Logged
Re: Solving 3 equations
#4
March 30, 2012, 07:49:52 AM
This sure is great and at a level well beyond my understanding. You say your using this as a profile tool. Do you mean for carving valleys?
So would this be used as a blend shader ?
More info please for the less well informed please
Cheers
Richard
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\
Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)
Hetzen
1k+ Member
Posts: 1,998
Logged
Re: Solving 3 equations
#5
March 30, 2012, 03:37:22 PM
I didn't get this at first, until Mogn's second post. Here's a link I found illustrating what he's created. Scroll to "Constructing Bézier curves" in this link...
http://en.wikipedia.org/wiki/B%C3%A9zier_curve
Mogn, do you know of a program you can visualy design these curves to give you your values for this function set?
Yes I think you could use this for creating specific curves that can be driven through altitude, position, ramps to carve valleys Richard.
Print
Go Up
Pages
1
User actions
Planetside Software Forums
►
General
►
File Sharing
►
Solving 3 equations
User actions
Print