Author Topic: Vertex Animation method? (flag in wind)  (Read 255 times)

kinggambit

  • Newbie
  • *
  • Posts: 38
  • Karma: +1/-0
  • Acolyte
    • View Profile
Vertex Animation method? (flag in wind)
« on: January 26, 2017, 07:57:09 PM »
I have a cursory understanding of animation so please forgive any misunderstandings. I've been struggling with vertex animation for a flag in the wind.

So far I've baked my wind-simulated cloth modifier (No bones/skins used) into a bunch of shapekeys(?) as an Editable Mesh: https://gfycat.com/AstonishingOfficialAmazontreeboa

Could someone guide me in the right direction? I got lost in all different pages I've read that all seem to use different methods and formats and types of animations. My best guess so far is to attach my flag to a bone, create a VTA, then let WW compile the VTA?

Some of the pages I've read up on:
http://dev.wallworm.com/document/161/advanced_bone_settings.html
http://dev.wallworm.com/topic/57/dmx_smd_and_vta_exporter.html
https://developer.valvesoftware.com/wiki/Vertex_animation
https://developer.valvesoftware.com/wiki/Flex_animation
https://developer.valvesoftware.com/wiki/Creating_Flex_VTA_files_with_3D_Studio_Max

« Last Edit: January 26, 2017, 08:02:21 PM by kinggambit »

wallworm

  • Administrator
  • Hero Member
  • *****
  • Posts: 3249
  • Karma: +94/-1
  • Behind me?
    • View Profile
    • Wall Worm Tools
Re: Vertex Animation method? (flag in wind)
« Reply #1 on: January 26, 2017, 11:06:54 PM »
In my opinion, you'll get more mileage by using $treesway.

I'd not try doing vertex animations for a flag, honestly.

But of course if someone does it and it looks good and is efficient, i'd be happy to see it.
Shawn Olson
Author of the Wall Worm Model Tools

Joris Ceoen

  • Global Moderator
  • Full Member
  • *****
  • Posts: 198
  • Karma: +22/-0
  • WallWorm Ambassador
    • View Profile
    • GamingReviews
Re: Vertex Animation method? (flag in wind)
« Reply #2 on: January 28, 2017, 01:35:54 PM »
To support Shawn's opinion, yes, the amount of stress a flex animation would add to the simulation is not worth it. Either an animation with bones (which would be considered really cheap) or using $treesway would be better options.

Doing with bones is good because the effect can be mimicked very closely, and it's by far the cheapest. The advantage with $treesway is that it can look very realistic since it'll be affected by the env_wind entity, though it is probably more 'expensive' than just an animation. However, I think that the $treesway option takes advantage of the GPU, which is also good.
de_cathedral (WWMT map: http://csgo.gamebanana.com/maps/181217)
de_pontifici (WWMT map: http://www.wallworm.net/index.php/topic,1261.0.html)
space_marble_unlimited (WWMT map: http://csgo.gamebanana.com/maps/185591)
surf_greatriver_2015 (WWMT map: http://csgo.gamebanana.com/maps/187811)