Pages

Wednesday, February 6, 2013

Capillaries are fractals too....



blood vessels



Definition:  

Capillaries are the smallest of a body's blood vessels and are parts of the micro circulation.


Went to body works the other day and loved the display with the blood vessels, so tired to make my own representation of that. Looks pretty cool.



And this fits in with my whole "fractal fascination" that I have at the moment. Hooray for fractals! \:D/


Thursday, January 31, 2013

Fractals.....


I know, I know fractals have been done to death and all that - but I like them so - I'll be playing with fractals a bit too :D




I started with a simple - or at lest what I thought would be simple - 90 degree angle fractal that just scales from big to small....




It was interesting getting the right-angles because of the iteration step, here's that ICE Tree on the rotation stuff.

loop right angles in 3d
*click to make bigger*



 But all and all I was quite happy with this exercise. It showed me just how little I understand about fractals so obviously after that....

... I went and made a tree...

tree in softimage
*click to make bigger*

Tree built in ICE
*click to make bigger*


Yeah, that was fun but still....

 what are fractals really anyway? Are there rules? What makes a fractal a fractal and not just some pretty pattern?

Wikipedia saysFractals are typically self-similar patterns, where self-similar means they are "the same from near as from far". Fractals may be exactly the same at every scale, or, they may be nearly the same at different scales. The definition of fractal goes beyond self-similarity per se to exclude trivial self-similarity and include the idea of a detailed pattern repeating itself.

I for one will be posting loads more on fractals as I play with them :D

For some cool stuff on fractals and doodling click on the triangle below...




Monday, January 7, 2013

Finite subdivision rule, or not...







Starting with a simple cube, I took the for corner points and  scaled them linearly into infinity (Finite subdivision rule) with a counter.


*click to make bigger*

add a sin wave too that and you get some really cool looking not so random "random values"

*click to make bigger*

I love the symmetry

*click to make bigger*

*click to make bigger*

*click to make bigger*

*click to make bigger*

*click to make bigger*

Using a triangle instead of a cube makes for great lines

*click to make bigger*

and a disk looks like those old school windows in church.

*click to make bigger*

*click to make bigger*

This is what it looks like when I apply it to a cylinder, it makes an epic flower...


ICE tree of the flower.

*click to make bigger*


Happy new year WEEEEEEEEEEEEEEE \:D/

Friday, December 7, 2012

Area Autodesk feature.......



We got mentioned on autodesk \:D/


Autodesk link

I did a brief Tutorial on the setup of feathers we used in Khumba, this is still very much a work in progress :D



hardware render of that setup ......



If you want to download these nodes to try them out, go to Triggerfish and click on the feather icon on the page.

Monday, December 3, 2012

Triangle Area...



Continuing on with the calculating of area... lets look at triangles.
 There are tons of ways to get the area of a triangle so.....


Here is a link to wikipedia's section on Triangles .


I went with Heron's Formula, simply because I had all the edge/side lengths worked out already. Here is what my scene looks like...

Heron's formula in softimage ICE
*click to make bigger*

I drew a linear curve with three points for my triangle.





The black value(area=√( s(s-a)(s-b)(s-c) )) is the area of the triangle, the orange value(cos C = (a^2 + b^2 - c^2)/2ab) is the corner angle of Point_02_Null. The light green value(s = (a+b+c)/2) is half the length of the perimeter of the triangle.


Lets go look at all this in ICE.

To start I made a little cluster to null constraint so I could move the triangle points around freely. I named them Point_01_Null, Point_02_Null and Point_03_Null. *something to keep in mind is that one of your points will be numbered 0, and be on 0,0,0. I just moved mine off the origin. In the wikipedia they go into a whole section on this.*

Null Constraint In ICE Softimage

Point Nulls 01,02,03

Here's what that constraint looked like in ICE.

Cluster to Null ICE/Softimage


Then I worked out the length and center of the three sides.

Edges of a triangle in Softimage

Side A, B and C letters where stuck too the curve by a standard Softimage constrain between two points.


Center of side

Using a linear blend between the two nulls was the fastest why to get the center point on the curves

Linear Blend Between two nulls in ICE


Using the distance between node, I got all three sides lengths and then added them together to get the perimeter of the whole triangle.

Length of three sides of a triangle in softimage/ice

curve length of a triangle

Here's what the inside of the compound "length of C" looks like....

Length of three sides of a triangle in ICE


Next I tested the side lengths with the curve length to see if the perimeters matched up.

perimeter length of a triangle


Now I could work out the angles of the triangle using the law of cosin:

cos C = (a^2 + b^2 - c^2)/2ab

the law of cosin in Softimage

Here's what the ICE tree looks like...
 *note I had the to use ArcCos to get the right answer*

law of cosin in ICE


Last I worked out the Area of my triangle using Herons Formula.

Herons formula for area in softimage

This formula has two parts to it, the first being:
(s = (a+b+c)/2   which gets half of the perimeter, and then
 area=√( s(s-a)(s-b)(s-c) ) which uses the value s to work out the area.

Herons formula for area in ICE

Here's what those two sums look like....

S=(a+b+c)/2

Taking the ready made side lengths(A, B and C) and subtract the value s from them. Multiply those answers with the value s. Then all thats left is to get the square root of that and you have the area of the triangle.

the area of a triangle in softimage


END :D


Thursday, November 22, 2012

Square Area....


Square
*click to make bigger*

Definition:

 A Square is a flat shape with 4 equal sides and every angle is a right angle (90°) and opposite sides are parallel.


Diagonals...


A square has two diagonals, they are equal in length and intersect at the middle point.

Diagonal square

The Diagonal is the side length(a) times the square root of 2:
*side length = a = the length between A and D* (see image at top)

Diagonal "d" = a × √2
 

Perimeter...


The Perimeter is 4 times the side length:
Perimeter Square

Perimeter "p" = 4a

Area...


The Area is the side length squared:

Area Square
Area = a2 = a × a

....or half of the diagonal squared:

Area Square 
Area = d2/2


What this looks like in ICE ....



Side length

To work out the side length of the square shown below.....

square side length in softimage ICE

..... Subtract the corner point (-1,-1,0) with corner point (-1,1,0). Then simply get the length of the vector between the them.

side lentgh of a square softimage

 

Perimeter

The light green perimeter value is worked out with the math sum shown below, while the darker green value shows the curve length attribute in ICE, they are both the same.


p = 4.a

calculate perimeter of a square in ICE

Diagonal

The diagonal length as shown by the blue value below was got by....

Daigonal of a square in softimage ICE


d = a .  √2

calculate diagonal of a square in ICE


Area

 Area can be calculated two ways, by multiplying the side lengths or by the diagonal....

Area of a square in ICE

..... here are what those calculations look like in ICE.

Calculate area of a square in ICE


The end :D




Thursday, November 15, 2012

Underwater fur . . .





First step find reference of animals underwater


Never underestimate the power of reference, here is some I used...

UnderWater Fur
Fur Under the water

Here is some video reference of a tiger underwater.....


.....I also looked at Ink in water.



After watching the reference many times, I decided to break up the "underwater effect" into five different areas....

  1. Force of movement from the object
  2. Wave motion through hair when the object moves
  3.  Water movement and direction
  4.  Other objects making the water move for example the paw of the tiger
  5.  Over all Puff

    Demo Scene

    In my little demo scene for this blog post I'm going to touch on some of the ways I got around these problems. Obviously it includes tons of things I learned from tutorials and other resources. I'm not going to go into to much detail. Honestly I don't know if this is the best way to make under water fur effects, lets just say it worked for me :D Here's a Capture of the demo scene....





    Break down of Scene


    There is an over all modulate by null in this scene - Box null - , so that it looks like the sphere is entering the water, and leaving it again. Also all the effects are in the modeling stack in ICE. None of the effects are in the "Simulation stack".


    Step One: "Force of movement" made with the following ICE Trees

    Create an none simulated ICE tree in the modeling stack. Then get the point velocity from the emitter using the get closest location node, then apply that point velocity value to all the points in the strand. This way we get a strand velocity value for each point on the strand.


    Then I apply the Velocity as a "force", and vary it with the mass of the strands.



    Step two: I made the following ICE trees for the wake.



     The wake was just added to the "force" of the velocity.


    The wake is a simple sin function that takes the global position into account. I added a random around value to the amplitude to get it to be less repetitive.



    Step three: The following ICE Trees are for water direction and movement.


    To start off, watch this tutorial by Paul Smith
    Vector Flow

    So now that you have a feel for vector flow, I used the vector flow of a bunch of curves the represented the "waters" flow direction. This is all still in the modeling stack.




    Here are the curves I made for this scene.... to create variation of motion in the water I just animated the curves to rotate around their local orientation.



    Step Four: Other objects making the water move

    Here I have the strands push away from a Null object. I modified the modulate by null to take into account the strand position of the strands.


    Step Five: Puff


    The puff is just a simple push along the Y axis of the strands to add the illusion of weightlessness.



    Nice thing about doing the "under water effect" in the modelling stack is... I could step through my scene without having to wait for a simulation bar to calculate. And because of the curves I could change the way the water effected the fur on frame 60 but have frame 5 be uneffected. Which is really nice and flexible and feels more like animating then simulating. :D