I'm creating a blog, but I need box-shadows for my boxes, so I'm asking the following.
Is it good to add shadows via a)images/css or b)javascript?
I've heard that lot of people don't have javascript enabled while browsing, so is there this a problem? It would be easier and simpler to create these shadows with javascript than adding a m...
Context:
I'm doing shadow mapping. When rendering the scene from the eye's point of view, I'd like to throw out certain triangles/quads ... in particular, elements of the following property:
L = light position
C = center of scene
V = L - C
I want to throw out the elements whose normal N satisfy dot_product(V, N) = close to 0.
[The r...
UPDATE:
I tried implementing the method specified by Peter and am getting incorrect shadowing. What is wrong?
CGContextSetShadowWithColor(c, CGSizeMake(4, 4), kAudioThumbShadowBlur, [[UAColor blackColor] CGColor]);
CGContextFillPath(c);
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, NULL, minx, mid...
I'm drawing a rounded image in a UITableView cell like so:
CGRect imageRect = CGRectMake(8, 8, 40, 40);
CGFloat radius = 3;
CGFloat minx = CGRectGetMinX(imageRect);
CGFloat midx = CGRectGetMidX(imageRect);
CGFloat maxx = CGRectGetMaxX(imageRect);
CGFloat miny = CGRectGetMinY(imageRect);
CGFloat midy = CGRectGetMidY(imageRect);
CGFloat ...
I wondering if there is a way to optimize this vertex shader.
This vertex shader projects (in the light direction) a vertex to the far plane if it is in the shadow.
The aim of this shader is to create a shadow volume object that enclose the shadow of the object itself.
void main(void) {
vec3 lightDir = (gl_ModelViewMatrix * gl_Vertex ...
I have a UITextView and a WebView side by side and I would like to add a drop shadow to both. This is an iPad app, so they rotate, thus an ImageView under them probably would not work. Any ideas?
...
Hi all,
I would like to ask you if is possible to add a shadow to each item in a gallery. And if is possible, what is the easiest way to do it?
Thanks in advance!
...
Currently I'm drawing an NSImage in a custom NSCell like so:
- (void)drawInteriorWithFrame:(NSRect)theCellFrame inView:(NSView *)theControlView {
// roundedCornerImage creates a new NSImage with rounded corners, rather than clipping.
[[anIcon roundedCornerImage:5] drawInRect:anIconBox fromRect:NSZeroRect operation:NSCompositeSou...
I'm currently in a project where I need a LibraryStack with no visuals at all, so it would just show the content. If I just remove the background a shadow stays in view which I cant seem to remove...
This code looks like:
<s:LibraryStack Background="Transparent">
<s:LibraryStackItem Background="AliceBlue"/>
<s:LibraryStackIte...
I'm using projected texture shadows coupled with lights to light a large sports field at night. To do this I'm using shadow cameras which I place in the position of the stadiums lights and shine it down on the field at the appropriate angle.
The problem with this method is the textures to which I render the shadows into have to be very ...
Hello!
I want to ask what is the easiest way to make shadow and light volume ? How can I bring to scene more realism? Do you know any nice tricks ? I hear that to make shadow i must use stencil buffer, but I don't know how:/ I can't find any super simple example how to make it.
...
Hey Folks,
I am currently playing around with CSS3 and trying to achieve a text effect like this (the black blurry inner shadow):
But I cannot find a way to create text shadows inside the text. I wonder whether it is still possible because the box-shadow element is able to render shadow inside like this:
box-shadow: inset 0px -5px 1...
Trying to draw a shadow using code from this question: http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-under-a-uiview
I implement it in a UIView subclass as discussed, but when I try and use it using UIView *shadow = [[ShadowView alloc]initWithFrame:CGRectMake(100,100,100,100)]; I get only a black square, rather than so...
I'm trying to draw a custom view with a drop shadow. I'm having different results from iPhone OS 3.2. Has the coordinate system changed for CGContextSetShadowWithColor from 3.2?
Here is the code I'm using:
CGContextRef graphicContext = UIGraphicsGetCurrentContext();
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
CGFloa...
Take a look of this image: http://imagebin.ca/img/b-W91wDU.png
I have some CGPath like the image 1 and I would like to know how I can create an inner shadow effect like the image 2
I'm working with objective-c and Core Graphics
iPhone SDK: 3.2
...
Is it possible to apply shadow for header <h3> tags jquery....
Here home,Manage users,Enquiry and reports are headers and i would like to add shadow to it...
I looked for jquery shadow plugin which has div samples but how to apply the same for header tags?
<script type="text/javascript">
$(function(){
$("#exampleDiv").shad...
I have boxes that have been designed like this
imgur.com/vMN0T.gif
Basically I need to code them so that they can be any size height-wise and width-wise depending on the content inside. Plus the shadow effect needs to be transparent because the background color can change.
Best way to do this so it works in all browsers? (IE6+, FF, Op...
Hi There,
If you go to http://mattculbreth.com or http://mattculbreth.com/projects.html in IE <= 8, you'll see shadows around the text. Safari, Chrome, and FireFox all render this correctly.
From looking at the CSS, can anyone tell how to make this look better in IE? IE 9 looks ok (but it doesn't get the gradients, which I'm fine wit...
Hi Folks,
How can i make shadow effect Text in Text View. Any Idea?
Thanks..
...
I am putting several markers on a MapView by subclassing an ItemizedOverlay. The hitch is that the marker I am passing to the ItemizedOverlay is a custom Drawable. That is to say, I've subclassed "Drawable" and I have overwritten the draw() method. The point of this was to add a color filter to the Drawable, and add custom text:
publ...