CityScope / CS_CityScope_Unity

MIT CityScope Projects and Modules in Unity3d Environment
GNU General Public License v3.0
10 stars 5 forks source link

Shaking Tree + Scoreboard in BRT Project #1

Open william-lawvere opened 5 years ago

william-lawvere commented 5 years ago

Hi,

I am trying to replicate the functionality of a couple features at the end of this video (https://www.youtube.com/watch?v=_5cQb8gAR_M) in your BRT project:

1. shaking trees
2. overlaid scoreboards

I couldn't get your code working on iOS. I attempted to import the BRT Unity scene into my Unity program, but it looks like some prefabs are missing and the scene isn't visible. I can find assets that look like your tree and scoreboard in the Unity project file, but I'm not sure how to compile them into augmented reality (I have both iOS + Android devices).

Here's a screenshot of what I can see:

image

Is there any chance you might be able to tell me how to get the program to compile properly? I think there may be some files missing from the project.

Finally, I have two questions about your approach for implementing these features:

  1. Is the shaking tree essentially an animation that is placed somewhere in the scene, in a fixed predetermined position? I assume the scoreboard is implemented the same way, although the scoreboard itself is static.

  2. Where in your source code is the code for getting the trees to shake?

If I can't get your code to work, if you could answer these questions, I can try to reimplement these features from scratch via another augmented reality package.

Thanks for any help you might be able to give me!

RELNO commented 5 years ago

Hi @william-lawvere thanks for your interest.

Is there any chance you might be able to tell me how to get the program to compile properly? I think there may be some files missing from the project.

I'm afraid there is an issue with newer versions of unity that breaks some prefabs links. I'm afraid I don't have capacity to looks into this now, but all prefabs/scripts should be there, only not linked.

Is the shaking tree essentially an animation that is placed somewhere in the scene, in a fixed predetermined position? I assume the scoreboard is implemented the same way, although the scoreboard itself is static.

The trees, scoreboard and the rest of the AR application you've linked to are not part of this repo, but of a different (not on git) project. This project contains a simple scanner, projection and display of a few BRT street section modes.

Where in your source code is the code for getting the trees to shake?

Trees movement is easy to achieve in unity, see here: https://docs.unity3d.com/Manual/terrain-Trees.html