Pages

Sunday, September 1, 2013

RGB hair growth in Softimage....


How to grow hair by color.


So I hear you ask, "How can I make soft stands grow according to a color?"
Well I answer in a kind - not to overly smart voice -  "Let me show you."


First lets look at color.


Using ICE we will grow hair with different lengths using the RGB value from a texture map. Blue being long hair and the rest being short or so on. Only problem is that some colors are not just blue they are also red like say Magenta(see color wheel below) or yellow(Green and Red) or Ocean(Green and some Blue) and so on. So we will have to compensate for that.

*click to make big*

You can see Magenta is 255 - 0 - 255 (in ICE that would look like 1 - 0 - 1), meaning it is a hundred present blue and a hundred present red. Using an If statement that simply says if something is a hundred present blue then make the hair longer there wont really work well. So we also need to say that, if you happen to have two values that are 255(or 1) then don't use that color to grow the hair longer. If that makes sense :/



Lets look at the ICE setup...

NOTE: If you don't know how to Texture strands using a texture map, never fear. Here is a link to a post I  did  -----> texture map.

Now to get the hair to be either short or long depending on whether or not it is the color you want to be long(Blue), or short(every other color). In the ICE TREE below you will see an If statement that tells the strand length to be either short or long. Then I simply duplicated that tree for red and green values. Using the select case node you can then choose between red, blue, or green if you make a compound. 

I also made a bleed option to include the color values like Magenta and Yellow using two more if statements.

*click to make big*


Blue example:

*click to make big*

Green example:

*click to make big*

Red example:

*click to make big*

Strands with a bleed of 0.4






Strands with a bleed of 0.8









Things I would like to include and improve:
Bleed hair has a fall off growth.
Hair grows in over time .
you can choose only bleed values.


So I will probably be updating this post in the near future.


To be continued.. :) 

Marvelous Designer 3


Started learning Marvelous Designer 3 for an upcoming job..... AND MUCH FUN WAS HAD THAT DAY! \:D/

Love the pattern making and the easy to use interface. Here is what my first skirt and bodice looks like...

skirt in Marvelous Designer 3
*click to make big*

Got the pattern for the bodice from a real clothing pattern, and it turned out really nice. The skirt was just me seeing if I could "thumb suck" some clothing, think I need more practice with real patterns before I can be any good at making my own designs.

Still cant wait to make more clothes !! I feel like a real dress maker *SO MUCH POWER* in this program. I also have to learn me some N-cloth and Houdini, so super exciting times ahead for me. 


Here is my just importing the model into Softimage and applying Syflex.




End

Wednesday, July 10, 2013

So there are some hard times ahead in the 3D industry...








WHEN THE OTHER GUY IS SLEEPING!
I'M WORKING!
WHEN THE OTHER GUY IS EATING!
I'M WORKING!
WHO AM I?

I AM A CHAMPION!

I'm not going to point fingers, and I don't care whose fault it is. I'm just gone be awesome instead...

Monday, June 24, 2013

91,6% for my python course HOORAY!

   
*Click to make Bigger*

Thursday, June 20, 2013

Sneak peek of Khumba from Annecy....





Here is a sneak peek at the movie(Khumba) I was working on. My main responsibility as Head of the Fur department was the creation of the fur, feathers and scales. I also got to groom and do a lot of the TD work.

All-in-all was an awesome load of fun. \:D/

Wednesday, June 19, 2013

3DesignCollective....




Need any Freelance work done? Check us out for a quote :D 


*Click to make bigger*

Friday, May 17, 2013

My first Python game HOORAY!!


PONG


Below is a video of me playing against myself -lol- I suck at playing pong....



Loved making my first little game in python, though. 
Most fun part was creating the simple reflection and collision we needed for the ball. I use some vector math and an if statement. There was also the fact that the paddles cant go off screen, and they needed to only move when you hit the correct keys on the keyboard.

The math looked something like this.....

For movement:

Math:
p(t+1) = p(t) +(1)(v(t))

p = position
v = vector
t = time

Python:
New pos      Init pos
p[0] =     p[0] + v[0] 
p[1] =     p[1] + v[1]

 ball_pos[0] += vel[0]
 ball_pos[1] += vel[1]

*add a negative value on the horizontal vector to make the reflection off of paddle.*

ball_pos[0] += vel[0]
 ball_pos[1] -= vel[1]

and then to get distance between two points:

Python:
dist(p, q)                            
return math.sqrt((p[0]-q[0])**2+(p[1]-q[1])**2)

then you pretty much just say if point 0 is in the same range as point 1, point 0 either reflect off of the pad or hits the wall.

With the paddles:

To move paddles:

 I used a local acceleration variable when the player hits a key(up or down)

To keep paddle on screen:

I made an if statement that stopped the paddle from going beyond its own height off screen

Python:
if paddle1_pos[0] + paddle1_vel[0] <= PAD_HEIGHT


Anyways was awesome fun :D/


Sunday, May 12, 2013

Collatz Conjecture In Python and ICE...




Statement:
Consider the following operation on an arbitrary positive integer:
If the number is even, divide it by two.
If the number is odd, triple it and add one.
In modular arithmetic notation, define the function f as follows:


if statement for colletz conjection


Collatz in Python:

To make this collatz conjecture I used a simple if statement, see code below... 


Python Collatz conjecture program
*click to make bigger*

Here is a video of how that all works with a gui:




Collatz in ICE:

In ICE I used the same idea as I used in python. Then just added a repeat node to get an updated n number.

Collatz Conjecture in Softimage/ICE
*click to make bigger*

What that looks like:



End :D

P.S :


Monday, May 6, 2013

Convert miles to feet....


To convert miles to feet you need to know how many feet there is in a mile. Google says....


*I'll take their word for that*


In python to convert would look something like this:

Convert miles to feet in python
*click to make better*

So how could we do this in Softimage and ICE?

String in Softimage
*click to make bigger*

My first attempt gets the right answer for the conversion,  but I would like it to say "...miles equals how ever much feet" like in the example in python so not very happy yet. 
It seems that the string nodes wont be of much help either, as they don't convert floats to string like in python.


Will have to look at a different way around this problem. :/

too be continued...

Tuesday, April 9, 2013

Sector/Segment Area





 There are two main "slices" of a circle:
     The "pizza" slice is called a Sector*white selection below*


Sector
*Click to make bigger*
              

                   And the slice made by a chord is called a Segment. *white selection below*


Segment
*Click to make bigger*
             


Lets take a look at this in Softimage....

 
* Watch in highest quility possible*


To work out the area of the segment and sector you will use the formulas:

Area of Sector = ½ × (θ × π/180) × r2   (when θ is in degrees)

Area of Segment = ½ × ( (θ × π/180) - sin θ) × r2   (when θ is in degrees)

*So basically what we need is the angle of the "center" corner, and the radius of the circle the sector belongs too*

Area of a Sector in Softimage
*Click to make bigger*

What these formulas will look like in ICE - once you have the angle and raduis - :

Segment area:

*Click to make bigger*

Sector area:

*Click to make bigger*


So you will need to work out the lengths of the three sides of the triangle that fits inside the sector "pizza slice".
I did this by simple creating cluster centers on the last point of the three curves then getting the length between them....


*Click to make bigger*

Here are the tree's for that...

*Click to make bigger*
 they are all basically the same...

*Click to make bigger*


*Click to make bigger*


....then you can work out the angle of the center corner in the circle your sector is part of.
I used the standard law of cosines node for this one but here is the math formula:
cos A = (b2 + c2 - a2)/2bc


I used this law because I already had all three side lengths worked out, but never fear here is a link to other ways of working out you triangles if you have say one angle and two sides... 

*Click to make bigger*


law of cosines in Softimage
*Click to make bigger*


You can also work out the "arc length" - the blue line in the image below - of your sector, by using the formula:

L = (θ × π/180) × r  


*Click to make bigger*

Here's that ICE tree...

arc Length formula
*Click to make bigger*

And there you have it. If you ever need to work out how big a pizza slice is ..... now you can do it :)

End