18 threads found!
Thread | Author | Replies | Views | Last Reply |
---|---|---|---|---|
marcq | 9 | 37 | ||
marcq | 1 | 13 | ||
marcq | 4 | 20 | ||
marcq | 3 | 41 | ||
marcq | 14 | 313 | ||
marcq | 17 | 412 | ||
marcq | 7 | 222 | ||
marcq | 4 | 142 | ||
marcq | 9 | 498 | ||
marcq | 9 | 247 | ||
marcq | 3 | 108 | ||
marcq | 0 | 85 |
(none)
|
|
marcq | 2 | 230 | ||
marcq | 17 | 436 | ||
marcq | 2 | 125 |
82 comments found!
Very cool! Nice effect for inivisble objects/creatures in a fantasy scene. I'll have to save that. Marc
Thread: Assassin Wip #1 | Forum: Carrara
Hi, Brian, Thanks for the comments. The roof is definitely WIP. I've run into more than one C2 bug (reported to Eovia) in trying to get this right. For instance, a simple abs(cos(x)) formula doesn't work there and some of the shaders only work in local not global and vice versa. It's been frustrating bumping it. Anyway, I'll tinker more with it and maybe just use a texture map to be done with it (although there is also the 'seamlessly doesn't work in the bump channel' bug ;-) I'll fiddle with the railing as well. It's actually one of litst nice metal shaders but doesn't look so good in the moonlight. As to the moon, I like the lighting straight down for now so that kind of makes a moon on the edge not line up but we'll see. I was thinking of a moon reflected in the canel with the stars (DCG's starbright for the stars) but that would leave most of the scene very dark. Once I get the torch in there, I might try it though. Comments very much appreciated! Marc
Thread: GI Render for NWB - WIP | Forum: Carrara
Nice organic feel to your metal man. Mouth seems a little off from the rest of the style but depends what you have in mind for the textures, too. Marc
Thread: Iridescence Part 2 | Forum: Carrara
You are correct about the refraction varying with wavelength; the formula above is a cheat to model that. I can't think off hand of a way to do real dispersion in Carrara other than to do multiple renders with slightly varying refraction indices and combine them in post. Might be tedious but for gem only pictures like you do, it might not be too bad. On the handle, it's amazing how seemingly always obscure names are already taken. Or my handle which is a combination of first and last name turns out to be a river in northern France. I've received mail several times from people wondering if I'm a relative (since the river name has become a family name). Marc
Thread: Iridescence Part 2 | Forum: Carrara
Enjoy... and please post any improvements or note any images! The reference vector is definitely off in this picture. The formula could be reworked to generate a reference vector from a pair of angles. Given that, one should then be able to get those angles to match two of the angles used on a light source making aligning with your light source much easier. (Alignment is important if you want to use a narrower spread of color like maybe in a gem picture; although if you just like the look but want more blue than red, rather than play with the reference vector, you could also change the colors around; i.e. swap blue for red.) Someday I may play around with that but if someone figures that out sooner, please post the amended formula. Bijouchat, I'd forgotten you do a lot of gems and jewelry; I'm eager to see what you do with it! Marc BTW I can't resist anymore... I used to have a cat name Bijou (for real; nice siamese)
Thread: Any one using Ampi 7 with the Carrara bridge? | Forum: Carrara
So what do people think of the A7 to C2 bridge now that they have played with it a few months? Is it worth it?
Guess my question is really two-fold, how much better is A7 over A5.1 and how well does the bridge work?
I'm really curious before I plunk down the money although I'm also waiting for Eovia to offer some hot deals like their recent RD to C2 upgrade offers ;-)
Marc
Thread: Anything Grows as a particle generator | Forum: Carrara
When I purchased Anything Grooves and Anything Grows, I thought I would use Grooves everywhere and Grows just a little. Due to the conflicting need for resolution and managable facet counts, I don't really use Grooves that much. But Grows has become indespensible. It is my most used plug-in by far. With the tip feature, you can use it for endless things. Should work great for bees and falling leaves! Marc
Thread: Iridescence Part 2 | Forum: Carrara
Oh, I'm a hardware engineer by trade. But I'd forgotten how to find the angle between to vectors. I just typed in "angle between two vectors" into google and get several hits. The rest of it is fairly simple algebra although since the formula syntax is a subset of C, it helps to know C. When I first read the Carrara manual, I blew off formulas but I've since come to find them very useful. I wish there was a way to use one as an operator, i.e., have it operate on underlying data. Then you could do some really cool stuff. Marc
Thread: Iridescence Part 2 | Forum: Carrara
I think for many scenes you don't need true angle; you just want some 'fire' in the scene. For distant lights, the angle to the light should be the yaw/pitch angles. It is tough for spots but for most of those, an approximation may do (i.e., treat as a distant light). It sure would be nice to have this as a plug-in ;-) Marc
Thread: Iridescence Part 2 | Forum: Carrara
Thread: Iridescence Part 2 | Forum: Carrara
Oops- just noticed my RGB values are 'wrong'. Color 1 and 3 are the same. I think one should be cg1= 0; cb1= 1; cr1 = 1; which would put more purple in the scene. Marc
Thread: Iridescence Part 2 | Forum: Carrara
BTW if anyone uses this formula for an image, I'd love to see what it looks like. Should be able to give your diamonds 'fire' and might look pretty neat in some GI renders. Marc
Thread: Iridescence Part 2 | Forum: Carrara
Formula first then explanation:
cg1 = 1;
cb1 = 1;
cr1 = 0;
ctr1 = 0.1;
cg2 = 0;
cb2 = 1;
cr2 = 0;
ctr2 = 0.2;
cg3 = 1;
cb3 = 1;
cr3 = 0;
ctr3 = 0.3;
cg4 = 1;
cb4 = 0;
cr4 = 0;
ctr4 = 0.4;
cg5 = 1;
cb5 = 0;
cr5 = 1;
ctr5 = 0.5;
cg6 = 0.5;
cb6 = 0;
cr6 = 1;
ctr6 = 0.6;
cg7 = 0;
cb7 = 0;
cr7 = 1;
ctr7 = 0.7;
sx = 0.5;
sy = 0.5;
sz = 0.5;
fo = 6;
slen = sqrt( sx * sx + sy * sy + sz * sz);
angle = abs ( acos( (sx * nx + sy * ny + sz * nz) / slen )) * 2 / PI;
v1 = 1 fo * abs ( angle ctr1);
cv1 = v1 > 0 ? v1 : 0;
v2 = 1 fo * abs ( angle ctr2);
cv2 = v2 > 0 ? v2 : 0;
v3 = 1 fo * abs ( angle ctr3);
cv3 = v3 > 0 ? v3 : 0;
v4 = 1 fo * abs ( angle ctr4);
cv4 = v4 > 0 ? v4 : 0;
v5 = 1 fo * abs ( angle ctr5);
cv5 = v5 > 0 ? v5 : 0;
v6 = 1 fo * abs ( angle ctr6);
cv6 = v6 > 0 ? v6 : 0;
v7 = 1 fo * abs ( angle ctr7);
cv7 = v7 > 0 ? v7 : 0;
red = cv1 * cr1 + cv2 * cr2 + cv3 * cr3 + cv4 * cr4 + cv5 * cr5 + cv6 * cr6 + cv7 * cr7;
green = cv1 * cg1 + cv2 * cg2 + cv3 * cg3 + cv4 * cg4 + cv5 * cg5 + cv6 * cg6 + cv7 * cg7;
blue = cv1 * cb1 + cv2 * cb2 + cv3 * cb3 + cv4 * cb4 + cv5 * cb5 + cv6 * cb6 + cv7 * cb7;
This is the formula I used in the highlights channel. Carrara doesn't appear to allow comments (or if it does, I don't know the comment delimiter.)
It isn't as bad as it looks. Basically, the formula uses the normal vector (nx, ny, nz) to compute the angle between the normal and reference vector you give it (sx, sy, sz.) The reference vector need not be normalized (i.e., don't worry about making the length "one").
This angle represents how far away from the reference vector a given surface is aligned. Zero means the surface is perpendicular to the reference vector, higher values mean more tilted. In this formula, angle goes from 0 to 1 but it could be tweaked to be in radians or degrees.
The angle is then used to determine how much of each of the seven reference colors should be shown at each point. This is linear with slope "fo".
cr1, cg1, and cb1 define the red, green and blue values for color one, cr2, cg2, cb2 for color two, etc. Values are from 0 to 1 again.
ctr1, ctr2, etc. determines the angular center of the color. A zero means the color is center around angle of 0 degrees, i.e., it shows when the facet is perpendicular to the reference vector. A 0.1 would mean the color shows at a slight angle. 0.4 at a greater angle, etc.
fo determines how fast a color falls off around its center. Use larger values for more tightly spaced colors (who have ctr values near each other) and smaller values for larger spacing unless you want a ringed effect.
Ideally the reference vector is related to your light source.
At the moment, the equation uses the local normal vector, not the global vector. It should probably use the global. Additionally, it would be better than rather specifying a reference vector, you gave it yaw and pitch of your light source and it computed the reference vector. I don't think this is a big deal except for the necessary tinkering of finding the two correct angles and then finding the right polarity of the reference vector.
You could theoretically make the reference vector (or light angles) use the p1 through p4 parameters which are supposed to be animatable.
There may also be errors in the above like my reference vector is backward or some such.
If anyone does to the anlge modification, please post or send to me. This shader was inspired by DOtpainter's post I came across but I was really looking for snow effects and need to get back to my winter project ;-)
To use this formula, cut and paste into the text of a formula shader in your highlights channel (alternately, use the color channel until you have it looking the way you want and then move it.) Adjust the reference vector to be as you want. Currently, this is just trial and error.
If you want different colors, get the rgb values for the colors you want (you can use carrara's color picker to find these by using the RGB slider view). Adjust the centering you want for each. Adjust the falloff 'fo' if the colors over lap to much or too little. A higher fo makes for a narrower band of color.
This formula supports 7 colors (for the rainbow colors); you can use less by deleting the other colors or setting their centers large. You can easily add more colors by cloning the text.
Colors need not be in order but it helps to keep track of them.
As a tip, the carrara formula window is tiny and hard to edit in. I used word to do my edits and cut and paste back to the window.
Keep in mind that you must hit 'parse' for the new formula to take effect and that the parser is not very good. It is unforgiving of the lack of space (put space around every variable and operator) and don't forget the semicolon at the end of the line.
Marc
Thread: Iridescence Part 2 | Forum: Carrara
BTW The color pattern can be narrowed in the formula; I have it set pretty wide to highlight the effect...
If there is interest I'll post the formula text. It's long because it references 7 colors but there isn't that much to it conceptually.
Marc
Thread: Iridescence Part 2 | Forum: Carrara
Since it is using the real normal and not slope, it avoids the banding effect of slope and produces (I think) more interesting highlights.
The shader in question could be greatly improved if the formula allowed you to enter the angles of your light source so that you could get the purple center to line up properly on the highlight. The render here has arbitrary alignment (I didn't tweak the reference vector much) which is why the highlights are more red than they should be. But it shows the basic principle.
With a mixer referencing more than one of these, each with a reference vector aligned to a light source, you might be able to get these right for multiple lights (not really sure about that ;-).
Anyway, this is just incremental from DotPainter's post (http://www.renderosity.com/messages.ez?Form.ShowMessage=720518) but seems to be an interesting effect so here it is.
Marc
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Thread: Soft cutaway look using Shader Ops, update to Shader Ops resource page | Forum: Carrara