POV-Ray : Newsgroups : povray.general : ** Visual Basic ** : Re: ** Visual Basic ** Server Time
29 Jul 2024 14:11:59 EDT (-0400)
  Re: ** Visual Basic **  
From: Ronald L  Parker
Date: 9 Apr 1998 10:59:55
Message: <352ce00b.5618428@10.0.2.33>
On Wed, 8 Apr 1998 20:12:49 -0700, "Twyst" <sir### [at] hotmailcom>
wrote:

>
>Doug Williams wrote in message <352C06A4.55D0A994@identitech.com>...
>>Well since this program is free I can't ask for much.  But I would like to
>>add a button
>>to the toolbar and run my own little .dll that would insert text as it
>would
>>appear in any
>>number of fields.
>
>Well, the problem with that is the editor in Pov-Ray is a Delphi .DLL.
>Unfortunately, it appears that only this DLL has "permission" to write to
>the editor.. As i saw earlier ( in the gui.extentions group) It's not
>possible to do this. Am I wrong? Did I misread this?

As the one who wrote the message you're referring to, I guess I have
to respond.  You are exactly right; only the DLL has the ability to
write to an editor window.  My philosophy is to wait and see what
happens with POV 3.1, and if that's still the case, someone should
write a replacement editor DLL in C with the same functionality as the
existing one, but with the ability to insert text as well.  If no one
else jumps up, I'll probably take that on myself, because I think
being able to drop in modular object-design components would be a big
win.  Imagine if CTDS or Torpatch were "built in" like this.

In addition to this, I'd like to see a way for a "plugin" to intercept
the code that's about to be rendered, translate parts of it on the
fly, and pass that code to the rendering engine.  This way, you could
have a plugin that does, for example, L-systems, and be able to just
write your tree or whatever in LParser language right in the .POV file
and have it translated into cylinders, cones, and what-have-you "just
in time."  Ditto Torpatch or CTDS, actually.  The thing is, most of
the plugins that allow you to design things using graphical tools
would benefit from being able to insert their code using a notation
that they can parse, so that it can be edited later.  This could also
be accomplished with comments, as in MS Visual C++ ClassWizard, but
then you couldn't "tweak" the generated code.


Post a reply to this message

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