• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by teemujin · Sep 21, 2010 at 06:47 AM · iphonevolumetricrays

good looking god-rays that will work on iPhone?

anyone have a recipe or technique for god-rays ( crepuscular rays )

simulating underwater shafts of light - that will work on an iPhone 3GS performance wise?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by SAMsan · Sep 21, 2010 at 09:32 AM

I've seen and used (but not in unity) a simple technique to simulate rays. It consists in creating a trapeze with transparent "rays" texture. To improve the effect, you may use several concentric trapezes.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by kavikah · Nov 23, 2010 at 02:51 AM

Try using line render - use a alpha'd texture. Works quite well.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by MarkD · Mar 07, 2014 at 11:51 AM

There is this system on the asset store https://www.assetstore.unity3d.com/#/content/13196 It generates light shafts based on a plane like @SAMsan suggested, it only takes away the trouble of setting up hundreds yourself and have real-time collision + multiple other options.

If you want it to follow a specific casting order you can even create a mesh (external program) and place vertices on all the spots you want a shaft to be casted, the system will use that vertex data (not the actual mesh) and create casts on given positions. This can be great for large scenes as well underwater.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

malloc :*** error for object 0 x xyz : pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug [Iphone][Unity] 1 Answer

How to test on iOS simulator? 1 Answer

ARkit objects not showing up on phone 0 Answers

How to visualize a volumetric sphere using color gradients? 0 Answers

Rays drawn using Debug.DrawRay "fall" in editor view 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges