Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Entity data

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition
View previous topic :: View next topic  
Author Message
dantheman
Member


Joined: 24 Jan 2005
Posts: 4

PostPosted: Tue Jan 25, 2005 7:59 pm    Post subject: Entity data Reply with quote

I normally use Cartography shop 4, and am getting annoyed with it due to the lack of import functions. I am starting to like DeleD. Trouble is, I cant seem to find a way of putting 'entity information' into objects.
eg. "classname=DOOR", "status=LOCKED", "key=RED" etc.

Is this something DeleD pro does? and can it be extracted from the B3d in blitz like it can from a cartography shop?
Back to top
View user's profile Send private message
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Tue Jan 25, 2005 8:14 pm    Post subject: Reply with quote

Glad to see you're starting to like DeleD. Smile

Entity information could be put in the Tag property of objects. See the Object Inspector to alter that particular property. Your engine (Blitz, etc) should then be fed with that property and you're done. This could either be done by putting it in the B3D file by using the B3D exporter (don't know if it supports that already) or by writing your own custom DMF loader (which wouldn't be hard as DeleD uses simple, well-defined ASCII files - see the Help).

If you have other ideas on how to put entity information into objects, please do tell us. Smile

P.s don't use ; characters in the Tag property - it screws up the DMF loading routines because DMF's use the ; character as seperator.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dirkk
Member


Joined: 09 Aug 2004
Posts: 238
Location: Germany

PostPosted: Tue Jan 25, 2005 8:18 pm    Post subject: Reply with quote

Jereon (or rather PJ), does the .b3d exporter put the custom tags into the .b3d file?

If not - there is this way (that Gile[s] uses): you could put the custom tags in to the entity names in the .b3d files. This way they can be parsed from the Blitz3D program.
Back to top
View user's profile Send private message Send e-mail
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Tue Jan 25, 2005 8:20 pm    Post subject: Reply with quote

dirkk wrote:
Jereon (or rather PJ), does the .b3d exporter put the custom tags into the .b3d file?

If not - there is this way (that Gile[s] uses): you could put the custom tags in to the entity names in the .b3d files. This way they can be parsed from the Blitz3D program.


Thanks for the suggestion! I don't know if the B3D plugin already supports this (i'm guessing not, it's the first time it's being discussed here) but I'm sure PJ can manage to build it in. Razz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Wed Jan 26, 2005 7:59 am    Post subject: Reply with quote

Nope, the B3D exporter doesn't support it, but I should be able to add it in the near future. Although I think I will make it optional, because replacing (or is it simply 'adding to?') the entity names is a real hack. Or maybe not optional but smart: only replace the entity names if any tags are found in the exported objects, otherwise just keep the names.

Replacing entity names is pretty ok if you want to export things to blitz3d, but what if I want to export my b3d model to a different exporter? Having the entity names replaced with tags would be pretty silly then I think. Then again, loosing the tag data is also pretty silly. Hmmz.

Also, I'd have to check if Blitz supports multiple entities with the same name, but I think I recall it does.

Cool! Very Happy
Back to top
View user's profile Send private message Visit poster's website
DarkSeraph
Member


Joined: 01 Jul 2005
Posts: 14

PostPosted: Fri Jul 01, 2005 8:11 pm    Post subject: Reply with quote

I hate to revive an ungodly old topic, but I'd really like to see something that can export information for an entity, no matter how simple it is. For example the .map format just uses text:
Code:
{
"classname" "info_player_start"
"origin" "256 -192 -192"
}


Something as simple as that would be applicable to every game. The simple ability to create a point, or peice of geometry, specify what classname it has, and then what other variables the class needs. You can then just code your game to read that file, it wouldn't be too hard.

Why this would be ideally available in a map editor is so that we can see where the entities are, instead of just typing in the coordinates, and hoping that they're right.

Let me know if you have any questions, or if this won't work at all Sad
Back to top
View user's profile Send private message
_kohai
Member


Joined: 23 Jun 2005
Posts: 12

PostPosted: Mon Jul 04, 2005 10:48 pm    Post subject: Reply with quote

Regarding entities, why not just use a simple object ( ie. cube ) with spcial decorated name ( ent_1, ent_pstart ... ), then it's just your engine duty to parse/store/use the position/ rotation/... of the object as parameters ....

And you could just texture it with a plain dummy transparent texture to prevent it from being displayed !


Entities is also a pb for me, so adding basic entities support would be a great addition, but for now, that'll be my way of doing things.

Cheers, kohai
Back to top
View user's profile Send private message
BorisTSR
Member


Joined: 27 Jun 2005
Posts: 11

PostPosted: Tue Jul 05, 2005 3:42 am    Post subject: Reply with quote

i think a good idea for implementing it would be an entity list, which can be edited, and picked. it contains a few user params (maybe user set?) and they get placed in the file format, after the lights, you first have the entity list, then you have the actual entities that have been placed, similar to how the materials work (i.e. the declaration then the implementations)

i don't think i explained that very well, if you would like me to clarify a few points i will.
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Tue Jul 05, 2005 7:06 am    Post subject: Reply with quote

Entities are on the todo list (and their storage implementation will probably not differ much from what Boris suggested above), but until that time: if you use your own engine/parser combination just do what _kohai does, that's how most users solve it. We made "user properties" exactly for things like this Smile
Back to top
View user's profile Send private message Visit poster's website
DarkSeraph
Member


Joined: 01 Jul 2005
Posts: 14

PostPosted: Tue Jul 05, 2005 6:12 pm    Post subject: Reply with quote

That will work temporarily, but the problem with your solution _kohai is that it isn't very effecient. The geometry is still rendered, even if it is just a cube, and most engines would still read the cube and give it a collision, even if people can't see it.
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Tue Jul 05, 2005 7:23 pm    Post subject: Reply with quote

If you use your own loading code you would of course simply convert the object to 'whatever you feel like' on load time. You definitely don't want it to end up in the rendering pipeline.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum