Mais informações sobre L-System

Por: emersonforentin  

Em: 16/01/2008 07:30

Ai pessoal, eu achei muito 10 esse lance de L-System, dá para fazer coisas muito legais pelo visto. Mas escrever a expressão não é muito fácil no começo. Eu encontrei um pouco de informação nos arquivos que vem com o plug-in, mas queria saber se alguém sabe mais. Vou colar aqui as informações que encontrei nos arquivos e o link para um site com mais informações. Se alguém puder ajudar, eu já agradeço antecipadamente. Drawing commands when {} structure command is active F move forward and draw full length record vertex F(x) move x forward and draw record vertex Z move forward and draw half length record vertex Z(x) move x forward and draw record vertex Note: F = F(100) = Z(100) Z = F(50) = Z(50) Movement commands when {} structure command is active f move forward with full length record vertex f(x) record vertex move x forward z move forward with half length record vertex z(x) move x forward record vertex g move forward with full length don't record vertex g(x) move x forward don't record vertex . don't move record vertex Orientation commands + turn left (counter clockwise) around the turtle's local X vector +(x) turn x degrees left (counter clockwise) around the turtle's local X vector - turn right (clockwise) around the turtle's local X vector -(x) turn x degrees right (clockwise) around the turtle's local X vector & pitch right (clockwise) around the turtle's local Y vector &(x) pitch x degrees right (clockwise) around the turtle's local Y vector ^ pitch left (counter clockwise) around the turtle's local Y vector ^(x) pitch x degrees left (counter clockwise) around the turtle's local Y vector < roll left (counter clockwise) around the turtle's forward (Z) vector <(x) roll x degrees left (counter clockwise) around the turtle's forward (Z) vector > roll right (clockwise) around the turtle's forward (Z) vector >(x) roll x degrees right (clockwise) around the turtle's forward (Z) vector Special Orientation commands | turn 180 degrees around X vector - ie. turn around and face backwards. % roll 180 degrees around the turtle's forward (Z) vector $ roll until horizontal - (not sure this works properly) ~ turn/pitch/roll in a random direction ~(x) turn/pitch/roll in a random direction with a maximum of x degrees t correction for gravity with 0.2 t(x) correction for gravity with x Structure commands [ push current state (size, position, alignment) of the turtle onto the stack ] pop current state (size, position, alignment) of the turtle off of the stack { begin polygon drawing mode. Draws one face at a time. } end polygon drawing mode. Size/Angle/Thickness commands " increment the turtle's current size (length) with 1.1 ' decrement the turtle's current size (length) with 0.9 "(x) multiply the turtle's current size (length) with x (same as '(x)) ; increment the turtle's current default rotation angle with 1.1 : decrement the turtle's current default rotation angle with 0.9 :(x) multiply the turtle's current default rotation angle with x (same as ;(x)) ? increment the turtle's current thickness with 1.4 ! decrement the turtle's current thickness with 0.7 ?(x) multiply the turtle's current thickness with x (same as !(x)) Additional commands c increment material id (color index) c(x) set material id to x @ end of object description Neste site tem um tutorial: http://www.xs4all.nl/~cvdmark/tutor.html Valeu galera!!
o q eh esse L-System? (eu sei q eh um plugin, mas o q ele faz? hehee)
está desde ontem na capa da 3D1, você não viu? entra lá na seção de plug-ins que tem ele para baixar e imagem de exemplo, ele cria formas complexas
Múcio
E ai galera, será que ninguém sabe mais sobre este L-System? Eu consigo gerar os objetos que já estão prontos nos arquivos das expressões que vem com o plug-in aqui da 3D1, mas eu queria fazer meus príprios objetos, eu queria fazer umas veias, ai dava para animar elas crescendo igual no final "Um homem sem sombra" Lá naquele site que eu deixei o link tem um objeto neste estilo, mas se eu copio a expressão no plug-in L-System, não cria o objeto, porque? Eu queria criar este objeto: A expressão é essa: 9 45 10 AB A = [F[+FCA][-FCA]] B = [F[^FCB][&FCB]] C = '(0.7071) @ Mas não funcionou.

Faça o login para poder comentar

Informações da Comunidade

Total de mensagens publicadas pelos membros da comunidade: 717418.

Total de membros registrados: 143176

Últimos membros registrados: LifeGaugeBreeze56685, LifeGaugeBreeze3545, OsanixCapsules345, Kennetoot, BillcKittrick, rbes, GROYCE, alfredopaz.

Usuário(s) on-line na última hora: 936

Legenda: Administrador, Especial, Moderador, Parceiro .

3D1 © Três D1 © 1999-2026. Todos direitos reservados.