Jump to content

Distance from center in shops


Recommended Posts

I've had things not to match in SHOPS from SOPS too, and I don't exactly know why. But one thing you can do to get your attribute in SHOPS is to store it in sops using a bind export, and then in SHOPS simply place a parameter node and read back your attribute. it should match exactly. You can later use a fit or a ramp to adjust it in SHOPS and not see the ugly poly edges in case it's not too high poly.

Link to comment
Share on other sites

1 hour ago, GreenGuy said:

Yeah I thought so, I tried transforming it into world space, but that does not seem to do anything...

Should be something like in pic. That's SHOP, ''current'' space is camera.

spacetransform.png

Link to comment
Share on other sites

14 minutes ago, GreenGuy said:

yes, I did that. I just put a transform node between the P and the multiply.(To apply it to your example)

Well, then something else went wrong. From my small experience, it works....

Link to comment
Share on other sites

14 hours ago, Jesper Rahlff said:

if that classic shader is located at /obj/shop try to move it to /obj/mat  instead

Hey, so I did that and it did not really do anything. But it solved a couple of other problems I had, so thank you. Did not expect for shops to fall apart so quickly.

Link to comment
Share on other sites

1 minute ago, amm said:

Well, then something else went wrong. From my small experience, it works....

Yeah, seems like it I am probably not calculating the centroid the right way. How would you do it? I really have no clue how to do it in a shader, but in a point vop I can just average the bounding box outputs...

Link to comment
Share on other sites

3 hours ago, GreenGuy said:

Hey, so I did that and it did not really do anything. But it solved a couple of other problems I had, so thank you. Did not expect for shops to fall apart so quickly.

I am glad it at least solved something.. I dunno why but I find that shops throws me wonky errors now and then, so i started to use /mat context instead and it seems to work better.

 

any chance you can share the hip file? a bit easier to help trouble shoot with a file to look at 

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