Jump to content

93 to infinity


brianburke

Recommended Posts

Hi guys. I'm wondering what numbers I should use to tell Houdini "infinity". For example, in a max() function I want to make a number dip as low as possible but never to zero, what number should I use. On the other end, what should I use to set the maxdist of a ray tracing function to the maximum possible? I tend to just put a bunch of zeros or a bunch of nines, but surely there's something more correct to put?

Thanks!

Link to comment
Share on other sites

Hi guys. I'm wondering what numbers I should use to tell Houdini "infinity". For example, in a max() function I want to make a number dip as low as possible but never to zero, what number should I use. On the other end, what should I use to set the maxdist of a ray tracing function to the maximum possible? I tend to just put a bunch of zeros or a bunch of nines, but surely there's something more correct to put?

Thanks!

I'm pretty sure that for maxdist in ray-tracing functions, if you set it to -1, mantra will choose the maximum distance for you.

Otherwise, use the defines in limits.h (the single precision limits would be suitable I think)

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