I had to change CiDyPedestrians.cs line 14: public class CiDyPedestrians : Spawner -> public class CiDyPedestrians : WizardsCode.Character.Spawner Other than that this works out of the box. Great tutorial!
@WizardsCode
3 жыл бұрын
Thanks for the pointer there, I recently changed the namespaces in the core project. I'll update the Gist to include the correct `include`.. thanks again.
@bdd740
3 жыл бұрын
That is amazing. Thanks a lot, gonna try this.
@WizardsCode
3 жыл бұрын
From earlier comments I saw you were a Gaia user. CiDy has great integration with Gaia. It will blend the roads and buildings with the terrain and create a mask for Gaia so that vegetation spawns properly too.
@marywang8237
9 ай бұрын
This is awesome! Hypothetically, if we put this into a VR as a simulation, would we be able to do that using this? If not, how can we do it?
@WizardsCode
9 ай бұрын
Yes, this will work fine in VR (with usual performance caveats)
@lawrence9713
Жыл бұрын
do you actually need CiDy 2 for this or could you just make your own streats in maya or blender and use them to have your cars driving on it?
@WizardsCode
Жыл бұрын
The Simple Traffic System is not dependent on CiDY2. You can use any models you want. As I type this it is on a 50% sale too. bit.ly/SimpleTrafficSystem The pedestrian code is not dependent either.
@gbyamg3dartist552
Жыл бұрын
thanks buddy
@WizardsCode
Жыл бұрын
You are welcome, thanks for the algorithm juice.
@stanislavjt9274
3 жыл бұрын
hello)) it would be very interesting to see how to quickly randomly create terrain gaia using world design, and then using cidy a medieval area or city.
@WizardsCode
3 жыл бұрын
I have good news for you then. On my recent live streams I did this, though world the World Generator. I should look at world generator, so maybe I'll do that. I will be recording a tutorial on it soon.
@WizardsCode
3 жыл бұрын
This evening I had a play with the World Designer part of Gaia Pro. I find it to be incomplete an buggy. Procedural Worlds have said it is getting an update soon so I'm not going to do a video using it yet, I'll wait until the update. I will however do the stamp a world, create a City with CiDy2, change the theme to be medieval and Add characters populating the city. Might take me a couple of weeks to do all that. If you are brave and want to work through my live streams (which is experimental and thus you get to see how NOT to do it as well as how to do it) then there is a playlist with them in. I've done all the above (though the characters just wander, in my edited video they will have a full AI life)
@stanislavjt9274
3 жыл бұрын
@@WizardsCode I watched Stream: Unity 3D: CiDy2, Gaia Pro and 3D Forge. The village looks like a modern village to me. But if you change the roads, change the design, put up a castle, and a couple of stalls, it really will look great. For pedestrians, I'll see if cidy can be used with Game creator. In addition, if you use GAIA with a system of sounds, how will they react to the city cidy. But the most interesting is how to optimize all this later.
@WizardsCode
3 жыл бұрын
There are actually two videos. The first one I was setting up the theme, which included using mud for the roads. However, the CiDy themes don't carry that across and I never did it in the second video. If you want to jump ahead of my video editing (which has not started yet) take a look at that one. When I do the final version it will have that. I also intend to replace the cars with horse and carts. I started doing it in the first vid but quickly quit as I didn't know how to do it and had already had many misteps. I hope to do it in the final vid. Sounds are important, I will probably use Ambient Sounds for that. But I haven't even started on that yet. I have been focusing on the AI for the city dwellers. I've got pretty close to what I need now - basically instead of running everywhere they now wander, talk, work, eat etc. This is becoming a bit of a massive project, so I think the final video will be some time off. I will likely do an interim one showing of the pedestrian AI (which is in the open source character system I'm building).
@macksnotcool
4 ай бұрын
Can you add in your own building assets?
@WizardsCode
4 ай бұрын
Sure. I do this in one of my streams: kzitem.infovR07esmLcMs?si=aLiaU6wOt_YrI-Dh
@macksnotcool
4 ай бұрын
@@WizardsCode dope!
@adamaze2920
3 жыл бұрын
I have STS. Didnt know it can generate traffic just like that. But i need Cidy2 though
@WizardsCode
3 жыл бұрын
It's an integration package that is only available if you have CiDy. As you will know seeing up routes for STS can be quite a chore. This one click setup is really fantastic.
@adamaze2920
3 жыл бұрын
@@WizardsCode is the integration with Gaia 2 good? If you have the time...try doing a tutorial scene but with Synty City prefabs instead
@WizardsCode
3 жыл бұрын
It's fairly bare bones to be honest, but it is enough and there is more planned. Essentially it makes sure that you don't spawn vegetation on the roads or where houses are. It doesn't (yet) allow you to control spawning along the roads or in the cells. Though it does the work through applying a mask so you could easily grab that mask and color it then setup your own biomes to work with that. I mentioned this to the publisher and he agrees it's a good idea. I don't want to imply he plans to implement it. But I'm hoping he will. I am planning a tutorial with 3D Forge assets, but not Synty. However, it should be easy to take that tutorial and reproduce with Synty assets.
@inteletronx3564
2 жыл бұрын
Question.. Does CiDy allow putting traffic and pedestrians in a terrian I built by myself which is a fbx file from blender?
@WizardsCode
2 жыл бұрын
CiDy only works with Heightmap terrains. The traffic is Simple Traffic Sytem and will work for you, but you will need to manually place the roads and waypoints for the system. The pedestrians will work on anything with a NavMesh. See the links in the description.
@kagigreenscreen
3 жыл бұрын
Hi again i would like to get this pedestrians working but its some how way too hard as wizards etc seems togo to another youtube video etc is there some way to make this easier for everyone ??
@WizardsCode
3 жыл бұрын
My goal isn't to provide our of the box solutions, but rather to demonstrate techniques. A full or if the box solution requires animations, character controllers, city design, art assets and more. Even then it would only enable people to do the specifics of what it was designed for. I am more interested in showing people how they can do it for themselves. But that does mean a steep learning curve as it assumes previous experience. As this matures it will get easier, but I don't believe it will ever be an out of the box experience.
@iamprofessionalprogrammer
2 жыл бұрын
mr in sts tools /configure mode i can not found the city2 ?
@WizardsCode
2 жыл бұрын
I assume you mean at kzitem.info/news/bejne/0oBn1qeZjnVko2U - as you can see it is there. If you are not seeing it then you have an older version of STS. Update and you should find it.
@kagigreenscreen
3 жыл бұрын
hi again i cant seem to get your pedestrians code to work for some reason #if CiDy using UnityEngine; using System.Collections; using System.Collections.Generic; using WizardsCode.Utility; using CiDy; namespace WizardsCode.CiDYExtension { /// /// Extends the Wizards Code Spawner with features to automatically configure the NavMesh Areas in a /// CiDy generated city. /// public class CiDyPedestrians : Spawner // NOTE: if you don't want to use my spawner code simple make this extend MonoBehaviour rather than Spawner. { [SerializeField, Tooltip("The CiDy graph object that manages the generation of the city.")] CiDyGraph cidyGraph; [SerializeField, Tooltip("The name of the navmesh area to use for roads and junctions.")] public string roadAreaName = "Road"; [SerializeField, Tooltip("The name of the navmesh area to use for road crossings.")] public string crossingAreaName = "Crossing"; [SerializeField, Tooltip("The name of the navmesh area to use for pavement/sidewalk.")] public string pavementAreaName = "Pavement"; } } #endif in tyour note you say NOTE: if you don't want to use my spawner code simple make this extend MonoBehaviour rather than Spawner. is there some way i can get help working this out so i can add to my project
@WizardsCode
3 жыл бұрын
What, exactly, are you having difficulty with? Is it that you don't understand the note about monobehaviours? If that's the case all you need to do is replace `public class CiDyPedestrians : Spawner` with `public class CiDyPedestrians : MonoBehaviour`
@mikeha
Жыл бұрын
CiDy2 is no longer available, is there any replacement for that?
@WizardsCode
Жыл бұрын
I was unaware that CiDY2 was no longer available. I see the publisher is no longer on the store either. That is a real shame. It was not a perfect asset, but it was useful. In terms of a replacement there is a publisher who is putting the final touches to their city generator. They have been posting some progress updates on our discord at bit.ly/WizardsCodeDiscord. I believe it is close to release, but I don't know a date at this point.
@vikiburshtein2786
2 жыл бұрын
Hi, I am new to unity and I'm trying to build a driving simulator, is there any way to build a logic around the traffic lights? Thank you
@WizardsCode
2 жыл бұрын
If you can code you can do anything you want as the source code for these assets is provided. If not then you will find yourself much more limited. If you are not a coder then you might want to look at Bolt - a free visual scripting language docs.unity3d.com/bolt/1.4/manual/index.html?aid=1101l866w
@vikiburshtein2786
2 жыл бұрын
@@WizardsCode Thank you for your fast answer! I am a coder, but as I said I'm very new to unity. I want to build a logic around traffic lights, so the driver loses points for passing a red light. Can you recommend a tutorial for such a thing?
@WizardsCode
2 жыл бұрын
That's very specific. I'm not aware of any tutorials. However, as a coder you should be able to work it out. I would start with figuring out how the AI cars know to stop at a red light.
@JasonJason210
Жыл бұрын
Can you use custom models and characters in that?
@WizardsCode
Жыл бұрын
Your certainly can.
@tuse5449
2 жыл бұрын
We need an update about this its outdated for me its not the same option that you have
@WizardsCode
2 жыл бұрын
Thanks for flagging that. There are no options for CiDy, Stylized Vehicle pack or STS that I'm aware of. However, the Character code has been updated and it looks like I didn't use a versioned link - my bad. The code does still work but it has been refactored. If you want to hop into my Discord (bit.ly/WizardsCodeDiscord) I'd be happy to work with you on reproducing it. Then I can knock out an update for the video. I'll add a note to this effect into the description too - thank you for flagging my error.
@WizardsCode
2 жыл бұрын
For anyone reading here, this is the updated instructions for enabling the pedestrians. All other parts of the video are the same. Window -> Package Manager Click the '+" in the top left Select 'Add package from Git URL' Paste in github.com/TheWizardsCode/Character-Unity-Package.git * Create a script called Scripts/Runtime/CiDY/CiDyPedestrians * Get the code for this script from [CiDy Pedestrian Scripts](gist.github.com/SorraTheOrc/8706e8cfa122d57e509272bf163d6125) * Create a script called Scripts/Editor/CiDY/CiDyPedestriansEditor * Get the code for this script from [CiDy Pedestrian Scripts](gist.github.com/SorraTheOrc/8706e8cfa122d57e509272bf163d6125) * Window -> AI -> Navigation * Select Areas * Change Cost of Walkable to 2 * Setup three layers as follows: * Road : 20 * Crossing : 6 * Pavement : 1 * Create Empty Game Object * Name it Pedestrian Manager * Add CiDyPedestrians component * Position it roughly at the center of the city * Drag Packages/Wizards Code - Character/Character/Resources/Spawns/City Pedestrians in three colours into Spawn Definition * Set Number to 200 * Set Radius to 350 * Drag CiDyGraph Game Object into the CidDy Graph parameter * Check Soawn on NavMesh * Set Navmesh spawn area to Pavement * Click Configure CiDy
@ravindulasantha8986
2 жыл бұрын
❤️❤️
@WizardsCode
2 жыл бұрын
:-D
@fcf8269
Жыл бұрын
Nice but it needs paid assets; would be great to see actually how to get to the same results by actually making it from scratch
@WizardsCode
Жыл бұрын
Well the title says "in minutes" so making it from scratch is out of the question. The pedestrians are not a paid asset though, that is code I created and is available to you under an open source license. As for the paid assets, they are cheaper than the time I would spend on them. That may not be true for everyone of course.
@ansqad226
Жыл бұрын
is this mobile friendly?
@WizardsCode
Жыл бұрын
That depends on what mobile, how many cars and people, the size of the city, what models you are using and many other factors that are not in control of the assets. It's what you do with them that makes them mobile "friendly" or not.
@ansqad226
Жыл бұрын
@@WizardsCode can the traffic system alone be used in another environment, rather than to make the whole city and then add traffic system?
Пікірлер: 59