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?
I setup using a 2 camera setup. I'll try and help where I can with my setup.
blindmonkeygames.com/index.html
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
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. :)
blindmonkeygames.com/index.html
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
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
player
>fpscam
>skycam
>All particles
The whole thing is spwaned. I'll post my script tonight.
blindmonkeygames.com/index.html
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
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
blindmonkeygames.com/index.html
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
blindmonkeygames.com/index.html
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.
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