edited November 2014 in General Discussion
Been trying to figure out how to get unistorm to spawn with your player with out screwing up so far ive gotten 2 things to happen

#1 : I spawn it like normal and it spawns the character in the sky and you fall in to the endless abyss

#2 : i use the player as the main part of the prefab and it spawns the character normal but then the sky moves with the player which means no dynamic sky.

anyone been successful with this yet?
new website can be found here http://www.fore-loregames.com

Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

or check out the face book page here https://www.facebook.com/ForeLoreGames
  • I have. I'm at work right now; so, can't go into great detail.

    I setup using a 2 camera setup. I'll try and help where I can with my setup.
  • that would be great thanks!
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • OK...home now and dinner is all done :)

    This is for FIRST PERSON perspective. I haven't tried it from a TPS camera.
    I'm not sure of the best way to show my setup through the boards.

    I followed the 2-camera setup in the PDF manual that comes with Unistorm. So, I have an FPSCam and a SkyCam. The skycam renders Unistorm
    I removed the player controller from the Unistorm prefab
    I moved all of the particle prefabs to the player prefab

    so my player prefab looks something like this:

    Player -> FPSCam
    SkyCam
    Particles -> rain
    snow



    The real tricky part was hooking up the particle prefabs to Unistorm after the player spawns.
    What I did was write a script that sets the particles for me after the player prefab spawns in game. I can post that if you want as it wasn't very big.

    The next thing I need to do is create an ORK plugin that will save/load the time data from the Unistorm system when the player loads/saves a game. :)
  • edited November 2014
    thats weird i didnt see anything about that kind of setup in the docs ofc my docs say 1.64 event though i got the latest version. so do you have 3 prefabs or are they all the same prefab? or does your hierarchy look something like this
    player
    >fpscam
    >skycam
    >All particles

    So that its all one prefab and you spawn the whole thing or does the system stay in side the scene while you just spawn the player with particles attached?

    If you dont mind could you post the script please.



    on a side note Ive been able to work it so that ork and ufps work with the full body awareness with a different model and am able to animate the whole body with mecanim. which is looking really good. just trying to figure out some clipping issues and camera adjustments on it so that it looks more first person well it does now but say you go to attack theres a bit of clipping aand casting spells you some time lose the hand to the left side of the player which i think is a issues witht he cam swaying to much . but by doing so i get the spring physics from the character running around and the mouse look with head movement so in other words i turn the mouse the head goes with it on the model type deal so its more like you are the person. my setup would probably be the shit on oculas rift. But for now if i can get some of the alignment of the cam fixed which i have to find the settings for that and some body clipping . and getting the cam to move with the body better during some animations ill have the most perfect fps rpg sysetm out there combined with unistorm and relief terrain pack and terrain composer for the world building were talking A AAA game play fps anything. what i got going on now is a bagabon that will be able to do everything from shooting a bow to swords and magic so basically a mix of everything. if this works the way i want i think @GIL will need to work with Vision Punk and get my setup integrated into ork :p Well the base setup you guys and gals can do all the adjustments you selves :P

    If you make a ork plugin for that ill buy it from you lol :P
    Post edited by wtyson on
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Yes, that is how my player prefab is setup
    player
    >fpscam
    >skycam
    >All particles

    The whole thing is spwaned. I'll post my script tonight.
  • cool thanks just finished setting up the 2nd cam for it just now
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Here is my script that I used to hook up Unistorm after the player perfab spawns in the game. Just drag it onto your player prefab


    public class HookupUniStorm : MonoBehaviour
    {
    #region fields
    public GameObject unistorm;
    public GameObject unicamera;
    public GameObject rain;
    public GameObject rainStreaks;
    public GameObject snow;
    public GameObject butterflies;
    public GameObject mistFog;
    public GameObject snowMistFog;
    public GameObject mistCloud;
    public GameObject windyLeaves;
    public GameObject lightningBolt1;

    #endregion

    // Use this for initialization
    void Start ()
    {
    unistorm = GameObject.FindGameObjectWithTag("UniStorm");

    if (!ReferenceEquals (unistorm,null))
    {

    UniStormWeatherSystem_C[] weathers = unistorm.GetComponentsInChildren<UniStormWeatherSystem_C>();
    UniStormWeatherSystem_C weather = weathers[0];
    if (!ReferenceEquals (weather,null))
    {
    weather.rain = rain;
    weather.snow = snow;
    weather.butterflies = butterflies;
    weather.mistFog = mistFog;
    weather.snowMistFog = snowMistFog;
    weather.mistCloud = mistCloud;
    weather.windyLeaves = windyLeaves;
    weather.lightningBolt1 = lightningBolt1;

    weather.cameraThing = unicamera;
    }
    }
    }


    }



    Drag the particles from your player onto the appropriate gameobject field.
    Also, add a tag "UniStorm" to your Unistorm prefab.
    If all goes well, you should have Unistorm running with ORK
  • worked great thank you!
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • @keyboardcowboy---You should copy and paste your setup into a tutorial in the tutorials section. It only takes a few minutes to do. Don't let all this good stuff get buried in the threads. : )
  • Good idea Cat. I'll put something together this weekend and post.
  • Hello,

    I did every step you mentioned everything seems to be fine.
    But I found that the day/night never changed, and Sun/Moon never moved at all.

    Please kindly advise.
  • bomobee said: Hello,

    I did every step you mentioned everything seems to be fine.
    But I found that the day/night never changed, and Sun/Moon never moved at all.

    Please kindly advise.
    sounds like an issue with unistorm it self i have not touched uni storm in a long long time but from the sounds of it that is the issue you are having but uni storm now has its own player spawn script from what i under stand now so i would suggest using that. no idea what folder it is in. im sure some one here might know the answer to that one.
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
Sign In or Register to comment.