Product Chat / Complex model collision boxes

Author
Message
Team wolf
7
Years of Service
User Offline
Joined: 26th Dec 2016
Location:
Posted: 8th Jan 2017 02:29
Ok i am trying to import a complex model a building and for performance sake i wanted to have colision boxes but its imposble to allighn the boxes corectly especialy when the view isnt in orthografic mode.how you create yout complex models colision boxes?
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 8th Jan 2017 09:04
I also am having trouble with collision boxes when using the import tool (which I don't often use), very hard to align as you say. Not really sure what the solution is at the moment. Need better view modes, I've tried them all and not much luck. Will keep at it and see what I can do.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder
0Alemar0
17
Years of Service
User Offline
Joined: 25th Jan 2007
Location:
Posted: 8th Jan 2017 13:33
yes this is a problem... maybe just a colision model import when you are at model import room? or Just a free camera to view the object at any side?
www.alemargames.com
Mouaa
User Banned
Posted: 8th Jan 2017 15:11
I agree, we can't rotate the camera when we adjust collision, you can't make precise collisions, this is almost un usable.
MStockton
9
Years of Service
User Offline
Joined: 28th Apr 2015
Location: Texas & Finland
Posted: 8th Jan 2017 15:20
Agreed that it's an issue. I use multiple boxes only when I have to because it's so hard to be precise. Sometimes, none of the options are ideal as they are now so it becomes a game of finding what works best in the moment. It's not an engine feature that I'm obsessed with by any means, but one that definitely needs big improvement when the time is right.
I tried to sign it but all I did was mess up my screen.
PM
Team wolf
7
Years of Service
User Offline
Joined: 26th Dec 2016
Location:
Posted: 8th Jan 2017 15:41
Bored of the Rings how you import your models is there another way?
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 8th Jan 2017 15:46
Split the house model into pieces in the model program, Floor, exterior wall, interior walls, ceiling. Export them from the model program where they are. Make an fpe file for each on. Use box collision on floor, Use colmode=11 for ceiling, use polygon collision for the walls. This will work for what you want.

Place the parts in the editor at the same insert point. Works for me all the time this way and takes less then a minute to assemble in the editor.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Mouaa
User Banned
Posted: 8th Jan 2017 20:46 Edited at: 8th Jan 2017 20:46
Quote: "Split the house model into pieces in the model program, Floor, exterior wall, interior walls, ceiling. Export them from the model program where they are. Make an fpe file for each on. Use box collision on floor, Use colmode=11 for ceiling, use polygon collision for the walls. This will work for what you want."

You are over complicating things when we just need to quickly place some boxes on a house model for collision.
And your way will create more entities instead of having only one, so you ask more draw calls, this is not good for performance until you want to make houses in a modular way.
I know only few GG users use the Entity Editor and import stuff, and GG does not aim to be the nex big game maker, but let's be serious , a fixed camera , this is a really poor implementation. And there is no valid work around to get full camera control and be able to work correctly for collision or model editing.
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 8th Jan 2017 23:07
Then dont do it this way. I have been doing this with classic and Game Guru for years now. Complicated whole geometry is not your friend either.

It is not that difficult to split up the model and there are less collision errors this way.

Sounds like you have no preference for any way that game Guru operates right now. Maybe this is not the engine for you.

Sorry if you find that harsh, but that is my opinion.


Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Mouaa
User Banned
Posted: 9th Jan 2017 08:25 Edited at: 9th Jan 2017 09:03
Quote: "Sounds like you have no preference for any way that game Guru operates right now. Maybe this is not the engine for you."


If GG fits me or not is not your business lol
We talk about game optimisation and drop houses models without needing to split them up in several models, you know Skyrim, Follout 4 exterior maps for example. This is how it works with default buidlings or houses used in GG that are not splitted.
We talk about an entity editor that is a poor implementation made quickly, it could be lot better.
But you are right more i use it, more problems like this i discover , the less i want to keep working with software that has many issues like that.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th Jan 2017 10:14 Edited at: 9th Jan 2017 10:16
Can I ask what your trying to create ?
I mean I created a whole Enterprise Deck in sketchup without any collision problems..
And its got some pretty complex geometry ..

The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 9th Jan 2017 13:27 Edited at: 9th Jan 2017 13:29
@Mouaa: It is my business to give instructions on how to make it work in Game Guru.

If you dont want advice you get from myself and seasoned users of this program on how to make things better and make them work in Game Guru, then there is nothing I can do for you or want to.

Good day sir.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Stab in the Dark software
GameGuru TGC Backer
21
Years of Service
User Offline
Joined: 12th Dec 2002
Location: Upstate New York USA
Posted: 9th Jan 2017 19:04
I think there is some confusion about physics in GG which uses the Bullet Physics engine for physics.
Bullet physics uses a triangle mesh collision shape for static objects which does not slow down physics.
Changing it to a box collision shape will not gain any speed over a triangle mesh.
The primitive collision shapes in Bullet are for dynamic objects. Also the fastest
dynamic collision shape is actually a convex hull as compared to the other primitives
e.g. box, sphere, cylinder, capsule.
The coffee is lovely dark and deep,and I have code to write before I sleep.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 9th Jan 2017 22:02
Hi Stab,

Are you saying that in Bullet a single mesh (say of a one room building) containing 72 polygons is quicker than six boxes (walls, floor, ceiling) when the player is inside the structure? I have not done this test but assumed the box check would be infinitely quicker than drilling down to each of the triangles in the mesh. In the new EBE, I deliberately convert the reduced rectangle volumes into Bullet box shapes for the static collision rather than lump the whole building mesh into a triangle mesh shape on the assumption the box shapes would be faster.
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Stab in the Dark software
GameGuru TGC Backer
21
Years of Service
User Offline
Joined: 12th Dec 2002
Location: Upstate New York USA
Posted: 9th Jan 2017 22:54 Edited at: 9th Jan 2017 23:29
Yes, according to the Bullet documentation and my own tests the bvhStaticTriangleMesh shape is
faster. The bvhStaticTriangleMesh collision shape is designed for static objects only and does not get
a mass calculation like dynamic objects. In my opinion you should be using it for all static objects.
Also according to the Bullet documentation and Erwin Coumans ( author of Bullet ) convex hulls are faster
then the primitives for dynamic objects. I believe that this is where Bullet differs for other physics engines.
Also if you were to use six box collision shapes together for one object it would be best to combine them into a
compound collision shape as this is faster whether it is static or dynamic. You can email me if you need further info.

P.S. You should be reusing collision shapes to conserve memory and save out the collision shapes to file and load
them rather then recreating them each time for faster loading.
The coffee is lovely dark and deep,and I have code to write before I sleep.
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 10th Jan 2017 15:47
Thanks for the offer of help, I am sure there are many areas within my Bullet implementation you would find a little alarming I have added your advice to my task list, as it should not be too difficult to switch my static boxes to a bvhStaticTriangleMesh and measure the performance differences when a lot of buildings are in close proximity.
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 10th Jan 2017 19:59
Quote: " You should be reusing collision shapes to conserve memory and save out the collision shapes to file and load
them rather then recreating them each time for faster loading."

Nice one.
I've readed you can even re-scale existing collision shapes.

Running vehicle demo via vs, looks really nice, plane to give a try next weekend, maybe adding some obstacles to see what happens.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Stab in the Dark software
GameGuru TGC Backer
21
Years of Service
User Offline
Joined: 12th Dec 2002
Location: Upstate New York USA
Posted: 10th Jan 2017 21:58
Quote: "Running vehicle demo via vs, looks really nice, plane to give a try next weekend, maybe adding some obstacles to see what happens."


What are you talking about in this statement?
The coffee is lovely dark and deep,and I have code to write before I sleep.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 11th Jan 2017 15:05
Quote: "What are you talking about in this statement?"




I'm running this demo from visual studio 2015.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM

Login to post a reply

Server time is: 2024-07-03 05:09:04
Your offset time is: 2024-07-03 05:09:04