So after some further work on it I figured out how to mess with the channels and I think I have some progress I will continue to post my updates as I work to fixing this.
open(File(openDialog())); var docRef_1 = activeDocument
docRef_1.backgroundLayer.duplicate();
var channelRefred = app.activeDocument.channels.getByName("Red");
var channelRefgre = app.activeDocument.channels.getByName("Green");
var channelRefblu = app.activeDocument.channels.getByName("Blue");
//gets red channel
//channelRefblu.visible = false;
//channelRefgre.visible = false;
//selects copys red channel
app.activeDocument.selection.load(channelRefred)
app.activeDocument.selection.copy()
//pastes red layer
app.activeDocument.selection.selectAll()
app.activeDocument.paste()
//turns on green and red off
//channelRefgre.visible = true;
//channelRefred.visible = false;
//copies green channel
app.activeDocument.selection.load(channelRefgre)
app.activeDocument.selection.copy()
//selects copys red layer
app.activeDocument.selection.selectAll()
app.activeDocument.selection.copy()
//pastes red layer
app.activeDocument.selection.selectAll()
app.activeDocument.paste()
Thursday, March 31, 2011
Wednesday, March 30, 2011
Coloblindness Update
![]() |
http://upload.wikimedia.org/wikipedia/commons/f/f7/US_Flag_color_blind.png |
So on Tuesday we were assigned to take a photo and make it as though we were colorblind. We ran through how to do it manually in Photoshop and by using channels. So far in scripting I can open a photo, and am working on messing with channels in scripts but I am having some issues with it. I also want to do a different colorblindness other then the Red-Green, such as a Yellow-Blue, but there is no yellow channel so that is also a challenge I am trying to work through. Hopefully I can finish it before class tomorrow but I honestly don't think I will and will more likely finish it sometime this weekend, at least the Red-Green one, the Yellow-Blue one takes a little more work I think, though I am really interested in figuring it out.
Tuesday, March 29, 2011
HDR... Beautiful
So last week we talked about HDR and how it works and some amazing things you can do with it. Here are some amazingly awesome HDR images, please enjoy.
digitalartempire.com/2010/05/67-extraordinary-hdr-images-you-must-see
digitalartempire.com/2010/05/67-extraordinary-hdr-images-you-must-see
Wednesday, March 23, 2011
Color Wheel
Better late then never they say. So after some working on it some over Spring break and Andrews help on Monday I think I got it done. And going based off some of the cooler "painted" effects I made them cubes so they would intersect each other and give that somewhat painted feel.
float $rot = 360/30.0;
float $trans = 1.0/5.0;
string $name;
string $name2;
for ($x=0;$x<30.0;$x++)
{
for ($y=0;$y<5;$y++)
{
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
$angle = $x * $rot;
$sat = $y * $trans;
$hue = $angle/360.0;
vector $color = hsv_to_rgb(<<$hue, $sat, 1>>);
setAttr $name2 -type double3 ($color.x) ($color.y) ($color.z);
polyCube -w .3 -h .1 -d .3 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation $sat 0 0;
rotate -pivot .1 .1 .1 0 $angle 0;
hyperShade -assign $name;
}
}
;
float $rot = 360/30.0;
float $trans = 1.0/5.0;
string $name;
string $name2;
for ($x=0;$x<30.0;$x++)
{
for ($y=0;$y<5;$y++)
{
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
$angle = $x * $rot;
$sat = $y * $trans;
$hue = $angle/360.0;
vector $color = hsv_to_rgb(<<$hue, $sat, 1>>);
setAttr $name2 -type double3 ($color.x) ($color.y) ($color.z);
polyCube -w .3 -h .1 -d .3 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation $sat 0 0;
rotate -pivot .1 .1 .1 0 $angle 0;
hyperShade -assign $name;
}
}
;
Photoshop Scripting
In searching for tutorials on scripting in Photoshop I found some interesting sites and good and interesting tutorials. First off I have programmed in Javascript for my previous website design class. To help me learn I used the great resource W3Schools, which really helps with learning the basic Javascript functions.
http://www.w3schools.com/js/default.asp
Nextly I used Morris-Photographics to learn how to get an introduction to scripting. It has a good overview of scripting for Photoshop and using actions and some nice little free scripts available, along with other Photoshop related info.
http://morris-photographics.com/photoshop/index.html
Lastly I used Good-Tutorials (which may have only been the 2nd link in Google) but I liked it because of the typographic poster tutorial and it has the amount of tutorials it has. I have also used it for other Photoshop tutorials beside scripting off here and they were very useful and easy to follow.
http://www.good-tutorials.com/tutorials/photoshop/scripting
http://www.psawesome.com/tutorials/psawesome-typotiler-script-create-text-blocks-with-photos
After just playing around with some of the scripts I got a slight understanding of how Photoshop scripting works and after this weekend when I have more time to mess around with it I think I will be able to understand it some more.
http://www.w3schools.com/js/default.asp
Nextly I used Morris-Photographics to learn how to get an introduction to scripting. It has a good overview of scripting for Photoshop and using actions and some nice little free scripts available, along with other Photoshop related info.
http://morris-photographics.com/photoshop/index.html
Lastly I used Good-Tutorials (which may have only been the 2nd link in Google) but I liked it because of the typographic poster tutorial and it has the amount of tutorials it has. I have also used it for other Photoshop tutorials beside scripting off here and they were very useful and easy to follow.
http://www.good-tutorials.com/tutorials/photoshop/scripting
http://www.psawesome.com/tutorials/psawesome-typotiler-script-create-text-blocks-with-photos
After just playing around with some of the scripts I got a slight understanding of how Photoshop scripting works and after this weekend when I have more time to mess around with it I think I will be able to understand it some more.
Who needs Da Vinci?
Today a lot of people say that digital media is getting rid of classical styles of art, such as painting. I would argue that, not only is it not getting rid of it, it is inspiring it. For example we have The Mona Lisa a famous world renowned painting, and in the following video we see a digital painter aspiring to remake the masterpiece.
www.metacafe.com/watch/508246/ms_paint_painting_mona_lisa/
Yet digital painting is doing so much more than what just painting did, it inspires new ideas, new process and new styles as showcased by this video.
www.blendernation.com/tutorial-painting-time-lapse-by-david-revoy
So who said that digital media is bad?? Closed minded fools who can't accept that something new can be just as awe-striking as something that has been done for thousands of years.
www.metacafe.com/watch/508246/ms_paint_painting_mona_lisa/
Yet digital painting is doing so much more than what just painting did, it inspires new ideas, new process and new styles as showcased by this video.
www.blendernation.com/tutorial-painting-time-lapse-by-david-revoy
So who said that digital media is bad?? Closed minded fools who can't accept that something new can be just as awe-striking as something that has been done for thousands of years.
Monday, March 21, 2011
Link you look so old!!!!
Here is an interesting take on Link from Zelda, an older more aged Link. An interesting and plausible way to age Link and continue the Legend of Zelda series. It could be kinda like how they did the same thing that they did with Snake and Metal Gear Solid 4.
http://www.zbrushcentral.com/showpost.php?p=746723
http://www.zbrushcentral.com/showpost.php?p=746723
Saturday, March 19, 2011
Map it with the Z!
Z mapping, most of us in the digital industry know this term quite well, some fear it, others embrace it. Z mapping or depth as somewhat colloquial way of putting it is a rather perplexing thing, how much do you wanna show? How far can you see? How do you show that depth? Then you also deal with the term Occlusion Culling which "is a visibility determination algorithm that is used to identify those objects that did reside in the view volume but still aren’t visible on the screen due to occlusion. That means they are hidden by such objects that reside closer to the camera." All of this affects how fast and how efficient things render. After reading this article I gained a little insight into the whole world of this baffling ordeal. Please enjoy :D
rastergrid.com/blog/2010/10/hierarchical-z-map-based-occlusion-culling
rastergrid.com/blog/2010/10/hierarchical-z-map-based-occlusion-culling
Tuesday, March 8, 2011
Watch as the Earth Lights up!
So I found this kool lil article with pictures of the Earth at night. Pretty interesting to look at in my opinion. Enjoy
www.secondose.com/earth-at-night
www.secondose.com/earth-at-night
Monday, March 7, 2011
Trace it... with the Rays!
So here is an older article about the ability to ray trace in real time and the befits of it and such, quite an interesting research article.
http://blogs.intel.com/research/2007/10/real_time_raytracing_the_end_o.php
http://blogs.intel.com/research/2007/10/real_time_raytracing_the_end_o.php
Sunday, March 6, 2011
Nostalgia, ain't it grand?
While surfing the internet this weekend I found this lil video of some old school games coming to real life and terrorizing us. Made me yearn back to the early years of game development when a few moving pixles on the screen was considered great graphics. Now days we deal with the idea of "photo-realism" the life like game. Well here is the Youtube video.
"Pixels Old School - Amazing Render"
http://www.youtube.com/watch?v=pf480SUuRxY
What do you think? Do you miss the good ol'days? Or you glad that we moved on?
"Pixels Old School - Amazing Render"
http://www.youtube.com/watch?v=pf480SUuRxY
What do you think? Do you miss the good ol'days? Or you glad that we moved on?
Thursday, March 3, 2011
Fun with Windows?
So the idea of forbidden colors really interested me so I decided to have fun with colors in a kinda parody sense. If you look at the windows logo, it is the four colors that are forbidden to interlace! So in an attempt to try and reach those colors I animated them switching at a really fast rate. I also tried to play with the ideas that "yellow's make blue's bluer." with these colors and what I got was an interesting and kool GIF. Which only takes 5ish steps to make.
Step 1: Open Photoshop and create a Windows logo.
Step 2: Rotate the colors in the Windows logo in a certain direction in order
Step 3: Animate these to fade in and out in synch with the next rotation.
Step 4: Repeat till all the colors are rotated once.
Step 5: Save for Web and Devices as a Gif that loops forever
Yay! Done! and this is about what you get!
Step 1: Open Photoshop and create a Windows logo.
Step 2: Rotate the colors in the Windows logo in a certain direction in order
Step 3: Animate these to fade in and out in synch with the next rotation.
Step 4: Repeat till all the colors are rotated once.
Step 5: Save for Web and Devices as a Gif that loops forever
Yay! Done! and this is about what you get!
What it's not a line?
So here is my non linear translations, Andrew helped me a ton with this one and I almost just wanna give all the credit to him haha but I figured out a lil bit of the math. Thanks Andrew you saved my life :) Rainbows :D
select -all; delete;
float $rot = 360.0/30.0;
string $name;
string $name2;
for ($x=0;$x<15.0;$x++)
{
for ($y=0;$y<1;$y++)
{
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
$ang = $x*$rot;
$hue = $ang/360.0;
vector $color = hsv_to_rgb(<<$hue, 1, 1>>);
setAttr $name2 -type double3 ($color.x) ($color.y) ($color.z);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
}
;
select -all; delete;
float $rot = 360.0/30.0;
string $name;
string $name2;
for ($x=0;$x<15.0;$x++)
{
for ($y=0;$y<1;$y++)
{
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
$ang = $x*$rot;
$hue = $ang/360.0;
vector $color = hsv_to_rgb(<<$hue, 1, 1>>);
setAttr $name2 -type double3 ($color.x) ($color.y) ($color.z);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
}
;
Its Just a line!
So for my linear transitions I used the color cube as a lot of help, especially with visualizing it. I also received some help from Andrew with the coloring of it.I ended up using cubes because they kinda melded together and made an awesome gradient effect.
select -all; delete;
string $name;
string $name2;
float $r;
float $g;
float $b;
int $x = 0;
for ($x=0;$x<15.0;$x++)
{
$r = 0.0;
$g = 1.0;
$b = 0.0;
$r += ($x*0.06);
$g -= ($x*0.06);
$b += ($x*0.06);
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
setAttr $name2 -type double3 ($r) ($g) ($b);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
;
This code makes a transition almost like the hulk color scheme. It is kinda awesome and I really like it!
select -all; delete;
string $name;
string $name2;
float $r;
float $g;
float $b;
int $x = 0;
for ($x=0;$x<15.0;$x++)
{
$r = 0.0;
$g = 0.0;
$b = 1.0;
$r += ($x*0.06);
$g += ($x*0.06);
$b -= ($x*0.06);
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
setAttr $name2 -type double3 ($r) ($g) ($b);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
;
This one does a blue to yellow transition.
select -all; delete;
string $name;
string $name2;
float $r;
float $g;
float $b;
int $x = 0;
for ($x=0;$x<15.0;$x++)
{
$r = 1.0;
$g = 0.0;
$b = 1.0;
$r += ($x*0.06);
$g += ($x*0.06);
$b -= ($x*0.06);
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
setAttr $name2 -type double3 ($r) ($g) ($b);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
;
This one does magenta to orange.
select -all; delete;
string $name;
string $name2;
float $r;
float $g;
float $b;
int $x = 0;
for ($x=0;$x<15.0;$x++)
{
$r = 0.0;
$g = 1.0;
$b = 0.0;
$r += ($x*0.06);
$g -= ($x*0.06);
$b += ($x*0.06);
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
setAttr $name2 -type double3 ($r) ($g) ($b);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
;
This code makes a transition almost like the hulk color scheme. It is kinda awesome and I really like it!
select -all; delete;
string $name;
string $name2;
float $r;
float $g;
float $b;
int $x = 0;
for ($x=0;$x<15.0;$x++)
{
$r = 0.0;
$g = 0.0;
$b = 1.0;
$r += ($x*0.06);
$g += ($x*0.06);
$b -= ($x*0.06);
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
setAttr $name2 -type double3 ($r) ($g) ($b);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
;
This one does a blue to yellow transition.
select -all; delete;
string $name;
string $name2;
float $r;
float $g;
float $b;
int $x = 0;
for ($x=0;$x<15.0;$x++)
{
$r = 1.0;
$g = 0.0;
$b = 1.0;
$r += ($x*0.06);
$g += ($x*0.06);
$b -= ($x*0.06);
$name = `shadingNode -asShader blinn`;
$name2 = $name + ".color";
setAttr $name2 -type double3 ($r) ($g) ($b);
polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;
xform -translation (0.25*$x) 0 1;
hyperShade -assign $name;
}
;
This one does magenta to orange.
Cubed
Here is the cube, why couldn't everything else be this easy???? *sigh*
for($x=0;$x<8;$x++)
{
for($y=0;$y<8;$y++)
{
for($z=0;$z<8;$z++)
{
$name=`shadingNode-asShader blinn`;
$tmp=$name+".color";//blinnShader1.color
setAttr $tmp -type double3 ($x/7.0) ($y/7.0) ($z/7.0);
polySphere -ch on -o on -r .03;//ballradius
xform -translation ($x/7.0) ($y/7.0) ($z/7.0);//balldistance
hyperShade -assign $name;
}
}
}
for($x=0;$x<8;$x++)
{
for($y=0;$y<8;$y++)
{
for($z=0;$z<8;$z++)
{
$name=`shadingNode-asShader blinn`;
$tmp=$name+".color";//blinnShader1.color
setAttr $tmp -type double3 ($x/7.0) ($y/7.0) ($z/7.0);
polySphere -ch on -o on -r .03;//ballradius
xform -translation ($x/7.0) ($y/7.0) ($z/7.0);//balldistance
hyperShade -assign $name;
}
}
}
Nodes! They make art!
Here is an interesting link to an article about node based art, all done by programming nodes with certain constraints hope you enjoy.
http://www.levitated.net/bones/nodeGarden/
http://www.levitated.net/bones/nodeGarden/
Subscribe to:
Posts (Atom)