Jump to content

Morphing and instansing


VeTaL
 Share

Recommended Posts

Okay, i know that the best way of doing this is shader, but....

 

I have model of fat and thin face... now i want to get a new model: i get every vertex of first model, then from second model, got an equation of "division of the segment in a given ratio" and a coefficient (A).

 

if A = 0 then each vertex of new face is on the place of vertex from first face (they are similar)

if A = 0,5 then i have my own face - between first and second

if A = 1 then my face is similar to second face

 

The question is: do anybody work on this before using Leadwerks? Is this idea effective?

And what about instancing: if i would move one vertex of instanced model, wouldnt all other models change?

Working on LeaFAQ :)

Link to comment
Share on other sites

I can't see any reason why this wouldn't work although as you say probably more efficiently executed by a shader on the GPU, however as you point out you wouldn't be able to indiviually alter instanced models.

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Link to comment
Share on other sites

I decied to use not "division of the segment in a given ratio", but equotion

X = (1-A) * X1 + A * X2, where A comes from 0 to 1

 

post-648-0-10101300-1309094914_thumb.png

post-648-0-79004800-1309094927_thumb.png

post-648-0-65756400-1309094934_thumb.png

 

This works, but no instancing: looking like i really need to find someone, who knows shaders well :)

Working on LeaFAQ :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...