Questions tagged [shadow]

Questions related to drawing or setting shadows on an object. It refers to graphical shadow in user interfaces and 3D rendering and not to be confused with conceptual shadows (copies) of an object, library, database etc.

Examples of a graphical shadow: enter image description here enter image description here

2031 questions
0
votes
4 answers

Elevation on circular Image not woking Android

the elevation is not working even after adding padding to the view, here is the Relative layout, what else I should add for a shadow in the image view.
varun setia
  • 148
  • 10
0
votes
1 answer

Transparancy on image not working together well with box-shadow

So I've been trying to add a shadow to my images and I've been encountering some issue. The images used are PNG of cut out products but they have a round border so there's still some transparent corners as seen here: This is my image in…
0
votes
1 answer

Shadow map matrix transformation

I can't seem to wrap my head around these shadow map matrices. It works great when light angles are about a 45 degree lookat position to 0,0,0. For example, if the sun angle is high(y) vs x,z. The shadows don't line up with the models. A light…
Normfly
  • 11
  • 3
0
votes
2 answers

How to create a shadow that contains colour with a feather effect?

I have been searching around the interwebs for a way to create a glow/shadow effect for my ImageView inside android. I have attached a file with a concept that I created; under each theme card you can see a feathered glow effect that is the same…
0
votes
1 answer

Android image view bottom shadow

How can i make recycle view item like this(shadow) in android? https://dribbble.com/shots/4020189-Scroll-and-sidebar-interaction
0
votes
2 answers

Set view's rounded corners and shadow

I need to round the bottom left and right corners of a view and base on what I found on the internet I created this function inside an UIview extension: func setRoundedCorner(withRadius radius: CGSize, forCorners corners: UIRectCorner ) { let…
Lorenzo Santini
  • 655
  • 7
  • 13
0
votes
1 answer

Android: no shadows in whole application, FAB

Hello I´m trying to add shadows but I can´t find a way to get it done, I already tried app:borderWidth="0dp" and altering the Elevation/Translation of my views but Nothing worked out. compileSdkVersion 27 defaultConfig { …
0
votes
1 answer

How to get shadows working with ArCore Unity?

I don't want an object to cast a shadow. I want a large object that is one piece to cast shadows into itself like a AO bake. It works perfect if I use the USB instant preview, but when I do a build, there are no shadows to be seen. What setting have…
3DARTIST
  • 1
  • 1
0
votes
1 answer

Unity shadows ignoring shader's transparency but only in build

I've made a custom shader that adds a pass to the surface shader to achieve an outline around the object. The object is a quad with the characters sprite on it to achieve a 2d character in a 3d game. The object should be casting a shadow in the…
user3367083
  • 61
  • 2
  • 7
0
votes
0 answers

Opengl: Can we calculate how much percentage of object is shadowed by other object in the scene?

We are making a simulation of city with lot of buildings. We have requirement to calculate how much percentage of building surface is of directly illuminated by sunlight(direct-light). Is there any feasibility read pixels of shadow and calculate…
0
votes
1 answer

Unity transparent shadow receiving plane for AR app to receive only shadows and not light reflections

I'm working on a transparent shadow receiving shader for Augmented Reality app in Unity, that is put into a plane which will receive shadows from point light or spotlight. It works fine, but the plane receives light also as you can see in the…
0
votes
3 answers

How to have div box shadow to go fully right and down side with top clear?

box-shadow: 0 0 0 10000px rgba(0,0,0,0.65); If this box-shadow css applied to DIV, div will be only visible on page, and other thing go under shadow. Is there a possibility, to apply box-shadow that goes 100% or fully to right and bottom only,…
Vegeta
  • 3
  • 3
0
votes
1 answer

Android: how test PDFView in Roboelectric?

I used PDFView to display PDF files, which was a success. But I don't know how to test this method in unit tests. com.github.barteksc.pdfviewer.PDFView pdfview = mainView.findViewById(R.id.pdfview); public void showDocument(final InputStream…
alice
  • 23
  • 7
0
votes
1 answer

GridPane, row drop shadow to another row

https://i.stack.imgur.com/xjGOU.png - Here is a layout that i have GridPane at (0,0) contains pane with logo and buttons GridPane at (0,1) contains pane that will be main program view. I want to dropShadow from 0,0 to 0,1, only at bottom, to have…
0
votes
1 answer

Unable to create shadows around button and UIView

I added in my app a button and set it with this code: locationButton.layer.cornerRadius = 7 locationButton.clipsToBounds = true locationButton.layer.shadowColor = UIColor.black.cgColor locationButton.layer.shadowOffset = CGSize(width: 0, height:…
1 2 3
99
100