1
Other Packages / Re: Tasharen Fog of War change axis to 2D x-y
« on: July 28, 2015, 05:32:38 AM »
I tried several times to get this working but I'm afraid I've had no luck.
I changed float y = t.position.z - mFog.worldSize * 0.5f;
to float y = t.position.y - mFog.worldSize * 0.5f;
Also changed .z's to .y's in FOWsystem.
At this stage it still doesn't work for me, so I also changed this:
mSize = new Vector3(worldSize, heightRange.y - heightRange.x, worldSize);
to:
mSize = new Vector3(worldSize, worldSize, heightRange.y - heightRange.x);
Still not working.
Not sure if there's anything else I need to do in regards to co-ordinates in my scene, but I think its all based on world co-ords?
If I can get the fog to reveal, generally what I'll see is a big line getting revealed on the Y axis, which should be a radius.
If anyone's got this working in the latest version I'd love to hear from you (or the developer!).
Thanks,
Jay
I changed float y = t.position.z - mFog.worldSize * 0.5f;
to float y = t.position.y - mFog.worldSize * 0.5f;
Also changed .z's to .y's in FOWsystem.
At this stage it still doesn't work for me, so I also changed this:
mSize = new Vector3(worldSize, heightRange.y - heightRange.x, worldSize);
to:
mSize = new Vector3(worldSize, worldSize, heightRange.y - heightRange.x);
Still not working.
Not sure if there's anything else I need to do in regards to co-ordinates in my scene, but I think its all based on world co-ords?
If I can get the fog to reveal, generally what I'll see is a big line getting revealed on the Y axis, which should be a radius.
If anyone's got this working in the latest version I'd love to hear from you (or the developer!).
Thanks,
Jay