View previous topic :: View next topic |
Author |
Message |
zola Member
Joined: 12 Dec 2004 Posts: 3
|
Posted: Tue Dec 14, 2004 9:49 am Post subject: Object Rotation |
|
|
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 |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Dec 14, 2004 1:43 pm Post subject: |
|
|
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 |
|
|
zola Member
Joined: 12 Dec 2004 Posts: 3
|
Posted: Tue Dec 14, 2004 11:31 pm Post subject: |
|
|
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 |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Dec 15, 2004 7:35 am Post subject: |
|
|
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 |
|
|
Il Buzzo DeleD PRO user
Joined: 12 Aug 2004 Posts: 271 Location: Italy
|
Posted: Wed Dec 15, 2004 7:00 pm Post subject: |
|
|
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 .
Bye
Salvatore |
|
Back to top |
|
|
zola Member
Joined: 12 Dec 2004 Posts: 3
|
Posted: Mon Dec 20, 2004 7:42 pm Post subject: |
|
|
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 |
|
|
|