Log in or register to post comments

Latest Update Breaks Projected Shadows

August 9, 2013 - 2:16am #1

Hey folks,

 

We've been using Vuforia for a while now in conjunction with the Projected shadows script http://wiki.unity3d.com/index.php?title=Character_Shadow

In the past we have had no problems with this, Unfortunately the other day we found we had to update vuforia to the latest version to remove the UDID issues for appstore submition. Doing so has broken our shadows :(. Now whenever the shadow is active, what should be the camera background becomes an almost solid black with ghosting images of the 3D scene content trailing as you move the camera. The second the shadow script is disabled by looking away from the target, the issue is fixed.

 

I've been trying to work out whats going wrong with this, the closest I've come so far was that the camera used in the project shadows was set to the same depth as one of the cameras that the QCAR camera generates. However when i set the projector camera to use a depth that no other camera was using the issue still remained. 

 

It looks like something has changed perhaps with clear flags or something between various rendering steps. But I've not managed to find it yet.  The reason we're using this projected shadows script is that A) this project is still in unity 3.5 and not 4. and B) Even though 4 supports realtime shadows on mobile, the shadows it produces are not as nice as those produced by this projector script setup for our needs.

 

Has anyone else had these issues, or similar ones? Can anyone sugest somewhere to look to find the cause of this problem? Any sugestsions or help are greatly appreciated.

Latest Update Breaks Projected Shadows

August 15, 2013 - 3:14am #9

No problem - just please you have been able to make this work :)

N

Latest Update Breaks Projected Shadows

August 14, 2013 - 9:54am #8

Yup that seems to be doing the trick, time to get updating all of the other projects now i guess :P

 

Thanks again Nalin, we appreciate the help.

Latest Update Breaks Projected Shadows

August 13, 2013 - 5:09am #7

Thanks Nalin, 

 

Yeah I see what you're saying. Will look at rebuilding the scene using the background texture access demo as the template to work to, see where that gets us. I'll post again once I've had a chance to try that and see if it'll work.

Latest Update Breaks Projected Shadows

August 13, 2013 - 5:02am #6

Hi,

I checked with the developers and they advised that one possible cause here is that we had to change the native video background to render in OnPreCull() instead of Update() in order to support Unity4.2, where rendering outside the main render loop is no longer supported.

Consequently the shadow caster scripts might need to be updated to account for this, but exactly how is hard to say for sure, so you may have some work to do here.

The other (possibly better) option is to use the background texture access (see the sample) to render the background directly in Unity, because we have seen a number of complex render setups that tend to work better with this approach and you may find it works better as well.

Hope this makes sense.

 

N

Latest Update Breaks Projected Shadows

August 9, 2013 - 4:29am #5

Thanks Nalin, we appreciate the help.

Latest Update Breaks Projected Shadows

August 9, 2013 - 3:28am #4

It looks like you were using 2.0 SDK which we patched with an updated PostProcessBuildScript around Jan/Feb earlier this year.

I'll check with the dev team and get back to you.

 

N

Latest Update Breaks Projected Shadows

August 9, 2013 - 3:18am #3

Unfortunatley i cannot be entirely sure as to which version the previous build was running on (its been so long since we added it and I cant find the unity package file we used for it at the time).

Closest I can get to providing a version is from the PostprocessBuildPlayer which has "#version data 30/1/13" at the top of it. I hope that helps in some way.

 

If it also helps identify which version The project with the old version did not have any of the QCAR bundle data in the plugins folder. Only the plugin files in the iOS plugins folder. 

 

Is there anywhere in the files themselves that might sugest an exact version number that i can go looking for?  It only seems to add unity version number to the text file in streaming assets.

Latest Update Breaks Projected Shadows

August 9, 2013 - 3:10am #2

Hi,

Could you please tell me which exactly version of Vuforia it was working as expected?

N

Log in or register to post comments