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 

Object Rotation

 
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 Plugins
View previous topic :: View next topic  
Author Message
zola
Member


Joined: 12 Dec 2004
Posts: 3

PostPosted: Tue Dec 14, 2004 9:49 am    Post subject: Object Rotation Reply with quote

Hi

I'm new to this forum so first a big hello to everybody. I'm looking for a good editorbase for my private gameengine project and think deled looks really promising for my purposes.

one thing that still holds me back is that in the fileformat of DeleD there are no information about orientation in space. Obviously one does not need this information if you only want to save static levels, since all 3D points are stored transformed.

I'd like to write a PlugIn for DeleD that would store the orientation of the primitive types (box, sphere, cylinder, ... along with other infos...) is it possible to get this kind of information form the application?

Regards
Tom
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 Dec 14, 2004 1:43 pm    Post subject: Reply with quote

I am sorry to disappoint you, but no. As far as I know, DeleD doesn't explicitly store the orientation, so that information cannot be made available to plugins (as it isn't there in the first place).

Your options would be:
1. Manually store the orientation in the Tag property of the objects
2. Deduce the orientation from the vertices (hard, if not impossible)

We do have some form of 'instancing' planned for a future date, which will probably be implemented with local position and orientation, but it could take a while before this particular feature gets implemented.

Alas, DeleD is designed to model static levels, and I take it you need the orientation for some kind of moving entities?
Back to top
View user's profile Send private message Visit poster's website
zola
Member


Joined: 12 Dec 2004
Posts: 3

PostPosted: Tue Dec 14, 2004 11:31 pm    Post subject: Reply with quote

Thanks for the fast reply

Paul-Jan wrote:
I am sorry to disappoint you, but no. As far as I know, DeleD doesn't explicitly store the orientation, so that information cannot be made available to plugins (as it isn't there in the first place).

It's a pity, but I already assumed this from what I read in the fileformat description.

Paul-Jan wrote:
Alas, DeleD is designed to model static levels, and I take it you need the orientation for some kind of moving entities?

Yes, I have a lot of physics stuff (oriented forcefields, directional triggers, rubber bands, springs etc.) which I wanted to place in the level using DeleD.

Maybe I could abuse the user tag to set some information, I'll have to think about it.

Cheers

Tom
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


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

PostPosted: Wed Dec 15, 2004 7:35 am    Post subject: Reply with quote

Hope it works out!

If you have any ideas for generic solutions we could implement in DeleD to make things easier in the future, please tell us. Storing primitive Orientation would be one, but as DeleD doesn't use orientation anywhere internally it would be a kinda "artificial" add-on.
Back to top
View user's profile Send private message Visit poster's website
Il Buzzo
DeleD PRO user


Joined: 12 Aug 2004
Posts: 271
Location: Italy

PostPosted: Wed Dec 15, 2004 7:00 pm    Post subject: Reply with quote

Hi Zola,
I can suggest you to use DeleD point light just this way (I did it for DeleDToPOVRay converter).
Create a pointlight, where the user tag is the name of particular object (in example "trigger"),
then you create an interpreter (deled plugin) that recognize each pointlight with the user tag "trigger" as a trigger object interpreting position like trigger position and other values as your needeed values (in example constant,linear and quadratic could be interpreted like x,y and z orientation etc...).
It's not that difficult, use just your imagination Very Happy .
Bye
Salvatore
Back to top
View user's profile Send private message Visit poster's website
zola
Member


Joined: 12 Dec 2004
Posts: 3

PostPosted: Mon Dec 20, 2004 7:42 pm    Post subject: Reply with quote

I finally got some time to work on my deled plugin. The idea with the lights sounds good I have to see if I can use some other stuff in a clever way too.

Thanks a lot for your kind suggestions

Tom
Back to top
View user's profile Send private message
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 Plugins 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