[PloobsEngine] Tutorial 8 – Usando Modelos animados na PloobsEngine


A ploobs engine utiliza uma versão bastante customizada da API XnaAnimation como importer e renderizador de modelos animados. Por permitir um bom. Nesse post vou mostrar todo o pipeline de animacao usado na PloobsEngine, desde o 3Ds Max até o Visual Studio, (não vou falar de rigging, de como criar a animação ou de modelagem), focarei no processo de configuracão e utilização dos modelos.

Setando o modelo

Para ter certeza que seu modelo funcionará não só na PloobsEngine mas também em outras aplicações, é garantir que a matriz de transformação local não influenciará em nada quando colocá-lo em cena, isso significa colocar a posição relativa do modelo em (0,0,0) e zerar as transformações de escala e a matriz transform. Após selecionar o modelo, na aba hierarquia

Caso esteja usando a PloobsEngine e pense em usar um character é importante setar o pivot do modelo para a extremidade inferior.

Colocando os bones

Todas as animações utilizadas devem ser do tipo bone animation o que pressupõe que deve haver um bone anexado em todo o seu modelo. É preciso tomar cuidado para que não exista vertice algum sem ser coberto pelo campo de atuação de algum bone.

Note que nessa imagem existem tons de azul, amarelo e vermelho. Assim como em um mapa de calor a temperatura de cor que cada vértice tem representa o quão forte esse bone influencia no vértice. É crucial que não exista vértice algum sem pelo menos um tom de azul claro. Neste exemplo estou usando o modificador Skin, mas o Biped também pode ser utilizado

Configurando o KWExport

A tarefa de determinar quais frame representam qual animation set

Marque os items Export Skining para que o Modificador Skin ou o Biped seja exportado.

Na aba direita Animation é onde serão cadastrados os intervalos das animações.

 

Configurando no Visual Studio

Após adicionar o arquivo .x no seu projeto modifique as propriedades do arquivo para utilizar o Content Processor certo e setar algumas propriedades

 

Criando o Objeto na PloobsEngine

A última etapa é criar o objeto que vai comportar o modelo animado

///Carrega o Modelo
AnimatedModel am = new AnimatedModel(factory, "..\\Content\\Model\\PlayerMarine", "..\\Content\\Textures\\PlayerMarineDiffuse");
///Inicializa o Controlador (Idle eh o nome da animacao inicial)
AnimatedController arobo = new AnimatedController(am, "Run");
arobo.isLoop = true;
///Cria o shader e o material animados
DeferredSimpleAnimationShader sas = new DeferredSimpleAnimationShader(arobo);
DeferredAnimatedMaterial amat = new DeferredAnimatedMaterial(arobo, sas);

As linhas acimas apenas carregam o modelo AnimatedModel (ao inves do SimpleModel usado normalmente para modelos não animados, em seguida criamos um AnimationController reponsavel por “tocar” as animacões) e finalmente criamos o material (animado) passando como parametro um dos shaders de animacão (este nao usa Bump, Specular ou Glow).

O código acima pode ser encontrado no pacote Advanced Demos que esta no nosso repositorio http://code.google.com/p/port-ploobsengine/.

Futuramente teremos outro tutorial focado exclusivamente na parte PloobEngine do processo de animacão (falaremos de assuntos como “ativar animacão” entre outros =P).
Até o próximo Tutorial =P

, , , , , ,

  1. #1 by http://www.rockma.se/cartier.asp on 19 de agosto de 2017 - 12:27 pm

    I have it headphonesto the mom for the moms time, furthermore she completely enjoyed it! It is actually attractive headphonesand saying on the card it goes within the container is really sentimental!! And the premium of beads is great!

  2. #2 by Cartier Love Bracelet Replica on 19 de agosto de 2017 - 12:27 pm

    I had gotten that headphonesof our mother for the moms day, then she absolutely adored that it! Its actually sweet headphonesas well as the stating on the card you already know will come within the box is really sentimental!! And the top quality of the beads was ideal!

  3. #3 by cartier love ring replica on 19 de agosto de 2017 - 12:49 pm

    I had gotten that headphonesconcerning our mother concerning mothers evening, to she completely liked that! It is completely cute headphonesand stating on the card it will come within the package is very emotional!! And top quality of beads are great!

  4. #4 by replica christian louboutin sale on 19 de agosto de 2017 - 12:50 pm

    I got our headphonestowards our mother for the mothers time, then she definitely enjoyed it! It is truly pretty headphonesand the saying in the card which is goes in the container is really sentimental!! As well as the excellence of the beads is actually great!

  5. #5 by buy uggs on 19 de agosto de 2017 - 1:03 pm

    Very good suggestions, you just gained a brand new reader. Im curious if you have any follow ups to this post?
    buy uggs http://www.uggcheap.online

  6. #6 by marshanda on 19 de agosto de 2017 - 1:19 pm

    In August of 2010, Paris Hilton awoke to an intruder armed with
    two knives who was trying to break into her home. Trump isn’t
    the only reality star to try politics Born James George Janos, Ventura has had a full resume as a professional wrestler, actor,
    shock jock, and, of course, politician. Talking about the creator
    of style statement who would dare to beat the debonair Hollywood
    heartthrob Brad Pitt.

  7. #7 by balmain outlet online on 19 de agosto de 2017 - 1:26 pm

    advice. I appreciate you taking time to share such valuable information. I had no clue on some of the things you mentioned earlier, thanks!
    balmain outlet online http://balmain.compucelunlock.net

  8. #8 by mulberry handbags online on 19 de agosto de 2017 - 2:09 pm

    Very nice site you have here, has useful information that can apply to anyone :)
    mulberry handbags online http://www.cybermondaysale.online

  9. #9 by jimmy choo online on 19 de agosto de 2017 - 2:38 pm

    There are post-modern slants on this issue.
    jimmy choo online http://www.cheapjimmychoo.online

  10. #10 by Lawyer business on 19 de agosto de 2017 - 3:11 pm

    Hi, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you reduce it, any plugin or anything you can advise? I get so much lately it’s driving me mad so any assistance is very much appreciated.

  11. #11 by Virtual Real Porn on 19 de agosto de 2017 - 4:17 pm

    Truly no matter if someone doesn’t be aware of then its up to other people that they will
    help, so here it takes place.

  12. #12 by Ramona Monington on 19 de agosto de 2017 - 4:48 pm

    You, young lady, are fantastic. Every inch of you is amazing. And your gentleman there’s not so bad either. Keep up the great work! http://www.freehdpornx.com/category/anal/

  13. #13 by http://www.cheapmoncler.xyz/ on 19 de agosto de 2017 - 5:00 pm

    I got the headphonestowards my mom of moms day, and also she absolutely adored that! The actually adorable headphonesand stating in the card just that comes within the box is really emotional!! As well as the top quality of beads was awesome!

  14. #14 by P2Y6DF-baseball.. on 19 de agosto de 2017 - 5:22 pm

    Steven Paul^Loved it except I thought the sleeves were a little to big. Should be a little smaller in the arm dimension.Other wise this item rocks…..~5|Zavier L. Williams^Good quality&#44 I got it to wear to work for “school spirit” Fridays. The entire staff wants to order one.~4|Jean Pierre Azoualy^Well made! Letters & numbers hold up well after washing! Has a very nice style to it!Would get more~5|Michael E. Furna^AWESOME Product. This was the first time ordering&#44 but won’t be that last. Order a little early because it takes a bit to get to you&#44 but the product is well worth the wait.~5|

  15. #15 by merrell shoes online on 19 de agosto de 2017 - 5:25 pm

    I used to have a website that I used to cover this, but it got spammed to death. You seem to be better at weeding out the spam than I did! Dont give up!
    merrell shoes online http://www.cheapmerrell.online

  16. #16 by cheap balmain jeans on 19 de agosto de 2017 - 5:42 pm

    Thank you for posting this piece. I’m undeniably frustrated with struggling to search out relevant and brilliant commentary on this subject. Everybody now goes to the very far extremes to either drive home their viewpoint that either: everyone else in the planet is wrong, or two that everyone but them does not in truth understand the situation. Many thank you for your succinct, applicable insight.
    cheap balmain jeans http://www.balmainoutlet.online

  17. #17 by Auto Care and Service on 19 de agosto de 2017 - 7:13 pm

    I’ve been absent for a while, but now I remember why I used to love this blog. Thank you, I will try and check back more frequently. How frequently you update your web site?

  18. #18 by Auto Market on 19 de agosto de 2017 - 7:51 pm

    Wonderful goods from you, man. I’ve understand your stuff previous to and you’re just extremely magnificent. I actually like what you’ve acquired here, really like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I cant wait to read much more from you. This is actually a tremendous site.

  19. #19 by Auto Care and Service on 19 de agosto de 2017 - 8:08 pm

    I needed to post you that tiny word to help say thank you yet again over the fantastic opinions you have documented here. This has been really wonderfully generous with people like you to deliver without restraint all that most people might have distributed as an electronic book to generate some cash for their own end, principally seeing that you could possibly have tried it in case you decided. Those things additionally served to be the good way to recognize that other individuals have the identical dreams really like my own to know great deal more regarding this problem. I am sure there are a lot more pleasurable situations in the future for many who start reading your site.

  20. #20 by fitflop outlet online on 19 de agosto de 2017 - 8:10 pm

    May I reference part of this on my blog if I include a link to this webpage?
    fitflop outlet online http://www.fitflopoutlet.store

  21. #21 by roberto cavalli outlet online on 19 de agosto de 2017 - 8:27 pm

    Im acquiring a weird error on the top of all your pages ==> Warning: require_once(../wp-includes/wordpress/entry.php) [function.require-once]: failed to available stream
    roberto cavalli outlet online http://www.robertocavallioutlet.online

  22. #22 by chanel outlet store on 19 de agosto de 2017 - 8:27 pm

    Im Glad i came across this web site.Added allenchu.4rtofclean.com to my bookmark!
    chanel outlet store http://hartlaubinsurance.com/chanel/

  23. #23 by ralph lauren factory on 19 de agosto de 2017 - 8:27 pm

    I really like the structure of your web-site, however I cannot load all of the side section. If you can solve it could be terrific.
    ralph lauren factory http://www.ralphlaurensales.store

  24. #24 by garage roller doors on 19 de agosto de 2017 - 8:27 pm

    Wonderful story, reckoned we could combine a number of unrelated information, nevertheless genuinely really worth taking a search, whoa did one study about Mid East has got far more problerms at the same time

  25. #25 by mammut shoes sale on 19 de agosto de 2017 - 8:28 pm

    Sometimes, I believe non-English spammers attempt to write one thing that is proper English, nevertheless it doesn’t all the time work out that way. Certainly one of my least favourite feedback is “Thanks for this put up, very informative and positively”. I didn’t miss a word. It ends with “positively”. There’s not a lot point itemizing different examples as they hold changing – just watch out for comments that don’t make an entire lot of sense.
    mammut shoes sale http://www.mammutsale.online

  26. #26 by michael kors bags sale online on 19 de agosto de 2017 - 8:28 pm

    Damn, awesome site. I in fact discovered this on aol, and im delighted I did. I will without a doubt be coming back here more often. wish i could add to the posts here as well as deliver a bit more to the table, however am just reading and absorbing just as much facts as I can right now.
    michael kors bags sale online http://www.theguccioutlet.us/michael-kors/

  27. #27 by chanel handbags outlet online on 19 de agosto de 2017 - 8:28 pm

    Thanks pertaining to spreading this particular good content material on your web site. I came across it on the internet. I will check to come back once you publish much more aricles.
    chanel handbags outlet online http://www.long-beach-air-conditioning.com/chanel/

  28. #28 by http://www.krystynheide.com/A-diy-method-on-double-glazing-windows-Installment on 19 de agosto de 2017 - 8:46 pm

    Hey there! Would you mind if I share your blog
    with my facebook group? There’s a lot of people that I
    think would really enjoy your content. Please let me know.
    Thank you

1 577 578 579
(não será publicado)