1. Importing Morfit 3D Engine to Euphoria

------=_NextPart_000_0040_01BF4A23.72F2F8A0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

My problem reads:
(
Importing the Morfit 3D Engine:
----------------------------------------
=20
Any compiler that support Win32 can quickly import the Morfit 3D Engine.
The engine was already imported to Visual Basic, Visual C++ , Delphi, =
Borland C and Borland Builder.
=20
Importing the Engine is quite fast.Here is the process:
=20
1) Create a lib from the Morfit.dll. Usually every compiler comes with a =
utility
that can take a DLL and create a lib from it.
=20
2) Write a small program that takes the engine heather file and
output it in the appropriate format of the compiler.
=20
And thats all !!!
=20
In addition it is recommended to rewrite the Engine SDK samples in the =
target language.
Without samples, the users wont know what to do....)
Can anyone help me with the use of the dll's?  Or should I go about it =
by writing a library in Euphoria for the DLL and then proceed to Step 2?

------=_NextPart_000_0040_01BF4A23.72F2F8A0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3612.1706"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>My problem=20
reads:</FONT></DIV>
<DIV><FONT size=3D2>(</FONT></DIV>
<DIV><FONT size=3D2>Importing the Morfit 3D Engine:</FONT></DIV>
<DIV><FONT =
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Any compiler that support Win32 can quickly import =
the Morfit=20
3D Engine.</FONT></DIV>
<DIV><FONT size=3D2>The engine was already imported to Visual Basic, =
Visual C++ ,=20
Delphi, Borland C and Borland Builder.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Importing the Engine is quite fast.Here is the=20
process:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>1) Create a lib from the Morfit.dll. Usually every =
compiler=20
comes with a utility</FONT></DIV>
<DIV><FONT size=3D2>that can take a DLL and create a lib from =
it.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>2) Write a small program that takes the engine =
heather file=20
and</FONT></DIV>
<DIV><FONT size=3D2>output it in the appropriate format of the=20
compiler.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>And thats all !!!</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>In addition it is recommended to =
rewrite the=20
Engine SDK samples in the target language.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT size=3D2>Without =
samples, the users=20
wont know what to do....)</FONT></DIV>
<DIV><FONT size=3D2>Can anyone help me with the use of the dll's?&nbsp; =
Or should=20
I go about it by writing a library in Euphoria for the DLL and then =
proceed to=20

------=_NextPart_000_0040_01BF4A23.72F2F8A0--

new topic     » topic index » view message » categorize

2. Re: Importing Morfit 3D Engine to Euphoria

> Longlifter wrote:
> Importing the Morfit 3D Engine:
> ----------------------------------------
.
.
.
> Can anyone help me with the use of the dll's?  Or should I go about it
> by writing a library in Euphoria for the DLL and then proceed to Step
> 2?

As I do with Exotica, You should be able to call Morfit's routines
from the DLL itself from Euphoria. That's if Morfit is  writtien in
'C language' . If it's written in C++, then I wouldn't know
how to call the fuctions that expect to use C++ classes.

I'll be glad to take a look at it and "try" to help.
Where's Morfit's URL?

-- Todd Riggins

new topic     » goto parent     » topic index » view message » categorize

3. Re: Importing Morfit 3D Engine to Euphoria

The url is: www.morfit.com

triggins wrote:

> > Longlifter wrote:
> > Importing the Morfit 3D Engine:
> > ----------------------------------------
> .
> .
> .
> > Can anyone help me with the use of the dll's?  Or should I go about it
> > by writing a library in Euphoria for the DLL and then proceed to Step
> > 2?
>
> As I do with Exotica, You should be able to call Morfit's routines
> from the DLL itself from Euphoria. That's if Morfit is  writtien in
> 'C language' . If it's written in C++, then I wouldn't know
> how to call the fuctions that expect to use C++ classes.
>
> I'll be glad to take a look at it and "try" to help.
> Where's Morfit's URL?
>
> -- Todd Riggins

new topic     » goto parent     » topic index » view message » categorize

4. Re: Importing Morfit 3D Engine to Euphoria

--------------31A77B9985C60AEF90589333

Okay, Morfit 3D actually looks pretty cool. Since it does dweal in the
windows realm, David cuny's Win32Lib looked like it would fit the bill.
I downloaded the MS Visual C++ version and tried to get the
LoadWorld API example to work in Euphoria just like it does in 'C'.
Unfortunitly, It seemed like it was going to work but it didn't
display anything and reported it's errors in the error.log that Morfit
generates. A couple of c functions like this:

int  MORFIT_WINAPI Morfit_engine_render(HWND hwnd, DWORD camera);

makes me think that the MORFIT_WINAPI is needed which I can't produce
in Euphoria. MROFIT_WINAPI is defined as this:

#define MORFIT_WINAPI WINAPI

Where WINAPI is the calling convention for the Win32 API in
MS Visual C++.
Are do I even need to worry about that???

Anyway, the attached zip is two files: LoadWorldex.exw and
Morfit_api.ew.
These files need the Morfit.dll in the same folder. I didn't include
it because I didn't want to break any Morfit Legal Rules of distrubuting
if there is any (...so I didn't read the license 100%). Also, You all
probably wouldn't like a big zip file attached to this email.
Also, you need the WORLD directory in the same directory as these
files so the LoadWorldex.exw can load it's 'hello' data, or you can
change the the LoadWorldex.exw to point to that directory to load them.
And it definetly needs the Lastest Win32Lib to run also...

Let's recap on that since I may not explain things well:
- Morfit.dll
- LoadWorldex.exw
- Morfit_api.ew
- Win32Lib.ew
- Morfit's WORLD directory
all in one directory...

Welp, that's my stalled attempt at Morfit 3D because I'm totally
clueless
on how to get it to display the graphics... Any ideas? I might come
back to this little project after the news years( if the world doesn't
come to a Y2K end... ;)

Longlifter, hope this helps you somehow...
 if you can figure this out before me or even someone else...
please let me know... I do at least find this very interesting...
Oh... Morfits URL is www.morfit.com if someone else needs it...

Welp... Crawling back into my EXOTICA hole... laters...

-- Todd Riggins
--------------31A77B9985C60AEF90589333
 name="Morfit_ex.zip"

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu