Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Skybar

Subdivided sphere issue

I got a couple of spheres I want to render with refraction. They are pretty low res, and I wanted to subdivide them at rendertime. However the poles get all screwed up (see pictures) and this is clearly visible in the refraction. I've noticed this lots of times before but it never really was an issue. 

 

Is there an easy fix for this? Probably a noob question but I have no clue really. I could go back and use the "polygon"-sphere (made up of only tris) instead, but then I'd have to resim and all that.

 

Cheers!

 

post-9276-0-61314300-1452516204_thumb.jppost-9276-0-21390100-1452516209_thumb.jppost-9276-0-82387500-1452516213_thumb.jp

Share this post


Link to post
Share on other sites

When I want a sphere without pole issues I will use a sub-divided box.

post-12295-0-60121600-1452525350_thumb.j

Edited by Atom
1 person likes this

Share this post


Link to post
Share on other sites

You can idealize bad-shaped sphere with something like this:

vector min, max;
getbbox(min, max);

vector center = avg(min, max);
float radius = avg(max - min) / 2;

// Spherify.
@P += center;
@P *= radius / length(@P);

// Spherical normals.
@N = normalize(@P - center);

Replacing geometry completely with NURBS sphere using Match Size SOP is the best solution, probably. Why have to resim?

spherify.hipnc

Edited by f1480187
1 person likes this

Share this post


Link to post
Share on other sites

When I want a sphere without pole issues I will use a sub-divided box.

or use a geodesic "Polygon" in Houdini sphere topology

 

 

if you want to subdivide afterwards,

I would still do this in combination with something like the vex wrangle mentioned before.

 

especially if you are using the subdivided cube approach

Share this post


Link to post
Share on other sites

i gotta admit...noobs like me got it easy these days...just take a look how easy it is to Spherify something in H16...and set normals in the same node...but what if the object is not at Origin ? well dive in the file and see...

Spherify1.jpg

 

more shenanigans in video..

 

Spherify_H16.hipnc

Edited by Noobini

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