Jump to content

Shading points


Recommended Posts

Hello

Probably a very basic question...but I have a bunch of points coming in from a 3d capture/photogrammetry process...

I'd like to shade the points, without having to copy geometry onto them...I tried making particles out of them, and used a basic clay shader...but no luck.

Any recommendations? Do I have to create geometry?

Thanks

Link to comment
Share on other sites

Actually let me update my question...

I have a texture I want to apply to my points, but knowing that the points cannot be "shaded", can I take the average color of my texture at each point and apply that color to the points?

Hopefully this makes sense...

Link to comment
Share on other sites

Hello

Probably a very basic question...but I have a bunch of points coming in from a 3d capture/photogrammetry process...

I'd like to shade the points, without having to copy geometry onto them...I tried making particles out of them, and used a basic clay shader...but no luck.

Any recommendations? Do I have to create geometry?

Thanks

Are you talking about viewport shading here? If so then for simple shading all you need are normals. So how about calculating the gradient from a sdf of your points and then just color the points. See this simple example.

simple.hip

Link to comment
Share on other sites

Hmm, not sure I understand your approach...

What I have is a piece of geometry with UV coords and a texture properly mapped to it. What I would like to achieve is to scatter points on this geometry and transfer the color attribs of the texture to the points...

I think the solution might be quite simple and explained here

http://www.sidefx.com/index.php?option=com_content&task=view&id=1423&Itemid=132

But I'm very curious about your approach, which seems really interesting. I'll play around with the hip file, thanks a lot for sending.

Link to comment
Share on other sites

...

What I have is a piece of geometry with UV coords and a texture properly mapped to it. What I would like to achieve is to scatter points on this geometry and transfer the color attribs of the texture to the points...

you can just use AttribFromMap SOP to get color information from texture to your points based on UV attribute

you can as well create pscale attribute to control size of the points while shaded

if you have N on the points then you can even tell mantra to orient points based on N instead of looking towards camera by checking Use N For Rendering in your object in Render/Geometry Tab

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...