POV-Ray : Newsgroups : povray.programming : Running POV-Ray Through DDE Link : Re: Running POV-Ray Through DDE Link Server Time
19 Apr 2024 05:56:35 EDT (-0400)
  Re: Running POV-Ray Through DDE Link  
From: trp
Date: 29 May 2010 15:10:01
Message: <web.4c0165e33f4c95c6bba08f230@news.povray.org>
"akash" <sky### [at] hotmailcom> wrote:
> I have written a program that is DDE enabled. I'd like to send a command from
> that program to POV-Ray (via DDE) and have POV-Ray load a file, render, and
> create an image output (JPG,BMP,etc.). Is such DDE communication possible using
> POV-Ray? Essentially, I'd like to run POV-Ray as a client from another program,
> without having to launch it manually. Thanks in advance!

This is an old thread, so probably no one really cares any more and Fredrik
already pointed to the right area. But, since I just now read the message, I
thought I would throw out a suggestion or two for anyone in the future.


provides an example of a dynamic linked library that POV-Ray can access as a
GUI-Extension. Use this as a model to create a DLL. You will need to edit the


documentation. Read it carefully.) The program you are creating can also open
this same DLL and establish a DDE communications link.

I use DDE to poke a message into the DLL. The message has the rendering
information and the handle of my display window. You will see that the


the DLL post a windows message to my display window. The window reads the image
from disk and shows it.

It was a little tricky at first. But, it seems to work pretty well now. Good
luck.

TRP
www.imagicproductions.com the home of Alive! for POV-Ray


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.