Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / 3D dll question

Author
Message
PST
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location:
Posted: 25th Apr 2005 06:18
If I were to make a dll that would open some kind of 3d file format, did the dll have to create the 3D object itself, or is anyway to provide info to DBPro about the object?
I hope I have written this in a way that expresses correctly what I want, if someone doesn't understand, please say so and I'll try to explain in another way.
PST
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location:
Posted: 26th Apr 2005 05:23
No one?
At least say something, please...
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 26th Apr 2005 15:18
that a hard question ...
Basically your DLL would need to be a full plug-in so it could
access core functions from within DBPro. I think there are only
a few (maybe 5 users) that could fully answer your Q and back it up.
The best option I can come up with would be to:

1 - pass a pointer to a memblock to your DLL
with a filename ...
call dll 1,"LoadCustomFile",ptrMemblock,"Myfilename"

2 - in the DLL
read the file and internally change the format to
a standard .X format and store that in the memblock

3 - in DBPro
Make Mesh from memblock ....
Make Object From Mesh ....
and so on.

Not exactly a simple process, but you could
also test it out from DBPro without creating a DLL

The reason your DLL needs to access core DBPro functions is
because your object must be added to the global list ...
So, your DLL would need to call the Make Mesh ... function.

That should at least explain why not many responces ...
A simple answer would be "No" or maybe "Beyond the scope of the class" while the real answer is "Not many can answer that one",
at least not without help from Lee.
PST
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location:
Posted: 27th Apr 2005 00:00
Thanks a lot for answering.
I think that clears what I had in mind.
NoteJam
19
Years of Service
User Offline
Joined: 11th Apr 2005
Location:
Posted: 7th May 2005 05:57
There are some books on graphic file formats, 3d files etc., at amazon books.
goto amazon.com and do search on file formats. Or goto exact site I refer to here:

http://www.amazon.com/exec/obidos/search-handle-url/index=stripbooks:relevance-above&field-keywords=file%252520formats&search-type=ss&bq=1&store-name=books/ref=xs_ap_l_xgl14/102-9840533-9675369

Think that will help you parse some 3d files and convert to other 3d formats.

Login to post a reply

Server time is: 2024-11-21 14:03:44
Your offset time is: 2024-11-21 14:03:44