Better Curtains? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Better Curtains? (/thread-24682.html) |
Better Curtains? - Deadon - 02-23-2014 Hey, can someone tell me how or help me put joints on the curtains to make them slide back and forth(open and close) and make the curtains move (grab-able) Thanks RE: Better Curtains? - Romulator - 02-23-2014 Its not possible as far as I know when aiming to look realistic, but you can use the SetEntityActive() line of code and enable/disable the appropriate curtain pieces, depending on which ones you want. In your level editor, you would need to put the curtain you would like to see first enabled, and disable the other, but keep it there to look realistic. Then you can trigger an event to make them open at some point, by enabling the disabled one and vice versa. RE: Better Curtains? - Deadon - 02-23-2014 (02-23-2014, 01:44 AM)Romulator Wrote: Its not possible as far as I know when aiming to look realistic, but you can use the SetEntityActive() line of code and enable/disable the appropriate curtain pieces, depending on which ones you want. In your level editor, you would need to put the curtain you would like to see first enabled, and disable the other, but keep it there to look realistic. Then you can trigger an event to make them open at some point, by enabling the disabled one and vice versa. I'm saying using sliders, not just clicking. I know it's possible, just don't know how. RE: Better Curtains? - PutraenusAlivius - 02-23-2014 To be honest it's quite easy for people probably that's more experienced than me, but in my opinion it's kinda easy, but not that hard too. How you would do this is to import the mesh into a modelling program(Blender/Maya/3ds Max) and seperate the curtains with the rods so you would have 3 seperate mesh(Rod, Left Curtain, and Right Curtain). Once you do that, make sure the curtains DOESN'T COLLIDE with the mesh of the Rod, after that export it(With textures and other stuff ofc) and import the new .dae file to the Model Editor. Then, make it a slider type. In my opinion though it'll be easier to just make the three meshes as seperate entities and make them as 1 entity in the Level Editor. RE: Better Curtains? - Mudbill - 02-23-2014 Check out this video. It pretty much does exactly this. I'm sure you can figure out how to do something similar from it. I think this guy actually has a thread somewhere around the forums about his works. Yeah, this one. http://www.youtube.com/watch?v=JwjAH4RJqPM RE: Better Curtains? - Deadon - 02-26-2014 (02-23-2014, 02:30 AM)Mudbill Wrote: Check out this video. It pretty much does exactly this. I'm sure you can figure out how to do something similar from it. I think this guy actually has a thread somewhere around the forums about his works. Yeah, this one. Thanks!!! |