# Mobius transformations

## Recommended Posts

I'd like to know if anyone has done something like this in Houdini? Applying a mobius transformation to a simple grid for

example? The formula looks straight forward....if you can read maths, which I can't!

I've been looking around for code examples of

a Mobius transformation but haven't found any good examples which I could reproduce in Houdini. It would be interesting to hear

if any one has done something like this, or can translate the equation into readable code for a non-mathematician

Edited by sessionbeer

##### Share on other sites

Macha did:

but reading the video description kind of hurts my brain

@Macha can you shed some light on how u did it and whats going on?

##### Share on other sites

it´s pretty easy to do by using complex numbers. just take a look at the attached file and play with the settings.

hth.
petz

• 7

##### Share on other sites

@petz, I can finally do this.

• 1

##### Share on other sites

Finally we have a thread that has more disturbing images than the differential growth thread!

• 1

##### Share on other sites

Thanks for your reply @petz your code is far more simplistic then some of the examples I have been looking through! Very interesting. Thanks again

##### Share on other sites

I couldn't let this one go; python sop is a little slow (though having a built in complex type is super handy), thought I'd try and port it to vex.

This is substantially faster than the python one, the code is a little messy. Tried to get a complex struct happening too, but that got boring really quickly, so just abused some vector2 variables instead.

Interesting that there's some errors in the vex one that aren't apparent in the python one; not sure if that's due to vex precision errors, or because my complex divide function isn't doing the right thing; I found a few C examples of dealing with complex number, some did lots of tests within their divide functions for when values were near 0, I went lazy and found another example that did no testing at all....)

-matt

• 6

## Create an account

Register a new account