Planetside Software Forums

General => Image Sharing => Topic started by: bla bla 2 on March 29, 2010, 03:45:03 PM

Title: Champ de Menhir :
Post by: bla bla 2 on March 29, 2010, 03:45:03 PM
Qui a dit menhir ? Et, voilà.

(http://img36.imageshack.us/img36/9308/menhirnom.png) (http://img36.imageshack.us/i/menhirnom.png/)

1) Une question est ce possible de faire un cercle de menhir ?
2) Est ce qu'on peut arrondir le pique au bout du menhir ?
Title: Re: Champ de Menhir :
Post by: Zairyn Arsyn on March 29, 2010, 03:50:16 PM
strange.. i like it :)
Title: Re: Champ de Menhir :
Post by: Henry Blewer on March 29, 2010, 07:16:20 PM
Cool idea and shot. 8)
Title: Re: Champ de Menhir :
Post by: mogn on March 30, 2010, 12:12:31 AM
Yes it is possible:
1) decide how many monolites you want e.g  N = 17
2) Find the direction from the x-axis to the current point (from a "Get position in geometry") giving an angle v
3) calculate  u = v - mod(v, 2PI/N)
4) rotate your coordinate system  ("Get position in Geometry") the angle u against the clock.
    this brings the current point near the x-axis.
5) create your monolite or mask placed at an angle from the x-axis of PI/N.
Thats all.
Details and tgc follows later.
Title: Re: Champ de Menhir :
Post by: Hannes on March 30, 2010, 08:41:26 AM
Où est Obélix? ;D
Title: Re: Champ de Menhir :
Post by: mogn on April 04, 2010, 02:43:53 AM
Well it took longer tha expected. I had to decode the Arctan2 node, in order to modify it to calculate the angle from x-axis to a given point (in the range 0..2PI)

As you can see the render still contains shadow errors and som cut off on displacements.

(the rotation of the coordinates as described above, should be clockwise i.e. rotate the N'th segment to the first segment)
Title: Re: Champ de Menhir :
Post by: bla bla 2 on April 08, 2010, 03:54:14 PM
Thank you. :) Je verrais ce week end. thank you encore une fois.  :)  ;)
Title: Re: Champ de Menhir :
Post by: inkydigit on April 08, 2010, 04:05:58 PM
Quote from: Hannes on March 30, 2010, 08:41:26 AM
Où est Obélix? ;D
my thoughts exactly... ;D

@mogn...good function work!
Title: Re: Champ de Menhir :
Post by: bla bla 2 on April 23, 2010, 09:21:02 AM
J'ai fais ça a ma façon. ^^

Quelqu'un peut me traduire en anglais ?
Title: Re: Champ de Menhir :
Post by: kasalin on April 27, 2010, 03:53:27 PM
C'est grand travail !!!!!!!!!!!
Title: Re: Champ de Menhir :
Post by: TheBlackHole on April 28, 2010, 11:05:30 PM
French:
J'ai fais ça a ma façon. ^^

Quelqu'un peut me traduire en anglais ?

English:
I was doing this my way. ^^
Can anyone translate to English ?

I used Google Translate, so it's probably not very accurate.
J'ai utilisé Google Translate, alors ce n'est probablement pas très précis.
Title: Re: Champ de Menhir :
Post by: bla bla 2 on April 29, 2010, 04:24:13 PM
merci quand meme cordialement, bla bla 2.
Title: Re: Champ de Menhir :
Post by: TheBlackHole on April 29, 2010, 05:43:18 PM
Oops, fixed it.