How to create "god rays"? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would like to create "god rays" effect/lighting on a 3D shape. If I have a Box, I would like to have a light source behind it that will create "god rays" around it. Below, is an image I found showing the idea (imagine the window as an opaque box and the rays coming around all sides):
I tried setting a PointLight source, but all lights illuminate "solid" objects, so you can't see the effect around them. My guess would be to fill the area around the shape with some sort of air-like, partially transparent material, that engulfs the shape; and that the light can reflect from.
How would I go about creating "god rays?

Related

Floating image in an activity - android - [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to create a picture/button that is displayed over the content of an activity and I can move it anywhere on the screen. Example of functionality: If I move it close to the left side of the screen I would like the image to move to the edge when the user drops the object.
You can either use a draggable view library like DraggableView or you can implement your own onTouch handling to handle touch events for dragging image view. Here's an article for reference.

How to create this gesture effect animation? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How I can create this type of sweep animation using gesture or other method in android studing using java.
Effect: https://ibb.co/hKJjen
So for the swiping cards you'll have to use this library
https://github.com/flschweiger/SwipeStack
When user will touches/swipes the cards there will be a white dot which acts as a pointer just like how you'r attached example shows. Click the below link and you'll get the right code implementation for it!
http://android-er.blogspot.in/2015/05/android-custom-touch-view-with-callback.html

Understanding Java Course Assignment [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Assignment Instructions
I'm not sure what this means or what it is asking me to do, I've been programming with Java for only a few months and this seems really difficult with my limited knowledge.
From what I can tell, your assignment is to draw graphics on a panel using the required methods. The graphics can be of any color or size. Once you have done that, you are to make 3 copies of that panel which will leave you with 4 of the same panel. Then you are to put those 4 panels onto another panel and make a copy of that panel 3 times. This in reality should leave you with 16 of the original panels placed into a 4x4 grid or 4 big panels placed in a 2x2 grid. I would still recommend asking your instructor for help though, incase I am incorrect.

JavaFX Glass shatter / crack and break [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Does anyone have any suggestions as to how I can go about creating an Effect for a JavaFX node that can simulate glass shattering and then (potentially) breaking? if the breaking is more difficult, I can skip that part. Basically I want to layer this pane over an image and then make it look like its a picture frame that then shatters. If it can then break into pieces (after some configurable delay).. that would be great as well!
I've looked everywhere but can't seem to find info on simulating the glass shatter effect in JavaFX.
Thanks!
For a simple solution I'd go with a Path that randomly extends and change the style of the path during time.
More sophisticated code could use a Canvas and paint the shattering on it. Daniel Shiffman with his Nature of Code book may be a base for you with the creation of the shatter effect.

Identificate an object by the camera and react [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Let's assume that the camera is turned into a wall and all it sees is white. Once I turn off the light on my room the camera will see black.
I would like to know how can I react to such a change, is there any kind of a listener?or other way to do that?
If you are only wanting to detect brightness as in the example you gave, you might want to look at the "Light Sensor". A lot (most) android devices have a light sensor for adjusting the brightness of the screen. Try looking here: http://developer.android.com/guide/topics/sensors/sensors_overview.html

Categories

Resources