Thursday, October 31, 2013

Laptop

Well it turns out a faulty ram chip was to blame for the crash and it was still under warranty so all good there now. I also found out while my memory is a disaster on my meds my ability to think ahead seems to be ok as I found out I did have a backup of all  my Coursea Homework..............go me! The only thing I lost was some time it seems. Woo Hoo.

Here is the final version of my fret calculator:

# From Stewmac
# To calculate the scale length for stringed instruments

# Notes on fret layout
# The most accurate way to lay out your scale is making all measurements
# from the nut (using the "fret to fret" distance only to confirm your layout).
# Laying out frets only by measuring fret to fret will compound error.
# For example, if you're laying out frets by marking with a scribe and your
# accuracy is plus or minus 2 millimeters, you could be off by as much as
# 24 millimeters at the 12th fret.

# Measurements are given from the end of the fingerboard (face of the nut)
# to the center of a fret slot.
# WRITTEN FOR PYTHON 3.3.2
#--------------------------------------------------------------------

Im = ''
const = 17.817 # Do not change this

def fretCal(ScaleLength, nofret):
    '''(number, number)-> float
    Calculates the fret positions for any stringed instrument
    Given 'Scale length', 'number of frets' in inches or mm
    >>> fretCal(19, 18)  
    Fret 1 from nut 1.066 inches
    Fret 2 from nut 2.073 inches
    ............................
    >>> fretCal(635, 22)
    Fret 1 from nut 35.64 mm
    Fret 2 from nut 69.28 mm
    '''
    if ScaleLength < 99:
        scale = ScaleLength
        Im = 'inches'
    if ScaleLength > 100:
        scale = ScaleLength
        Im = 'mm'
       
    for i in range(1, nofret +1):
        ScaleLength = ScaleLength - (ScaleLength / const)
        print('Fret', i, 'from nut',round(scale - ScaleLength, 3),Im)
   
#--------------------------------------------------------------------

Wednesday, October 30, 2013

My laptop died

The title says it all, I had just completed one Python programming course on Coursea 93/100 and 2-3 week in to two more Python courses @ Rice Uin and Mit and bang, I get the windows 8 version of the Blue screen of death. It says it was counting to 100 and then going to restart but........it lied it never did, so as it was still under warranty Its now in the 2 to 6 week hands of the guys from where I got it. Needless to say the back ups I had been doing hadn't yet been updated to take these courses into account. I'd also been quite ill recently along with some other major stresses so I'll just wait till things settle down and start again.

I have my desktop still running xp so I can still do some things so here completely free of charge lol is my Python code for calculating the fret positions for stringed instruments. I'm not sure if this is the very latest version but its all I've got until my laptop comes home. Enjoy.
It will work in mm or inches
-----------------------------------------------------------------
Im = ''
const = 17.817 # Do not change this

def fretCal(ScaleLength, nofret):
'''(number, number)-> float
    Calculates the fret positions for any stringed instrument
    Given 'Scale length', 'number of frets' in inches or mm
    >>> fretCal(19, 18)
    Fret 1 from nut 1.066 inches
    Fret 2 from nut 2.073 inches
............................
    >>> fretCal(635, 22)
    Fret 1 from nut 35.64 mm
    Fret 2 from nut 69.28 mm
    '''
if ScaleLength < 99:
    scale = ScaleLength
    Im = 'inches'
if ScaleLength > 100:
    scale = ScaleLength
Im = 'mm'

for i in range(1, nofret +1):
    ScaleLength = ScaleLength - (ScaleLength / const)
    print('Fret', i, 'from nut',round(scale - ScaleLength, 3),Im)
------------------------------------------------------------------------------------------------------

Thursday, October 3, 2013

Python and 3dsmax!

Artur LeaoReal Time VFX
Hi guys, not really realtime vfx related but if you guys are doing some stuff with 3dsmax and python you might want to check these blog posts I did today, upon the release of the 3dsmax subscription package.

http://www.youcandoitvfx.com/?p=568

http://www.youcandoitvfx.com/?p=573

Monday, September 30, 2013

Lighting 101 – The DP’s Playbook

http://gfuterfas.wordpress.com/2013/09/28/lighting-101-the-dps-playbook/

Like any good football coach, most DP’s have a basic Playbook they use when it comes to lighting. Of course, everyone’s got a different style and likes to mix it up, but there are things that we know work well and light positions that we can always fall back on.


If you’re interested in learning the fundamentals of how to light a scene, here’s a quick summary of concepts Cinematographers often think about.