Jump to content

Rendering lines and width attribute


KiLa

Recommended Posts

Is there a way to define the ‘width’ attribute, that Mantre uses when rendering lines, inside shader/material? I tried to export one from shader but Mantra doesn't seem to use it. Only way (so far) that does seem to work is to define it outside shader.

Cheers
-k

Link to comment
Share on other sites

you can't define it in the surface shader as at that point it's already too late (surface shader is executed upon ray intersection with the curve, and in order to get that intersection width had to be already known)

what you can do however is one of the following:

- create width attribute wide enough to cover all your needs and then in surface shader use parametric s coordinate to control the opacity of the shader, therefore you can make the curve appear thinner than it is so essentially give you ontrol to define any thickness lower than the initial width

- create hengine curve procedural that will set the width attribute on the geometry at rendertime 

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.

×
×
  • Create New...