Frictional Games Forum (read-only)

Full Version: Lever pushing a bookshelf that has books in it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey guys,

I am trying to make a secret door bookshelf that is pushed by a lever. And that has books in it.
I've managed to make the lever push the shelf, but I'm having an issue with the books contained in it.

If I use "book_row" it freezes in the air, since it is a static object. If I use regular "book"s, the shelf looks boring Wink.

I was wondering if there is some way to make the book rows move together with the shelf. Would parenting them to the shelf do this? Or is that something you need to do through scripts?
Cheers!
(01-07-2012, 04:02 AM)LiVam Wrote: [ -> ]Hey guys,

I am trying to make a secret door bookshelf that is pushed by a lever. And that has books in it.
I've managed to make the lever push the shelf, but I'm having an issue with the books contained in it.

If I use "book_row" it freezes in the air, since it is a static object. If I use regular "book"s, the shelf looks boring Wink.

I was wondering if there is some way to make the book rows move together with the shelf. Would parenting them to the shelf do this? Or is that something you need to do through scripts?
Cheers!
I have no idea how to make them move; you could just stack like a 100 books in the bookshelf, that wouldn't be boring : D

(01-07-2012, 04:22 AM)flamez3 Wrote: [ -> ]
(01-07-2012, 04:02 AM)LiVam Wrote: [ -> ]Hey guys,

I am trying to make a secret door bookshelf that is pushed by a lever. And that has books in it.
I've managed to make the lever push the shelf, but I'm having an issue with the books contained in it.

If I use "book_row" it freezes in the air, since it is a static object. If I use regular "book"s, the shelf looks boring Wink.

I was wondering if there is some way to make the book rows move together with the shelf. Would parenting them to the shelf do this? Or is that something you need to do through scripts?
Cheers!
I have no idea how to make them move; you could just stack like a 100 books in the bookshelf, that wouldn't be boring : D

I just think it looks a bit boring having the same books looped over and over. Being able to use the book rows helps the variation. It's not a huge deal, but the method may come in handy for other functions as well Smile


There is also performance to consider. Having tons of objects with physics isn't exactly friendly towards lower-end machines Wink
You could put those bookrows into the shelf entity in model editor. Don't ask me how though...
(01-07-2012, 06:01 AM)Khyrpa Wrote: [ -> ]You could put those bookrows into the shelf entity in model editor. Don't ask me how though...
This would require importing and modeling in a 3D program like Maya or Blender.
(01-07-2012, 06:17 AM)Statyk Wrote: [ -> ]
(01-07-2012, 06:01 AM)Khyrpa Wrote: [ -> ]You could put those bookrows into the shelf entity in model editor. Don't ask me how though...
This would require importing and modeling in a 3D program like Maya or Blender.
Is there a program for converting the .ent files to a usable format for Maya? Smile

You dont take the .ent files, there is .dae (collada) files in the folder where the .ent is

collada files can be taken into Maya

But I think you should be able to put the .dae files into the model editor and combine them all into a new shelf
(01-07-2012, 06:33 AM)LiVam Wrote: [ -> ]Is there a program for converting the .ent files to a usable format for Maya? Smile
You download the OpenCollada plug-in for Maya (any version lower than 2012) and import the .DAE files... .ent files are .daes that hold variables for the game to use. Like making a model a puzzle object, light, monster, etc.
(01-07-2012, 07:01 AM)Khyrpa Wrote: [ -> ]You dont take the .ent files, there is .dae (collada) files in the folder where the .ent is

collada files can be taken into Maya

But I think you should be able to put the .dae files into the model editor and combine them all into a new shelf
From what I remember, you can only have one model in the ModelEditor at a time
(01-07-2012, 07:02 AM)Statyk Wrote: [ -> ]From what I remember, you can only have one model in the ModelEditor at a time
Yep, seems like so.

You can open up a .ent file with notepad and look inside, its mostly just the variables for how that entity behaves and where the .dae etc. are located.
If you are hardcore, you could write .ent file from scratch without model editor.

You could also try to create a new entity out of the bookrows that has physics, but no interaction.
(01-07-2012, 07:48 AM)Khyrpa Wrote: [ -> ]You could also try to create a new entity out of the bookrows that has physics, but no interaction.
Lol they would all fall connected to each other. As though they were glued together. DISPLAY BOOKS
Pages: 1 2