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 

Test DXS files wanted

 
Post new topic   Reply to topic    DeleD Community Edition Forum Index -> DeleD Plugins
View previous topic :: View next topic  
Author Message
Spaddlewit
Member


Joined: 24 Aug 2009
Posts: 244
Location: Florida, United States

PostPosted: Mon Jul 04, 2011 6:39 pm    Post subject: Test DXS files wanted Reply with quote

Hi!

I'm working on a plugin/.NET DXS loader and since there isn't any documentation on the DXS file format, I was wondering if anyone had some good 'test' DXS files that use a lot of the features to be sure I'm reading all of the necessary attributes and nodes from the XML.
Back to top
View user's profile Send private message Visit poster's website
Jeroen
Site Admin


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

PostPosted: Mon Jul 04, 2011 7:50 pm    Post subject: Reply with quote

Cool! It's always good to hear about other plugin dev's. What is it you're workin' on exactly? Can you tell us a little more about it?
_________________
Check out Figuro, our online 3D app! More powerful 3D tools for free.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Spaddlewit
Member


Joined: 24 Aug 2009
Posts: 244
Location: Florida, United States

PostPosted: Mon Jul 04, 2011 10:44 pm    Post subject: Reply with quote

Right now it's a C# library that can load a DXS scene into a bunch of objects, manipulating them, then save them back to DXS. The XML reader/writer is abstracted so that you could also load/save a DXS from a memory stream or similar (for plugin use). I've only been working on it for a day and I'm almost finished (at least by the looks of my own DXS files I'm testing with).

Also toying with creating a very basic "DeleD.NET" if you will, rewriting some of the basics into C#.NET and WinForms. I know 'rewrites aren't always good', but I think Delphi is the #1 reason there isn't more open source participation (#2 is awareness). DeleD really is an amazing and underappreciated tool and I would be adding absolute craploads of features to DeleD if it wasn't in Delphi.

What method did you use for picking in DeleD, Jeroen? Reverse projection, or did you draw everything in a slightly different color and glReadPixels() from an offscreen buffer?

Edit: I'm also not sure if I've found a bug in the file format or not... in my test files, it seems that "highestID" for Primitives is one greater than the actual highest ID in the primitives list. Actually, it's the 'highestID' including the ID of the lights. Is that intentional? Then why does <lights> have its own highestID attribute?
Back to top
View user's profile Send private message Visit poster's website
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Wed Jul 06, 2011 7:50 pm    Post subject: Reply with quote

I'm curious how you're going about a C#.NET plugin for DeleD? I'm under the impression that in order to do reverse P/Invoke (I don't think .NET COM interop would apply here?) you're going to need an interop layer using C++/CLI.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Spaddlewit
Member


Joined: 24 Aug 2009
Posts: 244
Location: Florida, United States

PostPosted: Thu Jul 07, 2011 6:11 pm    Post subject: Reply with quote

Yeah, I'd probably use some kind of C++ COM interop layer.
Back to top
View user's profile Send private message Visit poster's website
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Fri Jul 22, 2011 11:45 am    Post subject: Reply with quote

I remembered hearing about there being another way to do this, by modifying the IL directly, but who really wants to do that?

Well, I just found someone apparently wrote a nifty little MSBuild task that will allow you to create Dll exports, doing just that and doing it automatically:

http://sites.google.com/site/robertgiesecke/Home/uploads/csharpprojecttemplateforunmanagedexports

Was made aware of it via this gamedev article describing how to write C# plugins for UDK:

http://www.gamedev.net/blog/785/entry-2250398-using-c-managed-dlls-in-udk-or-exposing-managed-dlls-in-an-unmanaged-application/
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    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