VeTaL Posted June 24, 2011 Share Posted June 24, 2011 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? Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Pixel Perfect Posted June 25, 2011 Share Posted June 25, 2011 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. Quote 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 More sharing options...
VeTaL Posted June 26, 2011 Author Share Posted June 26, 2011 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 This works, but no instancing: looking like i really need to find someone, who knows shaders well Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Recommended Posts
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.