Sponsored Adverts

Author Topic: [Unity] Fantasy asset pack for maps, levels, environments  (Read 2493 times)

0 Members and 1 Guest are viewing this topic.

Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #15 on: January 11, 2019, 09:28:26 PM »
this image shows a test room i built with 25 of kat's lever models. i didn't notice any drop in fps while they were moving, which surprised me.

take into consideration there is only one invisible trigger, and one real time light, which doesn't cast shadows. so this was really to test if the scripting and animating geometry was expensive.

if we had shadows on or more lights, it would slow down to some degree.



Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #16 on: January 13, 2019, 07:27:24 PM »
i've now got the rotating door code working in my door manager script. next i'll work on the sliding doors. which the manager will detect when needed.

in this image we have a script order of "trigger manager > lever manager > door manager" as well as each of them having their respective data scripts, for storing the start and updated variables in.

the order could also just be "trigger manager > door manager" as the lever scripts act as a relay, but are not required. the same principle would apply to buttons, when i've made them.


Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #17 on: February 01, 2019, 05:43:22 PM »
i've got the sliding doors working. so that's the door manager finished for now, i think.

i also wrote a gizmos script for doors. which detects the door type, ie rotating or sliding, and draws either a little yellow pivot for rotating doors, or a sliding direction vector for sliding doors. the latter can move up, down, left, right, forward or backwards.

we can also enter into the inspector the door's move speed.



Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #18 on: February 04, 2019, 05:13:44 PM »
these two images show the pairs of trigger volumes and levers for opening some doors.

note the 2nd image has unity's "scene window > gizmos menu > 3d icons" turned off. which makes it easier to see the gizmos we're working with in the foreground, but also clutters the screen with gizmos scripts attached to objects in the background. we can disable those objects and or their scripts if need be.





Online kat

  • Administrator
  • Hero Member
  • *
  • Posts: 2302
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #19 on: February 04, 2019, 06:20:40 PM »
If you don't see comments in reply to these updates of yours just know that there isn't really much to add/comment on with these other than "good work", heh.

Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #20 on: February 04, 2019, 06:40:28 PM »
understood. no problem my friend. i'm really enjoying producing content again. it's coming together quite smoothly, when my old laptop isn't playing up, he he.

of course, if you or anyone else has any questions about my work with your assets, feel free to ask. hopefully i can release my prefab package soon.

Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #21 on: February 08, 2019, 05:52:44 PM »
here's a couple of wip images of the floor buttons, using kat's models and textures.

i slightly scaled up the width of the moving parts of the buttons. as i thought the original gaps looked a little too big. thankfully we can easily do this via the transform's scale property in the inspector. the prefabs i will be releasing will have this scaling already applied. so level designers can just drag and drop the prefabs into the scene, then adjust their height depending on how much they want the prefabs sunk into the floors.

i might make separate prefabs for wall buttons, with 90 degrees rotation and possibly scaling. the scripts i'm writing will detect which direction the moving part is likely to use, as well as display an inspector variable for the distance it travels when triggered.





Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #22 on: February 10, 2019, 05:14:24 PM »
i added in a feature to the lever gizmos, allowing the level designers to offset the little blue origin for connecting lines, in case it's obscured by the models.



Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 995
Re: [Unity] Fantasy asset pack for maps, levels, environments
« Reply #23 on: February 10, 2019, 07:59:54 PM »
i've updated the door manager script so it can now open the doors away from the player, if the level designers want. it's not actually detecting which side of the door the player is on, it's based on which trigger volume or lever/button is used.

we can also set the amount of rotation for each door from -135 to +135 degrees relative to their start rotation.





 

Sponsored Adverts
RSS Content is copyright © KatsBits™ 2018 unless otherwise stated. All Rights Reserved.
No part of this web site may be reproduced (except for personal use, or otherwise stated) without prior written permission from KatsBits.com. For more infomation on copyright click here.
Web design cpdtAdvertisePrivacy PolicyDMCA (about DMCA) Home Store Workshops Blog Jobs Support About Katsbits Contact Site Search KatsBits Help Site Map RSS feed Forum YouTube FaceBook LinkedIn Twitter IMVU