Jump to content

ezza

Members
  • Content count

    7
  • Joined

  • Last visited

Community Reputation

2 Neutral

About ezza

  • Rank
    Peon

Personal Information

  • Name
    ezza
  1. I cannot say how much I'm thankfull!! thas exactly what I was looking for, next exercice icosphere! I may come back for other noob questions!! thks a lot, great forum!!
  2. hello, I'm trying to mesh a group of point, from an array. It gives a meshed sphere but with hole, and overlapping points. I guess I shd use some condition but I'm not really sure how.. int total =40; int prim; float r = 200.0; float lon = -($PI); //-pi,pi float lat = -($PI)/2;//-pi/2, pi/2 float step_lon = lon/total; //angle sur la longitude float step_lat = lat/total;//angle sur la latitude int globe[] = {0,0,0}; for (int i=0 ; i<total+1; i++){ for (int j=0; j< total+2; j++){ //polar to cartesian float x = r * sin(lon) * cos(lat); float y = r * sin(lon) * sin(lat); float z = r * cos(lon); //vector pos vector pos = set(x,y,z); //feed array, create points sphere globe[j]=addpoint(geoself(), pos); int v1 = globe[j]; int v2 = globe[j+1]; int v3 = globe[j+2]; prim = addprim(geoself(), "poly"); addvertex(geoself(), prim, v1); addvertex(geoself(), prim, v2); addvertex(geoself(), prim, v3); //setpointattrib(geoself(), "lat", v1, j, "set"); // setpointattrib(geoself(), "lat", v2, j+1, "set"); //setpointattrib(geoself(), "lat", v3, j+2, "set"); lat += step_lat; } lon +=step_lon; } IT Looks like it miss half of the primitives. thks HIP FILE : sphere_od.hipnc
  3. Superformula 3d

    hey, looks pretty ,nice! Do you know how to put biud a mesh with this? I found this video where he made it in processing thks a lot for your answer!!!!!!!!!
  4. superformulas.hipnchi guys, i'm new to houdini, trying to translate in vex the Superformula 3d http://paulbourke.net/geometry/supershape/ I did a tuto that create superformula in 2d. Definition of supershape in 2 dimensions. But im stuck in implementing the Extension to 3D using the spherical product. I don't know how to bound my angles beetween -PI and PI and -PI/2 to PI/2 and also if I need to create normal. then Ill create a mesh. Here is my hip file. Thks for reading, salve! reference :https://en.wikipedia.org/wiki/Superformula http://mysterydate.github.io/superFormulaGenerator/ HIP FILE: superformulas.hipnc
×