Subject:
|
Re: renderer.dll
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Sat, 22 Dec 2007 18:36:12 GMT
|
Viewed:
|
3091 times
|
| |
| |
In lugnet.cad, Anders Isaksson wrote:
> Travis Cobbs wrote:
>
> > There's actually another alternative, and that would be to use
> > LDView.exe itself. There's been code in LDView for a long time that
> > is designed to allow an LDView renderer to show up as a child window
> > of another program.
> > The idea is that you would run LDView and use -float <window handle>
> > on the command line, and it would then show up as a child window of
> > the window handle you give.
>
> Windows isn't really made for parenting other processes into another window.
> Many things seem to work, but sooner or later you stumble over something
> that doesn't, and there's no workaround. Also, it is not at all obvious that
> all the users of a render DLL want to show the image in a window - it might
> be used for further processing, sending to the web etc.
>
> But it doesn't have to be a DLL, a separate process and some way of
> communication is enough. AFAIK, LDView can render to a file, right? Does it
> have a command line argument to run 'silent', ie not show up at all? If so,
> everything is already ready.
>
> Of course, if you want to host a 'live' window, the file method becomes too
> slow - what about a shared memory mapped file (I don't really know the
> performance of that)?
>
> And finally, the DLL variant (which I have asked about before, too) - let's
> decide a record structure which is the parameter block (size information,
> render arguments, pointer to the area that should be filled with a bitmap (?
> or DIB, or raw pixel data?), some extra fields for future expansions). Then,
> when the interface is fixed, it just a matter for someone to create the DLL
> :-)
Why should it be so complicate. I think about a DLL that gets only some
informations like:
Filename(to render),LDrawPath, LDConfigPath, BackgroundColor, DefaultColor and
hDC for output.
All other stuff should be done in a black box.
This would allow many people (me too) to write progs to handle with text files
and show the result in a picturebox in the same window.
This should be enough for beginning to evaluate the usage of such a dll.
cu
mikeheide
|
|
Message is in Reply To:
| | Re: renderer.dll
|
| (...) Windows isn't really made for parenting other processes into another window. Many things seem to work, but sooner or later you stumble over something that doesn't, and there's no workaround. Also, it is not at all obvious that all the users of (...) (17 years ago, 22-Dec-07, to lugnet.cad)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|