Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
philiparas4

Sun Shaft

Question

Hey guys I have unity 4 pro and I want to use the sun shaft script. My problem is that I don't know how. I have searched all over google/bing and youtube but didn't find anything that could help me. So if anyone could help I would be really gladful. Thanks in advance :) .

Share this post


Link to post
Share on other sites

19 answers to this question

Recommended Posts

  • 0
Please login or register to see this quote.

Go to your camera and go to Component -> Image Effects -> Sun Shafts then you need to change the sun transform to the sun

More info: Please login or register to see this link.

Share this post


Link to post
Share on other sites

  • 0
Please login or register to see this quote.

Same problem. But if I could it doesn't matter because it's on the main camera and not on the fps controller. So it wouldn't appear in my game. I psoted a second image showing nothing happens.

Share this post


Link to post
Share on other sites
  • 0

oh whoops I didn't get ur setup for a moment there. Well errr, check ur build settings. Make sure it is deferred rendering and all since that's best. I dunno what else after that. If that doesn't work make sure that nothing is intefering and blocking it. If nothing, then I dunno, try google. But try the above first.

Share this post


Link to post
Share on other sites
  • 0

Well I even reinstalled it but nothing. Can you post an image of how to set up the sun shafts so I check if I have done anything wrong? I think I haven't done the part saying : "then you need to change the sun transform to the sun" . Any image on how to do this would be great :) .

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

*facepalm*

Of course, how did I not see that. You are absolutely right about that one. You know where it says sun transform then it says None(Transform), drag your light onto the None(Transform)

Share this post


Link to post
Share on other sites
  • 0

When you say sun you mean the directional light? Sorry for so long discussing but I haven't worked any other time with Untiy 3d.

Share this post


Link to post
Share on other sites
  • 0

Yes it should work with skybox. MAKE SURE SUN SHAFT IS ATTACHED TO MAIN CAMERA NOT THE PLAYER. THEN drag the sun to the shaft caster and drag the sun y position to about 3000. Now play the game and look up. It should work because the sun shafts script is based on the sun position.

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

Well my actually problem is that I can't find any sun to attach it to my shafts caster neither when I search nor when I try to drag my skybox sunny3 up to the shafts caster.

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

GameObject -> Create new -> Directional Light. Now drag Directional light into the shaft caster and move the position far up.

Share this post


Link to post
Share on other sites
  • 0

hi im not sure what is sun chaft or whatewer but if u want make a sun crete.point or directional light, put it wherr yu want be sun and atack on it godrays or lens flare script. or ad halo on it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...