Champ de Menhir :

Started by bla bla 2, March 29, 2010, 03:45:03 PM

Previous topic - Next topic

bla bla 2

Qui a dit menhir ? Et, voilà.



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 ?

Zairyn Arsyn

WARNING! WIZARDS! DO NOT PREDICT THE BEHAVIOR OF OTTERS UNLESS YOU OBEY BIG HAPPY TOES.

i7 2600k 3.4GHZ|G.skill 16GB 1600MHZ|Asus P8P67 EVO|Evga 770GTX 4GB|SB X-FI|Antec 750W
http://zlain81.deviantart.com/

Henry Blewer

http://flickr.com/photos/njeneb/
Forget Tuesday; It's just Monday spelled with a T

mogn

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.

Hannes


mogn

#5
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)

bla bla 2

Thank you. :) Je verrais ce week end. thank you encore une fois.  :)  ;)

inkydigit

Quote from: Hannes on March 30, 2010, 08:41:26 AM
Où est Obélix? ;D
my thoughts exactly... ;D

@mogn...good function work!

bla bla 2

J'ai fais ça a ma façon. ^^

Quelqu'un peut me traduire en anglais ?

kasalin

C'est grand travail !!!!!!!!!!!

TheBlackHole

#10
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.
They just issued a tornado warning and said to stay away from windows. Does that mean I can't use my computer?

bla bla 2

merci quand meme cordialement, bla bla 2.

TheBlackHole

They just issued a tornado warning and said to stay away from windows. Does that mean I can't use my computer?