Jump to content


Finding solution of a quartic "Visually".


  • Please log in to reply
7 replies to this topic

#1 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 13 January 2012 - 11:24 PM

Hello folks,

It may look like i am asking for high school home work help.

But how many different ways can we find zeros of following attached(or any) polynoimal in houdini. if the solution exist.


As usual the method i come up first is not the most efficient one.

All ideas are welcome.  :)

Cheers,

p.s. - Houdini will make a badass graphing calculator.

Attached Thumbnails

  • polynomial.jpg

Attached Files


Eh *munch munch* what sop, doc?

#2 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 14 January 2012 - 03:52 AM

Ah.. Forgot to attach the most obvious one.

Attached Thumbnails

  • roots.jpg

Eh *munch munch* what sop, doc?

#3 michaelw

michaelw

    Peon

  • Members
  • Pip
  • 21 posts
  • Joined: 22-December 11
  • Name:mike w

Posted 14 January 2012 - 04:15 AM

hi, just got two approaches. Clip SOP and Ray SOP :)

Attached Files



#4 Andz

Andz

    Houdini Master

  • Members
  • PipPipPipPip
  • 758 posts
  • Joined: 28-March 05
  • Location:Curitiba - Brazil
  • Name:Anderson Baptista

Posted 15 January 2012 - 05:50 PM

Hei Vectorblur, I'm more comfortable using the isosurface for such things, it already has the bounds built in so you can clamp it to 0 in the Y and Z axis.

Yes, I use Houdini as a graphic calculator, specially for surfaces.

Attached Thumbnails

  • Captura de tela em 2012-01-15 23:48:50.png

Andz
My blog

#5 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 16 January 2012 - 12:05 AM

Thanks guys,

Hi mike - nice ones :)

Hi Andz - Isosurface is Even better.. It never clicked me to use it as a function plotter.

I think one learns houdini faster seeing how other folks use it.

However I have few more questions.

1. What method isosurface sop is using to convert a surface from implicit representation ?  

2. How would you go about graphing curves and surfaces which have parametric representations ?

3. I may be completely off on this one by asking "Can chops be used to find the intersection of ty with x axis.

I can barely spell chops at this point but some how it seems the right context to deal with graphing. Am i wrong ?


e.g. if i fetch the point sop in my first example using geometry chop. It samples the point position in  Tx,Ty,Tz and returns graph of channels.

Can this info be used ?  


Thanks,
Eh *munch munch* what sop, doc?

#6 Andz

Andz

    Houdini Master

  • Members
  • PipPipPipPip
  • 758 posts
  • Joined: 28-March 05
  • Location:Curitiba - Brazil
  • Name:Anderson Baptista

Posted 16 January 2012 - 04:19 AM

View Postvectorblur, on 16 January 2012 - 12:05 AM, said:

2. How would you go about graphing curves and surfaces which have parametric representations ?

That's a good question, I have never had the need to use a parametric form. Can you give an example?

Edited by Andz, 16 January 2012 - 04:19 AM.

Andz
My blog

#7 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 16 January 2012 - 09:45 AM

View PostAndz, on 16 January 2012 - 04:19 AM, said:

That's a good question, I have never had the need to use a parametric form. Can you give an example?

Hi Andz,

We could probably take something as simple as an ellipse.

x($T )  = $WIDTH * Cos($T)
y($T) = $HEIGHT * Sin($T)

0<=$T<=2$PI

Whose implicit form will be ($X/$WIDTH)^2+($Y/$HEIGHT)^2 -1 =0

Now when i think about it. Doing it with pops makes more sense as to me.
e.g. A particles moving in ellipse, its velocity can be given as
V($T) = (- $WIDTH *sin($T),$HEIGHT cos($T) in terms of parameter $T.

Pls check the attached file to see if it makes sense.

Now how about a couple of curves in polar form like
Logarithmic spiral : r = e^0.20 , Henri's Butterfly : r = (sin40)^2+cos30  
:) :)

Cheers,

Attached Thumbnails

  • parametric.jpg

Attached Files


Eh *munch munch* what sop, doc?

#8 Andz

Andz

    Houdini Master

  • Members
  • PipPipPipPip
  • 758 posts
  • Joined: 28-March 05
  • Location:Curitiba - Brazil
  • Name:Anderson Baptista

Posted 16 January 2012 - 10:24 AM

I'll give a look at the file tonight from home.

The only time I remember that I actually needed something in a parametric form (looking at it as an actual application wise) was due to software lack.  I needed to have an arbitrary point of rotation for objects on a game engine that only recognized the top left corner of objects as it's centre of rotation.

Edited by Andz, 17 January 2012 - 07:24 AM.

Andz
My blog




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users