[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 toko bunga sidoarjo on 24 de março de 2017 - 4:45 am

    What is the simplest way to search for websites you are interested in?

  2. #2 by http://www.1102eastaustin.com/promo-code-for-carters.html on 24 de março de 2017 - 4:47 am

    C’est sur que mitterand a fait n’importe quoi, mais il est mort y’a plus de 25 ans..Depuis la droite est au pouvoir, alors faut savoir ce qu’elle veut..Petithommr

  3. #3 by Amy on 24 de março de 2017 - 5:06 am

    I really like whzt yyou guys aree up too. Thiis sort of cleveer work aand reporting!

    Keep upp tthe wonderful workks giys I’ve incuded yoou gys too our blogroll.
    I hhave beden surfing online more than 3 hous today, yett I never fojnd
    anyy interesting article like yours. It iis prettty worth
    enojgh forr me. In my opinion, iif alll webmastters and bloggers made good copntent
    ass youu did, tthe wweb wwill bee a llot moe userful thsn ever before.

    I aam sure tbis piece off writiing hhas touched all the intternet people, its really realloy nicfe artocle
    on buildong upp neew website. http://cspan.co.uk

  4. #4 by Kill on 24 de março de 2017 - 5:19 am

    Saved as a favorite, I lije yoiur blog! Greetings! Verry
    usefvul advice inn his particulsr article! It’s tthe
    littlee hanges whifh will make tthe larges changes.
    Thanks ffor sharing! I wil immediately seize your rsss aas I ccan nott find your
    enail subscrtiption link orr e-newsletter service. Do you’ve any?
    Kindly permiit mee recognize so thazt I mmay subscribe.
    Thanks. http://foxnews.net/

  5. #5 by Travel & leisure on 24 de março de 2017 - 5:31 am

    Thank you for some other informative website. The place else could I am getting that kind of info written in such an ideal way? I have a undertaking that I’m just now operating on, and I’ve been at the look out for such info.

  6. #6 by http://www.bmx-saintquentin.com/flats.asp on 24 de março de 2017 - 6:22 am

    It is really very. I like that it a lot. That the quote is adorable and also container covered when nice bow. It’s not the most awesome bracelet actually, however for the price information technology exceeds my personal objectives. Can’thold off at bring that it and my mother to Mother’s Day!

  7. #8 by Travel & leisure on 24 de março de 2017 - 6:45 am

    I am always looking online for articles that can help me. Thank you!

  8. #9 by http://www.wababaseball.com/taylor-swift-promotional-codes.html on 24 de março de 2017 - 6:46 am

    “…když jako první pÅ™iÅ¡el s jasnou koncepcí reformy zdravotnictví a když mÄ›l podporu nemocničních lékařů.”Myslíte tu reformu, která se ukázala být jako protiústavní a soud ji smetl ze stolu ? :) ta podpora lékařů – tím myslíte ty demonstrace v Praze ?? Chjo. :))

  9. #10 by Travel & leisure on 24 de março de 2017 - 7:17 am

    I cling on to listening to the news broadcast speak about receiving boundless online grant applications so I have been looking around for the best site to get one. Could you advise me please, where could i acquire some?

  10. #11 by toko bunga gresik online on 24 de março de 2017 - 7:28 am

    Will a computer engineer play a important role in designing an aircraft?

  11. #12 by Travel & leisure on 24 de março de 2017 - 7:40 am

    This is very interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your great post. Also, I’ve shared your website in my social networks!

  12. #14 by Arlie Daugherty on 24 de março de 2017 - 9:17 am

    Nice weblog here! after reading, i decide to buy a sleeping bag ASAP

  13. #15 by content samurai alternative on 24 de março de 2017 - 9:23 am

    An impressive share, I just given this onto a colleague who has been doing small analysis within this. Anf the husband actually bought me breakfast because I came across it for him.. smile. So i want to reword that: Thnx to the treat! But yeah Thnkx for spending some time go over this, I am strongly regarding this and adore reading read more about this topic. If it is possible, as you become expertise, could you mind updating your blog site with additional details? It can be extremely great for me. Huge thumb up because of this short article!

  14. #16 by Travel & leisure on 24 de março de 2017 - 9:26 am

    I happen to be commenting to make you be aware of what a fine encounter my friend’s child found reading your site. She realized a wide variety of things, with the inclusion of what it’s like to possess an excellent giving spirit to let the mediocre ones without hassle learn about a variety of complicated subject matter. You undoubtedly surpassed my desires. I appreciate you for showing such good, dependable, explanatory and in addition cool tips on this topic to Evelyn.

  15. #17 by Travel & leisure on 24 de março de 2017 - 9:50 am

    Hi there, just became aware of your blog through Google, and found that it is really informative. I am gonna watch out for brussels. I’ll be grateful if you continue this in future. A lot of people will be benefited from your writing. Cheers!

  16. #18 by Apple iPhone on 24 de março de 2017 - 10:00 am

    Incredible points. Sound arguments. Keep up the good work.

  17. #19 by las vegas local in seo on 24 de março de 2017 - 10:09 am

    The best las vegas seo is here. Their las vegas seo expert, consultant, experts and consultants are the best from all the las vegas seo companies. Check out their SEO Las Vegas today.

  18. #20 by cheap auto insurance on 24 de março de 2017 - 10:23 am

    Thanks regarding good information which directly support choosing new positions. The best feature to apply rates goes free compare that provides the best offers for rental insurance policies provided by high ratings agents as american family in USA.

  19. #21 by http://www.warburtongallery.com/phone-number-for-unitrin-auto-insurance.html on 24 de março de 2017 - 10:28 am

    Girl yes you betta give that word. LOL..Also just remember that some situations are not healthy and God allows some things to move us closer to him and if that means leaving a place that may or may not have dissappointed you, you must move. I am learning the hard way when the Lord says move you better move. However, I am using that word figuratively.

  20. #22 by austin companies in seo on 24 de março de 2017 - 11:04 am

    The best Austin seo is here. Their Austin seo expert, consultant, experts and consultants are the best from all the Austin seo companies. Check out their SEO Austin today. Both Austin SEO and SEO Austin is available.

  21. #23 by http://www.tier1graphicsusa.com/can-you-have-two-insurance-policies-on-your-car.html on 24 de março de 2017 - 11:07 am

    Espero que se solucione todo lo antes posible.Es una pena, despues de todo lo que han sufrido, cuando parecia que las cosas se estaban calmando ,empieza otra vez la incertidumbre.

  22. #24 by car insurance jensen beach on 24 de março de 2017 - 11:09 am

    Please let me know dates parents can address the Board regarding Newport High School possible boundary changes, with a very short presentation. Thank you.

  23. #25 by digital marketing careers on 24 de março de 2017 - 11:22 am

    Valuable information. Lucky me I discovered your web site by chance, and I am stunned why this coincidence did not came about earlier! I bookmarked it.

  24. #26 by Horace Mouldin on 24 de março de 2017 - 1:14 pm

    Can I just say what a aid to find somebody who actually knows what theyre talking about on the internet. You undoubtedly know learn how to convey a difficulty to mild and make it important. More individuals have to read this and perceive this facet of the story. I cant believe youre no more well-liked because you definitely have the gift.

  25. #27 by the reliance general insurance co ltd on 24 de março de 2017 - 1:18 pm

    Good to see a talent at work. I can’t match that.

  26. #28 by home on 24 de março de 2017 - 1:32 pm

    I merely want to tell you that I am new to writing a blog and clearly loved your article. Probably I am inclined to store your blog post . You literally have extraordinary article information. Like it for giving out with us your very own blog report

  27. #29 by how to figure car insurance on 24 de março de 2017 - 1:41 pm

    If one knows where to, the world will give way.World-class brandsThe top fabric produced in France is 100%Italy's top outdoor brandsGood quality and function, more accord with fashionable designHigh-grade, innovation, the trend of the brandThe quality is so goodYoung and creative style

  28. #30 by Eduardo Shonkwiler on 24 de março de 2017 - 2:47 pm

    porn movie

  29. #31 by kanker hati on 24 de março de 2017 - 3:43 pm

    How do you start building a WordPress site intended for an old website?

  30. #32 by http://www.ukkelberg.no/userfiles/html/408.html on 24 de março de 2017 - 4:12 pm

    it comes down within a perfect box seems very good still the a bit small really of my mothers wrist but it styles ideal just wish it is much longer

  31. #33 by Hotels on 24 de março de 2017 - 4:24 pm

    As soon as I observed this internet site I went on reddit to share some of the love with them.

  32. #34 by yeezy boost 350 v2 on 24 de março de 2017 - 5:43 pm

  33. #35 by austin consultants with seo on 24 de março de 2017 - 5:49 pm

    The best Austin seo is here. Their Austin seo expert, consultant, experts and consultants are the best from all the Austin seo companies. Check out their SEO Austin today. Both Austin SEO and SEO Austin is available.

  34. #36 by http://www.yosemitesoap.com/how-to-find-out-a-national-insurance-number.html on 24 de março de 2017 - 6:12 pm

    Thank you so much for linking up. I am so thankful for your sweet Noah and what I have seen in you though your care and love for him! I am also so very thankful that we've been able to connect with each other again.

  35. #37 by http://www.yosemitesoap.com/compare-car-insurance-no-deposit.html on 24 de março de 2017 - 6:32 pm

    No he visto la peli, pero el libro me pareció cojonudo… claro que yo soy más de leer que de cine. Gracias por tu no-recomendación, otra peli más a no ver

  36. #38 by american west tours on 24 de março de 2017 - 7:35 pm

    There is noticeably a bundle to know about this. I assume you made certain nice points in features also.

  37. #39 by http://orestadsbygg.se/bilder_ref/426.html on 24 de março de 2017 - 8:33 pm

    it comes down within a breathtaking package appears ideal however their somewhat slight really towards my personal mothers wrist but it appearance ideal just desire things ended up being longer

  38. #40 by 1 healthy food on 24 de março de 2017 - 8:37 pm

    The info mentioned in the write-up are a number of the most effective out there

  39. #41 by harta gono gini on 24 de março de 2017 - 8:39 pm

    What is the top blogging site in the United States?

  40. #42 by hermes h belt replica on 24 de março de 2017 - 8:58 pm

    Very good headphoneschoose, nicely cost then exactly what was shown. Stunning gift box then poem even enclosed. Ideal concerning mother’s day!

  41. #43 by st george chiropractor on 24 de março de 2017 - 8:59 pm

    Thank you ever so for you article post.Really looking forward to read more. Really Cool.

1 348 349 350
(não será publicado)