Jump to content

Recommended Posts

hi guys.here trouble you again.

i am trying to medelling the chinese fan,my thought is shift the primitive list as second input of wrangle node.then sue the input0 primitive vertex 1&2  and input1 primitive vertex 3&4,but i do not know how to write the vex correctly.

may you kind guys would gime me some tips or snippet code.

appreciate very much.

regards.

QQ图片20200202141750.jpg

ChinaFan_Mic.hip

Share this post


Link to post
Share on other sites

change this:

int p2 = i@parm[2];
int p3 = i@parm[0];

to this:

int p2 = i[]@parm[1];
int p3 = i[]@parm[0];

 

Share this post


Link to post
Share on other sites
1 hour ago, anim said:

change this:


int p2 = i@parm[2];
int p3 = i@parm[0];

to this:


int p2 = i[]@parm[1];
int p3 = i[]@parm[0];

 

wow,you are my idol.reply so quickly and clearthank you so much.

and here again another question.how to keep undistroting  the uv texture.the texture pic and hip is attatched below.

 

ChinaFan_Mic.hip

ink.gif

timg.jpg

Share this post


Link to post
Share on other sites

Hi,

You can use the circle with xyzdist() to get uv coordinates. The x coordinate can be used directly (but should be transformed by fit function to match 0 to 1). The y-value should be 0 or 1 (0 if close to circle and 1 if not).

On the other hand, if you create the surface parametrically you can set the uv-coordinates directly.

One way might be using skin from a set curves (check Konstantins example) another method maybe using two guide curves to interpolate the inbetween values.

 

ChinaFan_Mic_uv.hipnc 

ChinaFan_Mic_uvA.hipnc

P.S: get uvxmin, uvxmax automatically

 

 

china_fan.hipnc

Edited by Aizatulin

Share this post


Link to post
Share on other sites
On 2020/2/3 at 5:23 AM, Aizatulin said:

Hi,

You can use the circle with xyzdist() to get uv coordinates. The x coordinate can be used directly (but should be transformed by fit function to match 0 to 1). The y-value should be 0 or 1 (0 if close to circle and 1 if not).

On the other hand, if you create the surface parametrically you can set the uv-coordinates directly.

One way might be using skin from a set curves (check Konstantins example) another method maybe using two guide curves to interpolate the inbetween values.

 

ChinaFan_Mic_uv.hipnc 

ChinaFan_Mic_uvA.hipnc

P.S: get uvxmin, uvxmax automatically

 

 

china_fan.hipnc

thank you very much Aizatulin.i have learned a lot knowledge from you.

regards.

  • Like 1

Share this post


Link to post
Share on other sites
On 2020/2/3 at 10:33 AM, Noobini said:

ok here's my go...dunno much about UV tbh...

 

ChineseFan.jpg

vu_ChineseFan.hiplc

appreciated for you reply with the smart method.thanks very much Noboini.

regards.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×