POV-Ray : Newsgroups : povray.general : Calling external Math functions from .dll or .so Server Time
2 Aug 2024 12:16:38 EDT (-0400)
  Calling external Math functions from .dll or .so (Message 64 to 73 of 103)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: "Jérôme M. Berger"
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 13:36:34
Message: <4210efb2$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Hormann wrote:
| No, a clothray plugin for POV-Ray 3.1 would have had to be modified for
| 3.5 just like the patch had to.  Same for mechsim.
|
	Uh? I never said that they wouldn't need to be adapted when changing
versions of povray if the plugin interface changed.

| The time spent 'integrating the two together' was exactly zero - except
| maybe a few shared keywords.
|
	So why did it take over 6 month between the time they became
available as independant patches and the time they were both merged
into the "official" megapov?

| So if both patches were implemented with some theoretical plugin system
| (and i don't even want to try to imagine how this would have to look
| like for allowing the mechsim patch in the current form)
	Well, of course they would have had to be written as plugins in the
first place. I'm not saying that they *should* be reimplemented as
plugins if those ever became available but that if they *could* have
been, we would have gained in flexibility.

| they would not
| have been available to be used together a day earlier than they have
| been now.
|
	Sure they would. It would have been possible to use them together
immediately after release by their respective authors. There's nothing
preventing the use of several plugins at the same time!

| To sum it up - your central argument seems to be a plugin system would
| offer the possibilities of patches without maintainance work in a
'write
| once - use forever' manner.  This is not the case.
|
	Not *without* maintenance, but with less maintenance and most of it
done by the people writing the functionnality rather than requiring
the work of an integrator to put everything together.

| And concerning Renderman-like shaders - i already explained that the
| POVMan patch would have not been possible to implement as a plugin.
	No, you have stated that it wouldn't. Since I don't know how POVMan
itself is implemented I can't say how easy (or possible) it would be
to change it into a plugin, but the *functionnality* it provides could
be implemented as a plugin as long as the plugin system supported
texture plugins.

| But
| to have support for Renderman shaders in POV-Ray would of course be
nice
| but this is not a plugin system (shaders are not dynamically linked
| external modules,
	I never said they were. But the interpreter that runs the shaders
could be implemented as a "dynamically linked external module".

		Jerome
- --
******************************
*      Jerome M. Berger      *
* mailto:jbe### [at] ifrancecom *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCEO+wqIYJdJhyixIRAuWhAJsFvjlZsoYsOytE22PcVZbYnMzgIQCfZb12
/Q8AvPX79750aTglx8wNxKM=
=B1iZ
-----END PGP SIGNATURE-----


Post a reply to this message

From: ABX
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 14:43:02
Message: <h1v111pblvitnbqk2865mcna1thcr977vc@4ax.com>
On Mon, 14 Feb 2005 19:14:58 +0100, "Jérôme M. Berger" <jbe### [at] ifrancecom>
wrote:
>ABX wrote:
>| Could you name all those modern raytracers which are written in C++,
>support
>| lodable plugins compiled to machine code, exists in builds for Mac,
>Windows
>| nad *nixes and support all the possible CPU architectures where
>mentioned
>| OS-es are working? Best with similar set of features as in POV-Ray.
>There must
>| be many of them which draw the standard you refer here.
>|
>	Well, Pixie for one: http://www.cs.berkeley.edu/~okan/Pixie/pixie.htm

I don't think that (quoting Pixie sources which you probably refer here) in
simple #if #else:

    #ifdef WIN32
	// Win32 stuff here
	cModule	=	LoadLibrary(name);
    #else
	// Unix stuff here
	cModule =	dlopen(name,RTLD_NOW);

all the platforms are handled. Even in wxWidgets where we wrap C++ around native
APIs (http://www.wxwidgets.org/manuals/2.5.3/wx_wxdynamiclibrary.html), we have
5 different representations of wxDllType and still do not cover all the possible
cases:

  // Note: WXPM/EMX has to be tested first, since we want to use
  // native version, even if configure detected presence of DLOPEN.
  #if defined(__WXPM__) || defined(__EMX__) || defined(__WINDOWS__)
    typedef HMODULE             wxDllType;
  #elif defined(HAVE_DLOPEN)
    #include <dlfcn.h>
    typedef void               *wxDllType;
  #elif defined(HAVE_SHL_LOAD)
    #include <dl.h>
    typedef shl_t               wxDllType;
  #elif defined(__DARWIN__)
    typedef void               *wxDllType;
  #elif defined(__WXMAC__)
    #include <CodeFragments.h>
    typedef CFragConnectionID   wxDllType;
  #else
    #error "Dynamic Loading classes can't be compiled on this platform, sorry."
  #endif

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 16:09:16
Message: <4211137c$1@news.povray.org>
Darren New wrote:
> Altho Tcl does a very nice job (via the "stubs" interface) of avoiding 
> having to recompile extensions when new versions of Tcl come out. And 
> yes, all kinds of Tcl internals are exposed thereby, not just simple 
> one-interface things. Worth looking at, for anyone who is wanting to 
> implement a plug-in interface to anything other than POV-Ray, where such 
> would be impossible and foolish to even consider. ;-)

Oh please, could you stop spreading this nonsense around?  Also that is what 
  was contained in 90% of your posts so far, I have tried to resist replying 
to your Tcl "example" long enough now:  Tcl is at best byte-compiled (like 
Java) and then either interpreted or just-in-time compiled, which has 
exactly nothing to do with shared libraries (aka DLLs) and plug-ins based 
those, which is the topic discussed in this thread.

	Thorsten


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 17:13:35
Message: <4211228f@news.povray.org>
Darren New wrote:
>> what  was contained in 90% of your posts so far, I have tried to 
>> resist replying to your Tcl "example" long enough now:  Tcl is at best 
>> byte-compiled (like Java) and then either interpreted or just-in-time 
>> compiled,
> 
> Correct.  So?

That is *not* the topic of this discussion!  Yet you bring up Tcl over and 
over again.  Yet, as we are not discussing Tcl, you should not be bringing 
up Tcl.

Maybe simpler words will do: Tcl is not the same thing as a plug-in for 
POV-Ray, it cannot be used to write plug-ins for POV-Ray and it also 
provides nothing to implement plug-ins for POV-Ray.  So, while you may love 
Tcl, pointing that out repeatedly is of no use for the topic being discussed.

> Right. That's why I'm talking about the stubs interface to dynamically 
> loaded .DLL compiled code in Tcl. The fact that Tcl's interpreted has 
> nothing to do with the stubs interface or the fact that it loads DLLs 
> that are compiled machine code.

Which is not a plug-in, thus has nothing to do with the topic being 
discussed, and as such, also you have made clear now that your favorite 
language is Tcl, it is of no use to POV-Ray and cannot be used to implement 
POV-Ray plug-ins. As such, mentioning Tcl if of no use for the topic being 
discussed.

> In other words, while you're right that "Tcl is at best byte-compiled", 
> you're also right that that fact has nothing to do with shared libraries 
> and plug-ins based on those.

Exactly, and we are not discussing Tcl here.  As such, that you keep 
claiming Tcl would provide a solution to make shared-libary plug-ins for 
POV-Ray is based no no facts, it is just your imagination.  We are not 
discussing what is possible in your imagination. We already know from past 
discussions it is in conflict with the reality the rest of the world is 
living in.

	Thorsten


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 17:24:56
Message: <42112538@news.povray.org>
Darren New wrote:
> But then I realized, maybe what you meant to be saying by calling 
> something "nonsense" is "it doesn't make sense to me."  In other words, 
> normally when someone calls something "nonsense", they're actually 
> saying "it's so factually incorrect that it's not even internally 
> consistent."

Actually, I am using it as adjective to describe the content of your posts. 
I suppose you could look up the meaning of it on the website you quoted. 
However, I doubt you will understand it.

	Thorsten


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 18:13:07
Message: <Xns95FE222715F0raf256com@203.29.75.35>
tho### [at] trfde news:420e0903$1@news.povray.org

> Because all POV-Ray developers have to spend countless hours to
> explain to some people over and over again rhat plug-ins are
> pointless. 

Yes, only stupid / small companies/programs use them, like OpenGL shaders 
(highlevel C-like syntax or lowlevel assembly), NVidia, 3dSMax plugins, 
bryce plugins, LightWorks shaders, even DirectShow Filters.

Indeed, lets stop adding any interesting new rewolutionary futures, since 
Pov-RAY already left all other renderers far-behind.

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 18:33:47
Message: <4211355b@news.povray.org>
Rafal 'Raf256' Maj wrote:
> Yes, only stupid / small companies/programs use them, like OpenGL shaders 
> (highlevel C-like syntax or lowlevel assembly), NVidia, 3dSMax plugins, 
> bryce plugins, LightWorks shaders, even DirectShow Filters.
> 
> Indeed, lets stop adding any interesting new rewolutionary futures, since 
> Pov-RAY already left all other renderers far-behind.

Other than spreading misinformation or having fun bashing POV-Ray developers 
in our public forum, what is the purpose of your post again?  Contribute 
something or finally learn when to remain silent, please.

	Thorsten


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 18:38:35
Message: <Xns95FE674174D1raf256com@203.29.75.35>
tho### [at] trfde news:4211355b@news.povray.org

> ther than spreading misinformation or having fun bashing POV-Ray
> developers in our public forum, what is the purpose of your post
> again? 

Suggesting new futures. I do not understand why core developer(s) are now 
so un willing for new "cool" stuff. 

1. unportable - but they can be parsed, not compiled, as #macro
2. ... ?

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 18:41:03
Message: <Xns95FE6DEEC2B0raf256com@203.29.75.35>
war### [at] tagpovrayorg news:420de332@news.povray.org

>   You are talking about a more elaborated SDL scripting language
>   (which is 
> exactly what has been planned for pov4), not a plugin engine.
>   In other words, you are in the right track.
> 

Yeay \o/

So, where are discussions bout that new SDL/shading language?

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Calling external Math functions from .dll or .so
Date: 14 Feb 2005 18:42:37
Message: <Xns95FE72317058raf256com@203.29.75.35>
abx### [at] abxartpl news:b2j111hi00tsaasge9sjhf0vqrqbmf9nho@4ax.com

> see images like
> http://news.povray.org/povray.binaries.images/attachment/%3C39e71e97%40
> news.povray.org%3E/escher4.jpg which are completly procedural
> 

_Ofcourse_ I know this. But some sophisticated functiosn that use flow 
control, if's, loops, and so on - are realy hard/uncomfortable to write 
without a language at least simmilar to Pascal (oryginal, like 3.0 - 5.0 
Pascal Compiler) or some basic C.

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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