Skip to content

Godot Plugin for Houdini Vertex Animation Textures

License

Notifications You must be signed in to change notification settings

G4ND44/Godot_VAT3

Repository files navigation

Godot VAT3

vatPreview

Godot Plugin for Houdini Vertex Animation Textures

This is port of Houdini VAT3 for Godot, based on Unity And Unreal versions.

It has two parts: modified Houdini Plugin and Godot Shaders


Godot Install

To use it in your project you just need to copy VAT3_GodotEngine folder

godot windows opt tools 64_sgaY8XgMUB


HDA instalation

Copy driver_labs.vertex_animation_textures.3.1.hdalc to yours HDA folder

explorer_voT4TFylKj

Usage in shader

First you need to declare type and include library

godot windows opt tools 64_oQiP9u25D3

Available modes:

VAT3MODE_SOFTBODY

VAT3MODE_RIGIDBODY

VAT3MODE_DYNAMICMESH

VAT3MODE_PARTICLES

Then you need to grab the material inputs and apply them on the shader

godot windows opt tools 64_Lss9aTwnsp

Vat3_Outputs struct provides some outputs, which then can be used futher in the shader. See examples


More avaible keywords:

VAT_OUTPUT_FULL // gives some additional data for futher use in shader

NO_VAT_NORMAL // disable normals calculations, usefull when used with no shading

NO_VAT_TANGENT // disable tangent calculations, use it when you dont need tangent for normals

VAT_USE_COMPRESSED_NORMALS // use normal from position texture alpha instead of rot textures

NO_LERPING // disables all calculations and variables for interframe lerping

VAT_LOAD_COL_TEX // load vertex color texture

VAT_LOAD_SPARE_COL_TEX // load spare vertex color texture

VAT_SMOOTH_TRAJECTORIES // smoothing rigid body trajectiores, use it when lerping is not enough

Loading data for shaders

For meshes disable any lod, tangent and uvs generation

godot windows opt tools 64_7KKqIvvG1d godot windows opt tools 64_YFc6Ddp9yr

When importing texture (HDR or LDR) disable any compresion

godot windows opt tools 64_6u06dBE1aJ

For convinience you can use vatSetUnifroms for loading data from JSON to material. Rest of setting on material is set up manually. godot windows opt tools 64_8d0pnigQUh

Houdini VAT generation

With modified version you have to change engine for Godot

hindie steam_KlZQ9TVTco

You will also need a JSON file

hindie steam_MV81fVp2mN

You need too change Include type to Decide Individually

hindie steam_sef5K5t2Us

When exporting, remember to change extension to gltf It is important since only gltf have proper scale and supports 4 uv channels

hindie steam_b7n6T9Ks95

It is also good pratice to have the frame count, since JSON does not receive this information

hindie steam_1hCW0RYyCa

Big shoutout to Celyk for helping with the Quaterions formula, JSON loader, testing, and providing feedback https://github.com/celyk

About

Godot Plugin for Houdini Vertex Animation Textures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published