Jump to content


Photo

Help requested: Trying to make a scissor gate


21 replies to this topic

#1 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 18642 posts

Posted 15 June 2017 - 05:31 AM

Obsttorte and I are trying to create a scissor gate for an elevator I am building, and I thought it can't hurt to ask for help.

 

The issue making each part move, but have them anchored to each other. One way would be to have the verticle part as sliders and the diagonal the same but with custome rotations and slide values - the issue with that is if the prefab is then rotated all the values wont apply and would have to be tweaed - which would be a right PITA.

 

So what I think we what ideally is -

  • each diagonal part to be a proper moving entity with two achor points
  • each vertical part be a sliding entity

Capture.JPG

 

Attached File  scissor_gate.pfb.txt   90.31KB   16 downloads

 


  • Aosys likes this

#2 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 596 posts

Posted 15 June 2017 - 05:58 AM

It's just my opinion, but setting up such complicated mechanism isn't worth those two seconds during which player will say, 'oh, cool', and move on. I'd make it simple: two pieces, one static (probably with some of this geometry on alpha) and one horizontally sliding behind it.



#3 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 18642 posts

Posted 15 June 2017 - 06:34 AM

Heh I hear what your saying, but I have done just that in almost every map I have made. I do it as much for me as I do for the player.



#4 rich_is_bored

rich_is_bored

    Advanced Member

  • Member
  • PipPipPip
  • 856 posts

Posted 15 June 2017 - 07:41 AM

If the gate was a texture you could stretch and squish it to achieve the intended effect.



#5 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 539 posts

Posted 15 June 2017 - 08:16 AM

That is indeed a very complex setup, i can see some ways this can be done:

 

1 - use bones, for the joints and animate it, very complex imo.

 

2 - also very complex, still use bones but instead of animating it, for example on blender, make it a articulated figure on the idtech 4 AF editor, don't know how stable is the physics engine for this, but one time i did made a dynamic door, ala Penumbra, unfortunately was unable to find a way to make part of the model static, so everything moved around.

 

3 - make it a static object, use more than one gate to achieve a more or less desirable effect, like for example one gate goes down and two (or one) go side to side that crossing makes for a nice effect, and if i'm remembering correctly that is how it was done in Outlast and The evil within games.

 

That texture idea from rich_is_bored could work but wouldn't it cause extreme texture deformation from the squishing effect?

 

btw You could also script it like id did with the crane mini game but man what a script that would be.  


Edited by HMart, 15 June 2017 - 08:20 AM.


#6 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 11834 posts

Posted 15 June 2017 - 05:00 PM

Your design won't work.

 

To change it into a working design, the horizontal rows of yellow circles at the top and bottom would also need to slide up and down. The angled pieces can't be fixed to the vertical pieces at those points, otherwise the gate won't close.



#7 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 18642 posts

Posted 15 June 2017 - 05:38 PM

I did wonder if those points were fixed, you cant tell from any number of images shown on the web that those points are in fact slots -

 

well spotted!


Edited by Bikerdude, 15 June 2017 - 05:56 PM.


#8 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 18642 posts

Posted 16 June 2017 - 04:02 AM

Well young Obsttorte has come through with the goods!, would have a fulling working scissor gate B)

 

I just nee to find some open, move and close sounds.


Edited by Bikerdude, 16 June 2017 - 04:02 AM.


#9 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5151 posts

Posted 16 June 2017 - 04:56 AM

So what I think we what ideally is -

  • each diagonal part to be a proper moving entity with two achor points

 

As I've just read it. We don't have such entities. idTech for only supports one constraint/anchor/bind or however you want to call it for normal ingame entities. I think you can have more complex setups on md5 meshes, although it is not really recommended (due to mathematical issues that will occour under such circumstances ... well, not really issues, it just makes the math more ... um ... fun :D)


  • Bikerdude likes this
FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#10 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 18642 posts

Posted 16 June 2017 - 09:41 AM

well, not really issues, it just makes the math more ... um ... fun :D)

:huh: :D



#11 NeonsStyle

NeonsStyle

    Advanced Member

  • Member
  • PipPipPip
  • 1249 posts

Posted 16 June 2017 - 01:01 PM

I would say the easiest way to do this would be to make just one part of it. An upright, and a two x diagonals. Get it work, then you're there,

and you can just clone and bind them.,

 

The Sound Factory on youtube has gobs of free sound effects. Free to use in your projects. 


Edited by NeonsStyle, 16 June 2017 - 01:09 PM.

I have a small YouTube channel making videos on a variety of games. Come and have look here:
 
https://www.youtube.com/c/NeonsStyleHD

 

 

 


#12 NeonsStyle

NeonsStyle

    Advanced Member

  • Member
  • PipPipPip
  • 1249 posts

Posted 16 June 2017 - 01:02 PM

It's just my opinion, but setting up such complicated mechanism isn't worth those two seconds during which player will say, 'oh, cool', and move on. I'd make it simple: two pieces, one static (probably with some of this geometry on alpha) and one horizontally sliding behind it.

 

It is ALWAYS worth it. Not because of the player, but because you learned something, you created something new for the community. There are so many

benefits to doing something. 


I have a small YouTube channel making videos on a variety of games. Come and have look here:
 
https://www.youtube.com/c/NeonsStyleHD

 

 

 


#13 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 596 posts

Posted 16 June 2017 - 01:21 PM

That really depends on the case.

 

I'm not far into animation, but AFAIK, doing this properly would require bones, springs and such. It's not like you can jump in, quickly make it, and move to the next task. You'd need to have some background in animation for games, understand the workflow etc. If you do, and it's just something you can get to by extrapolating what you know and doing some research, then sure. But if not, then no, it's not worth the effort. Not yet. And if this is completely unknown territory to you, making someone do it won't help you much, as skipping your 101 in any discipline never truly does. I don't know how Biker's animation knowledge holds up, so it's really only up to him to decide.



#14 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5151 posts

Posted 16 June 2017 - 05:22 PM


I'm not far into animation, but AFAIK, doing this properly would require bones, springs and such. It's not like you can jump in, quickly make it, and move to the next task.

Nope. There is no animation required. Took me 15 minutes to get it to work.


  • Judith and HMart like this
FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#15 HMart

HMart

    Advanced Member

  • Member
  • PipPipPip
  • 539 posts

Posted 17 June 2017 - 07:15 AM

Nope. There is no animation required. Took me 15 minutes to get it to work.

 

How? And video or it didn't happen. ;P   :)


Edited by HMart, 17 June 2017 - 07:16 AM.

  • Judith likes this

#16 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5151 posts

Posted 17 June 2017 - 09:27 AM

*
POPULAR

:)

 

The vertical bars are atdm:mover_door_sliding, the diagonal parts are atdm:mover_door entities. The latter ones are bound to the first ones. They get targeted by the button. It's a very rough approach and only intented as a poc. I'm currently improving the setup (easen it for the mapper to use it), which takes more then 15 minutes :)


  • Bikerdude, Judith, HMart and 4 others like this
FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#17 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 11834 posts

Posted 17 June 2017 - 10:11 AM

Nice work, Obs.


  • Bikerdude likes this

#18 Bikerdude

Bikerdude

    Mod hero

  • Member
  • PipPipPipPipPip
  • 18642 posts

Posted 07 July 2017 - 04:50 PM

We are having issue getting this working, while has another final stab at getting it working I thoguht I pose a question.

 

Is it possible to created and animated version the scissor-gate instead@? I ask because the way we have stm is by creating a custom move entity with a shed load of attachments - and its that amount thats causing Obs issues.



#19 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5151 posts

Posted 07 July 2017 - 05:05 PM

The amount is not the problem ;)


FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#20 grayman

grayman

    Master Builder, Coder

  • Active Developer
  • PipPipPipPipPip
  • 11834 posts

Posted 07 July 2017 - 08:47 PM

It looks like it was working in the video.



#21 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5151 posts

Posted 08 July 2017 - 02:41 AM

It is working. See the betamapper thread for details (my last post there sums it up pretty much).


FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#22 NeonsStyle

NeonsStyle

    Advanced Member

  • Member
  • PipPipPip
  • 1249 posts

Posted 08 July 2017 - 10:57 AM

Just needs a good sound to match it. 


I have a small YouTube channel making videos on a variety of games. Come and have look here:
 
https://www.youtube.com/c/NeonsStyleHD

 

 

 




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users