Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Map Entities (Why?) #122560
04/09/07 16:59
04/09/07 16:59
Joined: Apr 2007
Posts: 67
suriname0 Offline OP
Junior Member
suriname0  Offline OP
Junior Member

Joined: Apr 2007
Posts: 67
Among other things, I have been trying to grasp the concept of Map Entities. Ok, why? If you could pretty much do the same things with a model, why should you use Map Entities? In Grimber's FPS tutorials, he has us create a pane of glass as a Map Entity. (I have not finished it, by the way.) Why not a model?

When should you use a model, compared to a sprite or map entity?
---
Please help me defeat my seemingly indomitable ignorance...

Re: Map Entities (Why?) [Re: suriname0] #122561
04/09/07 17:02
04/09/07 17:02
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Depends on what your doing. If you were creating structural items [building, door, table] then you should go with maps, otherwise models. depends on the item


xXxGuitar511
- Programmer
Re: Map Entities (Why?) [Re: xXxGuitar511] #122562
04/09/07 17:44
04/09/07 17:44
Joined: Apr 2007
Posts: 67
suriname0 Offline OP
Junior Member
suriname0  Offline OP
Junior Member

Joined: Apr 2007
Posts: 67
But why? Does the engine interact diffrently with models or map entities? If there is collision between 2 models, rather than a model and a map entity, is there a diffrence?


If I am posting, it probably means I am asking a question. Or faking my knowledge by agreeing with somebody else.
Re: Map Entities (Why?) [Re: suriname0] #122563
04/09/07 17:48
04/09/07 17:48
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
Map entities have different behavior in influence of light (they have own lights and only flat dynamic light support) and they allways have polygonbased collision. Besides they can't be scalled or animated as modells can. The disadvantage of modells is, that they are more difficult to be created than map entities. But on the other hand models can be far more detailed than maps.

Re: Map Entities (Why?) [Re: RedPhoenix] #122564
04/09/07 22:48
04/09/07 22:48
Joined: Apr 2007
Posts: 67
suriname0 Offline OP
Junior Member
suriname0  Offline OP
Junior Member

Joined: Apr 2007
Posts: 67
So basicly, I can use a model any time I want to, but they are harder to create. And if I'm understanding correctly, map entities have things like ambient and albedo, whereas models do not.


If I am posting, it probably means I am asking a question. Or faking my knowledge by agreeing with somebody else.
Re: Map Entities (Why?) [Re: suriname0] #122565
04/10/07 02:43
04/10/07 02:43
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Models have everything, but sometimes it's earier to just create a map entity. With map entities, you can simply apply tiled texture, with models, you have to create UV maps and such. Plus map-ents can be lit by static lights (within the map ent)...


xXxGuitar511
- Programmer
Re: Map Entities (Why?) [Re: xXxGuitar511] #122566
04/10/07 07:51
04/10/07 07:51
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
I think the answer is the collision , Map Entities are basically Bsp based blocks that are treated as models , the advantage of using them is you can assign actions to them , while still mainting their accurate collision , which is why they are used for things like elevators and the like. This were implemented before gamestudio had correct polygon collission , no need to really use them if your building your levels out of models with polygon collision for everything. On the other hand , if your using regular blocks for your levels , and you want something like an elevator to carry the character or a door to block a path , then using a map entity is the solution , because you cant assing an action to a block , and models have poor collision. Hope this clears it up a bit for you.

Re: Map Entities (Why?) [Re: Why_Do_I_Die] #122567
04/10/07 19:59
04/10/07 19:59
Joined: Apr 2007
Posts: 67
suriname0 Offline OP
Junior Member
suriname0  Offline OP
Junior Member

Joined: Apr 2007
Posts: 67
OK, that's helpful, thank you. Not that I'm skilled enough to figure out how to make my blocks use polygon collision... But otherwise, I use normal blocks.


If I am posting, it probably means I am asking a question. Or faking my knowledge by agreeing with somebody else.
Re: Map Entities (Why?) [Re: suriname0] #122568
04/10/07 21:39
04/10/07 21:39
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
my.polygon = on;

or set the polygon flag in the properties menu of your model.

Map ent's already use poly collision. Entities need it enabled (as stated above)...


Polygon collision just means collision will be precise. Otherwise collision will just be with an "invisible box" around the model...


xXxGuitar511
- Programmer
Re: Map Entities (Why?) [Re: xXxGuitar511] #122569
04/10/07 23:57
04/10/07 23:57
Joined: Apr 2007
Posts: 67
suriname0 Offline OP
Junior Member
suriname0  Offline OP
Junior Member

Joined: Apr 2007
Posts: 67
Okay, thanks. Don't the relatively new "C_" instructions for scripting use polygon collision? Don't actually need an answer to that, so thank you.


If I am posting, it probably means I am asking a question. Or faking my knowledge by agreeing with somebody else.

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1