Planetside Software Forums

General => Image Sharing => Topic started by: bla bla 2 on March 15, 2015, 04:51:29 PM

Title: SS ^^
Post by: bla bla 2 on March 15, 2015, 04:51:29 PM
 :)

Hello, les ami(e)s. Rien que pour faire un virage en S, c'est compliqué. O.O

J'essaie de faire sous chaque fichiers et différentes techniques pour faire un circuit, imaginaire.

(Mais, quel merdier parcontre.) (<<humour). ^^

--
(google translate, please.)
Title: Re: SS ^^
Post by: bla bla 2 on March 16, 2015, 07:40:27 AM
Hello, the friend (s). Just to make a turn in S, it's complicated. O.Ö.

I try to do in each file and different techniques to make a circuit, imagination.

(But what a mess against.) (<< Humor). ^^
Title: Re: SS ^^
Post by: TheBadger on March 16, 2015, 05:48:43 PM
QuoteJust to make a turn in S, it's complicated
I still believe Matt is a sadist at some level.
Title: Re: SS ^^
Post by: Dune on March 17, 2015, 03:04:23 AM
Is this what you mean?
Title: Re: SS ^^
Post by: bla bla 2 on March 17, 2015, 01:55:11 PM
It would have to make 90 °. As bend. If this is possible. :D
Title: Re: SS ^^
Post by: Dune on March 18, 2015, 03:23:35 AM
You have to play with the settings (size of SSS, transform shader and amount of vector displacement) and see what can be done. It's tricky.
Title: Re: SS ^^
Post by: bla bla 2 on March 18, 2015, 12:15:54 PM
Okay, Thank you.  ;)
Title: Re: SS ^^
Post by: otakar on March 18, 2015, 07:22:55 PM
Bastien, if you want total control, you can do that using simple shapes. Here is just a quick representation using a square and a circle (the second circle making the donut is derived from the first one via the Transform node). You create this at 0/0/0 location and then move the complex using a Transform shader. I have actually thought about a few clips using nodes with internal networks like this for a park project I started a while ago  - but then sadly abandoned  - because there are a few common geometrical shapes one might need again and again.
Title: Re: SS ^^
Post by: Dune on March 19, 2015, 03:35:51 AM
The problem with these simple shape setups is probably (for Bastien) that you can't warp roadlines the same way as the road, so I think he needs a warped setup, and not a masked.
Title: Re: SS ^^
Post by: otakar on March 19, 2015, 11:26:32 AM
Quote from: Dune on March 19, 2015, 03:35:51 AM
The problem with these simple shape setups is probably (for Bastien) that you can't warp roadlines the same way as the road, so I think he needs a warped setup, and not a masked.

You mean the striping? Yeah, I guess that could be an issue.
Title: Re: SS ^^
Post by: mogn on March 21, 2015, 04:36:04 AM
It is possible to make a correct procedural road (mask) from any smooth function of x.

Scale, rotate, translate a get function.
Extract x and z
calculate F(x)
mask1 = hardstep(F(x), z)
calculate F'(x) = dF(x)/dx
v = Atan(F'(x))
rotate z v radians
add road Width to z
mask2 = hardstep(z, F(x))
roadmask = complement(multiply(mask1,mask2))
Title: Re: SS ^^
Post by: Dune on March 21, 2015, 10:57:56 AM
 :o ??? :-\ If you could put that into a series of blue nodes, I'm sure you can make some of us very happy  ;D
Title: Re: SS ^^
Post by: bla bla 2 on March 21, 2015, 11:54:27 AM
I'll try               (Je vais essayer)  :D
Title: Re: SS ^^
Post by: mogn on March 21, 2015, 05:45:06 PM
I realize that my algorithm has a failure. I will try to correct in 12 hour from now.
Title: Re: SS ^^
Post by: mogn on March 22, 2015, 01:58:10 AM
The corrected algorithm is now:

Scale, rotate, translate a get function.
Extract x and z
calculate F(x)
mask1 = hardstep(F(x), z)
calculate F'(x) = dF(x)/dx
v = Atan(F'(x))
w = roadwith/cos(v)
mask2 = hardstep(z,F(x)+w
roadmask = complement(difference(mask1,mask2))

Title: Re: SS ^^
Post by: Dune on March 22, 2015, 02:25:03 AM
Cool, mogn! Thanks.
Title: Re: SS ^^
Post by: bla bla 2 on March 22, 2015, 07:11:24 AM
Cool, You can put 90 °?  ???
Title: Re: SS ^^
Post by: mogn on March 22, 2015, 08:31:45 AM
Quote from: bla bla 2 on March 22, 2015, 07:11:24 AM
Cool, You can put 90 °?  ???

Not quite within a limited range of x.
But try this

clamp(x, 0, 2)
F(x)  = 5x**3 + 3x**5
F'(x) = 15(x**2 + x**4)

x**N Means x to the power on N

This is a spline curve with 89.58 degrees as the max angle
Title: Re: SS ^^
Post by: bla bla 2 on March 24, 2015, 01:36:16 PM
Yeah, thank you verymuch.  ;)
Title: Re: SS ^^
Post by: bla bla 2 on April 07, 2015, 02:31:16 PM
J'y suis arrivé.

Iam arrived.
Title: Re: SS ^^
Post by: bobbystahr on April 13, 2015, 02:07:15 PM
Quote from: bla bla 2 on April 07, 2015, 02:31:16 PM
J'y suis arrivé.

Iam arrived.

WooHoo...glad y got it man

WooHoo ... y réjouit got it homme
Title: Re: SS ^^
Post by: bobbystahr on April 13, 2015, 02:08:41 PM
Because through your questions I, and no doubt others get it now as well

Parce qu'à travers vos questions I, et sans doute d'autres reçois maintenant ainsi