 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote:
> A precompiled library alone is useless in C/C++. You need the non-compiled
> public interface to use the library.
That's a problem with C/C++ and their reliance on header files for function
prototypes AFAIK. Besides, even then, with documentation about functions
written in other languages, even in a C/C++ enviroment you can call these:
just write the proper header files by prototyping the functions as
documented.
Say you write a class in JRuby and bytecompile it. You can use that class
from a regular Java problem without worries.
> It must
> be usable from POV-Ray directly, using its native scripting language.
> How are you going to use it without an interface?
I agree povray *must* have its own scripting language. And if it's JITted,
only the better. I was just pointing out that it is possible to interface
with compiled code given a common binary format, documentation and support
from the infrastructure (compilers, linkers, runtime).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Let me give the perfect example of what I mean.
I work at a mortgage company. We internally use a third-party system to
write our mortgage application software. This tool is rife with handy
components to make processing mortgage applications easier.
In the current version of the system, they are using a scripting
language that's built in. But while the mortgage tools are awesome, the
programming language (to borrow from Shakespeare) "bloweth chunks".
So, their next-gen suite, which we are just starting to convert to, is a
set of components that are integrated into Visual Studio. Not just a
DLL, but a whole mortgage processing component suite, all placed right
into the toolbar for dragging and dropping into our software.
The net (bad pun) result: a great tool package that was held back by a
weak script language has been set free. We can now create anything from
ASP.NET and webservices to C#.NET VB.NET, J#, or even console apps. And
it doesn't matter which development language we use, the CLR understands
it all.
If there was a suite of POV components that plugged into Visual Studio
Express (the FREE version), we could let Microsoft's strong languages
enhance POV's incredible rendering engine.
Now, the current POV SDL bloweth not chunks, but I still contend that
opening the architecture so that we CAN access the POV internal
structures would make it a far more powerful tool.
Plus, it should still be possible to keep the existing SDL and use it as
a standalone app, even if they integrate the POV engine into a framework
like .net.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Bryan Valencia <no### [at] way com> wrote:
>> The Rendering engine should accept only strictly formatted bytecode.
>
> Btw, this is a bad idea. It ties the hands of the developers.
> It would make it impossible to change and improve the format of the
> bytecode without breaking existing libraries.
>
> It would work if the bytecode format could be PERFECTLY designed on
> the very first try, and then fixed and engraved in stone. However,
> developers are imperfect humans, so it's not gonna happen.
>
thats just wrong. thats like saying that Microsoft can never improve
Word because Word for DOS version 1 doesn't have that.
Bytecode format can be versioned just like all applications and
languages are today. Like in HTML, they are getting rid of <b> and </b>
and changing to <span style="font-weight:80"> this </span>
--
---
Bryan Valencia
- I'd rather live with false hope than with false despair.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Fa3ien <fab### [at] yourshoes skynet be> wrote:
>> The libraries would be written in C++, like the rest. No need for
>> proprietary or non-free stuff.
>
>> This would allow POV-Ray to be controlled by something else than
>> "official" SDL (in a more open architecture), though the normal user
>> would only see SDL.
>
> How would the average user then use those libraries from the SDL?
>
in this environment, libraries can be written in any .net language
(assuming that Visual Studio is the "framework" being used)
--
---
Bryan Valencia
- I'd rather live with false hope than with false despair.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Christian Froeschlin wrote:
> I was under the impression that the POV-Team sadly objects
> to POV as a library backend and that this is even prohibited
> by the distribution license, so the point seems to be moot.
It's ok, we're just brainstorming.
--
---
Bryan Valencia
- I'd rather live with false hope than with false despair.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia <no### [at] way com> wrote:
> Bytecode format can be versioned just like all applications and
> languages are today. Like in HTML, they are getting rid of <b> and </b>
> and changing to <span style="font-weight:80"> this </span>
Dragging backwards compatibility is a bad thing for improvement.
HTML is a mess exactly because of that.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia <no### [at] way com> wrote:
> in this environment, libraries can be written in any .net language
> (assuming that Visual Studio is the "framework" being used)
Could we *please* stop talking about making Windows-only features.
Pretty please? POV-Ray is not. So just stop, please.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia escribió:
> Warp wrote:
>> Fa3ien <fab### [at] yourshoes skynet be> wrote:
>>> The libraries would be written in C++, like the rest. No need for
>>> proprietary or non-free stuff.
>>
>>> This would allow POV-Ray to be controlled by something else than
>>> "official" SDL (in a more open architecture), though the normal user
>>> would only see SDL.
>>
>> How would the average user then use those libraries from the SDL?
>>
> in this environment, libraries can be written in any .net language
> (assuming that Visual Studio is the "framework" being used)
>
I'll have to put it in this language, sorry: Screw .NET
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Darren New <dne### [at] san rr com> wrote:
>> Rather than have an entire CLR, you could have the program structured to
>> have C libraries (or C++ classes, I suppose), and clearly document how
>> they're used. Then the SDL parser would invoke constructors building the
>> classes, then invoke the "render" method.
>
> That would mean that 1% of the povray community could benefit from that,
The point of doing it that way would primarily be to allow those writing
the SDL to use one of the many languages that already exist to avoid
having to reimplement anything in the SDL except the ray-tracing. Need
formatted input/output? Need to read CSV files? Want to store objects or
libraries in a database, or in google-file-system? Want to send a
message over a socket each time a frame finishes? If you use an existing
language that can interface to C, like Java, Tcl, Python, Lisp, etc etc
etc, you get all that sort of stuff "for free". Of course, munging your
SDL syntax to match the language you pick can be a bit problematic, but
it's not *that* hard to solve, especially if you pick an appropriate
"base" langauge.
Hope that clarifies.
--
Darren New / San Diego, CA, USA (PST)
Remember the good old days, when we
used to complain about cryptography
being export-restricted?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia wrote:
> If there was a suite of POV components that plugged into Visual Studio
> Express (the FREE version), we could let Microsoft's strong languages
> enhance POV's incredible rendering engine.
>
You are forgetting (or ignoring) that VS is Windows only. POV-Ray is
*NOT* limited to Windows only.
-=- Larry -=-
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <web.47055ba7bcc3cc02773c9a3e0@news.povray.org>,
nam### [at] gmail com says...
> Warp <war### [at] tag povray org> wrote:
> > A precompiled library alone is useless in C/C++. You need the non-com
piled
> > public interface to use the library.
>
> That's a problem with C/C++ and their reliance on header files for functi
on
> prototypes AFAIK. Besides, even then, with documentation about functions
> written in other languages, even in a C/C++ enviroment you can call these
:
> just write the proper header files by prototyping the functions as
> documented.
>
> Say you write a class in JRuby and bytecompile it. You can use that clas
s
> from a regular Java problem without worries.
>
> > It must
> > be usable from POV-Ray directly, using its native scripting language.
> > How are you going to use it without an interface?
>
> I agree povray *must* have its own scripting language. And if it's JITte
d,
> only the better. I was just pointing out that it is possible to interfac
e
> with compiled code given a common binary format, documentation and suppor
t
> from the infrastructure (compilers, linkers, runtime).
>
Hmm. If I get what you are saying, then I may agree with you. Make the
POVRay system into a library, which is of a type capable of easily being
integrated into any other language, while "still" keeping an internal
language for the scene. In other words, make similar to what it would be
if you wanted to use IE using COM:
a = createobject("explorer.application")
if typename(a) = "explorer" then
a.load("c:\Mydocs\fred.html")
end if
The language you use to tie the engine into shouldn't care what the
engine was written in, as long as the library is one that can be easily
linked/instanced/whatever. For the current version this is pointless,
since there are issues with having to have it announce its copyrights,
etc. (which I suggested one possible solution to, at least under
windows), but 4.0 is supposed to be a lot nicer about that sort of
thing, allowing it to be more closely integrated.
This however says *nothing* about what the SDL itself should be doing,
nor about how anything, beyond the functions/events supported in that
interface, allow for integration of plugins or any other elements that
are "specific" to the engine, and thus "not" part of the application its
been embedded into.
--
void main () {
If Schrödingers_cat is alive
call functional_code()
else
call crash_windows();
}
<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models,
3D Content, and 3D Software at DAZ3D!</A>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 04 Oct 2007 15:57:22 -0700, Bryan Valencia wrote:
> If there was a suite of POV components that plugged into Visual Studio
> Express (the FREE version), we could let Microsoft's strong languages
> enhance POV's incredible rendering engine.
Let me say this again: This is great if you use windows, but NOT
EVERYONE USES WINDOWS!!!!!
(Sorry, I just get tired of repeating myself here)
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 04 Oct 2007 14:58:54 -0300, Nicolas Alvarez wrote:
> They would have to pay me to get me to install VisualStudio.
They couldn't pay me enough, and I have an MSDN subscription for work.
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia a écrit :
> Warp wrote:
>> Bryan Valencia <no### [at] way com> wrote:
>>> The Rendering engine should accept only strictly formatted bytecode.
>>
>> Btw, this is a bad idea. It ties the hands of the developers.
>> It would make it impossible to change and improve the format of the
>> bytecode without breaking existing libraries.
>>
>> It would work if the bytecode format could be PERFECTLY designed on
>> the very first try, and then fixed and engraved in stone. However,
>> developers are imperfect humans, so it's not gonna happen.
>>
> thats just wrong. thats like saying that Microsoft can never improve
> Word because Word for DOS version 1 doesn't have that.
Word has been improved since version 1 ?
Fabien.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Fa3ien escribió:
>
> Word has been improved since version 1 ?
>
> Fabien.
I don't know if it has been improved, but a few broken features were
fixed, and new broken features were introduced. Percentage of brokenness
is around the same, though.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote in message <47054da9@news.povray.org>:
> Changing radically the scripting language is not going to be well received.
I think you miss a point: if POV-Ray's rendering features are available as
library functions call from some languages or, even better, from several
languages, you can then write in that language whatever parser you want.
Let us say, for the sake of the argument, that these features are accessible
as a Caml module. Then you can write a parser for the SDL, the very current
SDL, in Caml. Maintaining a separate parser like that would be easier than
maintaining a parser built in the core system, provided the language is good
for parsers (and Caml is good for parsers).
Now, a basic user of POV-Ray can write his scene in plain old SDL, the
front-end will automatically call the Caml parser, and the user does not see
any change.
On the other hand, an user that want to do complex programmatic features in
his scene can write them in Caml, and plug the result in his scene.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George wrote in message <4707448b$1@news.povray.org>:
> I think you miss a point: if POV-Ray's rendering features are available as
> library functions call from some languages or, even better, from several
> languages, you can then write in that language whatever parser you want.
Just to have things clear, here is the outline of a plan for this solution.
1. Make the rendering features of POV-Ray into a clean c++ library. That
gives us libpov4.so and pov4.hh.
2. Chose a language that you like and that makes writing parsers and
interpreters easy. Let us say, just to avoid writing "that language"
everywhere, that this is Caml -- if you prefer INTERCAL, replace
everywhere.
3. Write a wrapper library to use libpov4.so from Caml.
4. Write a clean parser and interpreter for the current SDL in Caml.
5. Chose a language that you like and that can easily be fully embedded.
Again, just to have a name, let us say this is Lua.
6. Write a wrapper library to use libpov4 from Lua.
7. Extend the parser-interpreter to allow loading new features from a shared
object and calling them.
8. Build a front-end, linked with libpov4.so, including 3, 4, 6, and 7 (and
making sure that 7 is directly aware of 6).
Now, let us consider the result:
- Current basic users of POV-Ray just call the resulting binary (8) with
their unchanged scenes. The scene is parsed and interpreted by 4 and
rendered by 1.
- Developers of POV-Ray can slowly extend the parser-interpreter to make the
SDL a little bit less clumsy (with "for" loops for example).
- Medium-level users of POV-Ray can learn Lua, and include Lua code from
their SDL scenes.
- Advanced users of POV-Ray can add brand new features as c++ objects.
- Other advances users can write wrappers around libpov4.so for other
languages, and write their scenes with their favorite language. Wrappers
that are good code can be included in the official POV-Ray distribution.
In the long run, I have the hope that someone could write, for example, a
robot in Scheme, some other person could write a space shuttle in Perl, a
third may write a solar system (with accurate orbits) in Fortran, and a
basic user could just use these scene parts from his SDL scene:
#declare Robot = friendly_robot {
left_shoulder 90
right_shoulder 20
...
}
#declare Planets = solar_system { 2007, 10, 06, 09, 56, 00 }
...
(Well, actually, I do not hope exactly that, since I hope that Fortran would
be really dead by then.)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Btw, how do you envision the basic user being able to write shaders in
this system? Note that the basic user wants to use the current SDL, only
enhanced with shaders.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote in message <47076431@news.povray.org>:
> Btw, how do you envision the basic user being able to write shaders in
> this system?
Actually, I do not know exactly what a shader is. Would a basic user be able
to write one, in any system?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George <nicolas$george@salle-s.org> wrote:
> Warp wrote in message <47076431@news.povray.org>:
> > Btw, how do you envision the basic user being able to write shaders in
> > this system?
>
> Actually, I do not know exactly what a shader is.
A user-definable function that accepts some information about a scene,
object, surface or ray and returns information that the renderer then uses
to modify the shading, illumination, any other aspect of the rendered
image.
I suspect though that the shading language under consideration is solely to
replace only what other packages would call surface shaders: these shaders
accept information about a ray and the object it intersects, and return a
final surface colour using some internal process. POV's support for this is
quite focussed on colour, rather than surface properties; almost that you
can have any BDRF so long as it's Lambert.
> Would a basic user be able to write one, in any system?
Yes. Although the actual shader language is usually quite low-level (often
C-like), and therefore not particularly artist-friendly, most applications
provide a specialised visual editor. These days they are usually based on
nodes (plug a texture node into a diffuse shading node to get a texture
mapped diffuse surface, for example). Some systems opt to use layers, but
it ends up being the same. The systems are very powerful indeed, much more
powerful than my textured diffuse example.
I guess the plan in POV is not to ship any such visual support by default,
and make the underlying shader language artist-friendly enough to use. As
far as I know this will be a unique achievement, both in terms of
originality and, as always, difficulty.
Some further reading:
http://www.janwalter.com/
(the shader writing bits show how a few other packages handle this in their
C-like shading language)
http://www.xsi-blog.com/archives/118
(clever use of the visual shading language to speed up ambient occlusion in
XSI/mental ray)
Tom
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Tom York" wrote in message
<web.47079017bcc3cc027d55e4a40@news.povray.org>:
> A user-definable function that accepts some information about a scene,
> object, surface or ray and returns information that the renderer then uses
> to modify the shading, illumination, any other aspect of the rendered
> image.
<snip>
Ok, thanks.
> Yes. Although the actual shader language is usually quite low-level (often
> C-like), and therefore not particularly artist-friendly, most applications
> provide a specialised visual editor. These days they are usually based on
> nodes (plug a texture node into a diffuse shading node to get a texture
> mapped diffuse surface, for example). Some systems opt to use layers, but
> it ends up being the same. The systems are very powerful indeed, much more
> powerful than my textured diffuse example.
I do not think that can be called "writing" a shader. And what you describe
seems to me quite similar to what is possible already with the numerous
pigments of POV-Ray. Isn't it?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George <nicolas$george@salle-s.org> wrote:
> I do not think that can be called "writing" a shader. And what you describe
> seems to me quite similar to what is possible already with the numerous
> pigments of POV-Ray. Isn't it?
A shader should be able to, for example, launch additional rays if
necessary.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote in message <47079ed1@news.povray.org>:
> A shader should be able to, for example, launch additional rays if
> necessary.
Yes, I understood that. And I ask again the question, this time more
precisely:
Is, with any system, a basic non-programmer user, capable of writing a
shader that does more that what is possible with textures and pigments?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George <nicolas$george@salle-s.org> wrote:
> "Tom York" wrote in message
> > Yes. Although the actual shader language is usually quite low-level (often
> > C-like), and therefore not particularly artist-friendly, most applications
> > provide a specialised visual editor. These days they are usually based on
> > nodes (plug a texture node into a diffuse shading node to get a texture
> > mapped diffuse surface, for example). Some systems opt to use layers, but
> > it ends up being the same. The systems are very powerful indeed, much more
> > powerful than my textured diffuse example.
>
> I do not think that can be called "writing" a shader.
Does it matter? As I said, I really doubt POV 4 will include such a visual
editor.
> And what you describe seems to me quite similar to what is possible already
> with the numerous pigments of POV-Ray. Isn't it?
You can look though the archives of this NG to find out. Some of it is not
exactly straightforward. A lot of it is impossible. For an example of the
first, consider a surface whose specularity varies independently of its
roughness. To vary one or the other property requires only a texture_map.
To vary both independently requires two nested levels of texture maps.
That's very clumsy, and hopefully you do not want to vary the diffuse
property as well, or that will be another nesting level working off 8
textures at the lowest level.
For an example of the second, there's plenty of stuff it can't do. Off the
top of my head, apart from launching new rays as Warp suggested (essential
for ambient occlusion), there's ramp/gradient shaders (shaders that can use
the level of illumination to select a colour), using any BDRF apart from
tweaked lambert with tweaked phong specularity, anisotropic highlights. You
can probably find more in the NG archives.
Tom
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George <nicolas$george@salle-s.org> wrote:
> Is, with any system, a basic non-programmer user, capable of writing a
> shader that does more that what is possible with textures and pigments?
Well, I think that's a bit like asking "is a basic non-programmer user
capable of writing a #while loop which creates 100 objects in a row?"
Often some appropriate mathematics knowledge would be necessary to
perform certain things (such as knowing which direction to shoot a
ray towards), but POV-Ray could provide auxiliary functions to help
with this (in the same way as currently if you need to know the distance
between two points you don't actually need to know the mathematical
formula to do that because POV-Ray offers you the vlength() function
which you can use for this exact purpose).
Sure, if you have no experience nor knowledge about the relevant
mathematics related to computer graphics, it will be quite more difficult
to write shaders. However, some basic things shouldn't be too hard to
create. And what a better way of learning some math while asking how
to do something specific.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George a écrit :
> Warp wrote in message <47079ed1@news.povray.org>:
>> A shader should be able to, for example, launch additional rays if
>> necessary.
>
> Yes, I understood that. And I ask again the question, this time more
> precisely:
>
> Is, with any system, a basic non-programmer user, capable of writing a
> shader that does more that what is possible with textures and pigments?
No. Not a "non-programmer". Since a shader consists in taking some
input (point position, normal,...), applying some algorithm, and
returning some final value, it's programming.
However, that's someting a beginner prorammer (someone who already
have the aptitude to create a #macro) should be able to do without
learning C++ first.
IMO, ideally, the shading language should be part, or a subset, of
SDL.
Fabien.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Tom York a écrit :
> Nicolas George <nicolas$george@salle-s.org> wrote:
>> "Tom York" wrote in message
>>> Yes. Although the actual shader language is usually quite low-level (often
>>> C-like), and therefore not particularly artist-friendly, most applications
>>> provide a specialised visual editor. These days they are usually based on
>>> nodes (plug a texture node into a diffuse shading node to get a texture
>>> mapped diffuse surface, for example). Some systems opt to use layers, but
>>> it ends up being the same. The systems are very powerful indeed, much more
>>> powerful than my textured diffuse example.
>> I do not think that can be called "writing" a shader.
>
> Does it matter? As I said, I really doubt POV 4 will include such a visual
> editor.
But if there's a propre shading system, there are chances that someone
someday will write a GUI system like the one described to help designing
shaders.
Fabien.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Fa3ien wrote in message <47087cc2$1@news.povray.org>:
> However, that's someting a beginner prorammer (someone who already
> have the aptitude to create a #macro) should be able to do without
> learning C++ first.
Ok, to you and to Warp.
But in the scheme I have described, he would be able to write such a
function in Lua.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas George <nicolas$george@salle-s.org> wrote:
> But in the scheme I have described, he would be able to write such a
> function in Lua.
IMO using an existing scripting language (which is radically different
from the current SDL), which has not been specifically fine-tuned for use
with POV-Ray, should only be done as a last resort, if it becomes clear
that there's no manpower or resources enough to create a designed-for-pov
scripting language.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Fa3ien <fab### [at] yourshoes skynet be> wrote:
> But if there's a propre shading system, there are chances that someone
> someday will write a GUI system like the one described to help designing
> shaders.
>
> Fabien.
Maybe, depends on the shading language (and on POV4's licensing terms,
although if they do use GPL3 then those will not be an issue). In the
meantime folk'll be stuck writing such things in whatever tertiary language
ends up getting used, under the current plans. I suspect this will annoy
some prospective users of v4, since the one thing that people bother to
mention in the new features of the *renderer* rather than the SDL is more
flexible shading capabilities. If they're inaccessible via the SDL, or at
all inconvenient to use, then many people will think, why bother? Mind you
the suggestions I've seen for the new SDL look so different from the
original SDL that maybe the old user base won't bother with v4 at all.
Tom
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Tom York" <alp### [at] zubenelgenubi 34sp com> wrote in message
news:web.4708ba66bcc3cc027d55e4a40@news.povray.org...
> Fa3ien <fab### [at] yourshoes skynet be> wrote:
>> But if there's a propre shading system, there are chances that someone
>> someday will write a GUI system like the one described to help designing
>> shaders.
>>
>> Fabien.
If they're inaccessible via the SDL, or at
> all inconvenient to use, then many people will think, why bother? Mind you
> the suggestions I've seen for the new SDL look so different from the
> original SDL that maybe the old user base won't bother with v4 at all.
That is exactly what I've been thinking. Yes, whatever 4.0 turns out
to be, I'll give it a go, but if I, (as a PoV layman), can't get to grips
with it, then I'll humbly (and proudly), carry on using 3.5 and mlPoV.
~Steve~
>
> Tom
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Shaders are widely used in game engines. They quicken the process of
shading without the accuracy of actual raytracing.
it's a major component in the ability to render 60fps instead of 1fpd.
It's completely out-of place in POV-Ray because:
1. The math is very mesh-centric
2. There are more photorealistic ways to accomplish the same thing using
radiosity, ambient, and local lighting.
I may be wrong, but how would you mathematically apply a shader to the
surface of say a blob, or an isosurface?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia <no### [at] way com> wrote:
> Shaders are widely used in game engines.
They are used in all kinds of renderers. 3D hardware just happens to
have their own standardized (but somewhat limited) shader languages.
> They quicken the process of
> shading without the accuracy of actual raytracing.
That's not actually the purpose of shaders. The purpose of shaders is
to offer a more flexible and powerful way of creating surface texturing.
In other words, instead of having a fixed set of hard-coded texturing
algorithms, a more flexible shader language is offered for creating new
types of texturing.
As I said, shaders are not used exclusively in 3D hardware. They have
been used for quite a long time in many rendering software.
> it's a major component in the ability to render 60fps instead of 1fpd.
Not really. It's just a major component in getting nice texturing
effects. 3D hardware just happens to support a (somewhat limited) shader
language which you can use to create some nice texturing effects, and
naturally they render it quite fast.
However, the images do not render fast *because* of shaders (as you seem
to imply). They render fast *regardless* of shaders. The shaders simply
provide nice texturing effects.
> It's completely out-of place in POV-Ray because:
> 1. The math is very mesh-centric
Incorrect. Shaders are not necessarily at all related to triangle meshes.
I fact, AFAIK, for example renderman shaders are quite independent of the
rendering model used.
Intersection points, normal vectors, texture colors, etc. are not
dependent on the object type used.
> 2. There are more photorealistic ways to accomplish the same thing using
> radiosity, ambient, and local lighting.
You can't achieve everything with those, which you can achieve with
shaders. Besides, shaders can sometimes "fake" things so that they look
convincing but with the advantage of rendering much faster.
> I may be wrong, but how would you mathematically apply a shader to the
> surface of say a blob, or an isosurface?
Easily. Everything a shader needs is information about the intersection
point, normal vector, texture, etc. Nothing of this is dependent on the
type of object used.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Fa3ien wrote:
>
> (for those who wonders, there's no difference between data and
> functions, in LISP)
Your death would be a tragic thing.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
nemesis wrote:
> But, what really bothers me is that I'm not sure povray artists bother about
> writing their own SDLs just to render a scene. I'd be interested to see the
> opinion of guys like Gilles Tran, Jaime Vives, Jim Charter, Tek and other
> advanced SDL users...
>
I'd be happy to comment but I don't understand the question.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> ... very limited and very slow.
>
> Also, from core developement point of view, it's quite horrible.
> For example, why do you think there's no eval() function in POV-Ray?
> That is, a function which takes a string and evaluates this string
> as if it was SDL (similar to how an #include "file" would do, but
> with a string instead)?
> Answer: Because the parser is a mess, full of kludges, burdened with
> backwards-compatibility. For example, #macros are handy and powerful...
> too powerful for their own good. #macros are one of the major reasons
> why there's no eval() function in POV-Ray.
>
> Adding new features to the parser is a real pain sometimes (I have
> recent personal experience), mainly due to how the SDL works and is
> parsed. For example, being able to insert a #declare almost anywhere
> may feel handy, but is a nightmare to parse properly.
> One thing I recently tried to achieve was string concatenation using
> the + operator (as an alternative to the concat function). In the end
> it seems that this would be really, really difficult to implement in
> the current parser due to how interpreting # commands (which can appear
> almost everywhere) works.
>
Warp, this sort of input helps us all understand the issues better.
Thanks for this insight.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Charter a écrit :
> Fa3ien wrote:
>
>
>>
>> (for those who wonders, there's no difference between data and
>> functions, in LISP)
>
> Your death would be a tragic thing.
??? I don't understand well what you mean...
Fabien.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Fa3ien wrote:
> Jim Charter a écrit :
>> Your death would be a tragic thing.
>
> ??? I don't understand well what you mean...
I assume he means that there would be a bad reaction to that big of a
change in the SDL.
- --
William Tracy
afi### [at] gmail com -- wtr### [at] calpoly edu
You know you've been raytracing too long when you can't visit most Web
sites anymore because you're tired of cleaning the vomit off your keyboard.
-- Taps a.k.a. Tapio Vocadlo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHDPMGcCmTzQ++ZncRArQEAJ4nL/H4RKDd05KrJxQO6ZAVV7tb6wCgo8zi
AAIqNh3LKC/d20NNKrtbEuE=
=pUBB
-----END PGP SIGNATURE-----
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
William Tracy wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Fa3ien wrote:
>
>>Jim Charter a écrit :
>>
>>>Your death would be a tragic thing.
>>
>>??? I don't understand well what you mean...
>
>
> I assume he means that there would be a bad reaction to that big of a
> change in the SDL.
>
that's it
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Talking about Visual Studio Express, I have a burning noobie question. Why
do we need a PV editor?
Wouldn't notepad++ 1368051 byte npp.4.4.bin.zip or eclipse do?
I can do Scheme and Prolog on eclipse via plugins.
What is so special that it cannot be done via other editors?
My personal opinion, I think PV editor is not as good, for example,
1. not able to detect file changes promptly
2. syntax coloring is off for unknown extension
3. copy pane is painful
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
zeroin23 wrote:
> Talking about Visual Studio Express, I have a burning noobie question. Why
> do we need a PV editor?
>
> Wouldn't notepad++ 1368051 byte npp.4.4.bin.zip or eclipse do?
> I can do Scheme and Prolog on eclipse via plugins.
>
> What is so special that it cannot be done via other editors?
>
> My personal opinion, I think PV editor is not as good, for example,
> 1. not able to detect file changes promptly
> 2. syntax coloring is off for unknown extension
> 3. copy pane is painful
>
>
>
>
I dunno, I really like it. If for no other reason than the vertical
highlighting ability. And I like an integrated editor that I don't have
to configure myself. It allows me to think about the things I want to
do with POV, the images I want to make, the techniques I want to explore
without nerding around configuring my editing environment 'till the end
of time.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
zeroin23 wrote:
> Talking about Visual Studio Express, I have a burning noobie question. Why
> do we need a PV editor?
>
We don't NEED it (as in mandatory ) but some people like it and some don't.
Some people like the integration and some don't.
> Wouldn't notepad++ 1368051 byte npp.4.4.bin.zip or eclipse do?
> I can do Scheme and Prolog on eclipse via plugins.
>
Any editor will do. Heck , you could even edit a pov file in edlin (that's
for the very old people here :) )
> What is so special that it cannot be done via other editors?
Apart from the integration? Zip, zilch, nothing.
>
> My personal opinion, I think PV editor is not as good, for example,
> 1. not able to detect file changes promptly
> 2. syntax coloring is off for unknown extension
> 3. copy pane is painful
--
Ger
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Charter <jrc### [at] msn com> wrote:
> zeroin23 wrote:
> > Talking about Visual Studio Express, I have a burning noobie question. Why
> > do we need a PV editor?
> >
> > Wouldn't notepad++ 1368051 byte npp.4.4.bin.zip or eclipse do?
> > I can do Scheme and Prolog on eclipse via plugins.
> >
> > What is so special that it cannot be done via other editors?
> >
> > My personal opinion, I think PV editor is not as good, for example,
> > 1. not able to detect file changes promptly
> > 2. syntax coloring is off for unknown extension
> > 3. copy pane is painful
> >
> >
> >
> >
> I dunno, I really like it. If for no other reason than the vertical
> highlighting ability. And I like an integrated editor that I don't have
> to configure myself. It allows me to think about the things I want to
> do with POV, the images I want to make, the techniques I want to explore
> without nerding around configuring my editing environment 'till the end
> of time.
cool didnt know there is vertical highlighting
http://lifehacker.com/software/text/vertical-text-selection-in-microsoft-word-and-beyond-244483.php?mail2=true
by pressing the alt key, you can do that too in word or notepad++
regarding configuration, someone could for example configure one setup
custom just for POV-Ray in notepad++ and done. notepad++ have key stroke
macro which can be very powerful. auto completion is lacking also.
(i understand the pain of setup up an editor, like trying to change netbean
IDE can be quite a pain)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ger <No.### [at] Thank You> wrote:
> zeroin23 wrote:
>
> > Talking about Visual Studio Express, I have a burning noobie question. Why
> > do we need a PV editor?
> >
> We don't NEED it (as in mandatory ) but some people like it and some don't.
> Some people like the integration and some don't.
>
> > Wouldn't notepad++ 1368051 byte npp.4.4.bin.zip or eclipse do?
> > I can do Scheme and Prolog on eclipse via plugins.
> >
> Any editor will do. Heck , you could even edit a pov file in edlin (that's
> for the very old people here :) )
>
> > What is so special that it cannot be done via other editors?
> Apart from the integration? Zip, zilch, nothing.
>
> >
> > My personal opinion, I think PV editor is not as good, for example,
> > 1. not able to detect file changes promptly
> > 2. syntax coloring is off for unknown extension
> > 3. copy pane is painful
>
> --
> Ger
ic ic.
I am suggesting, instead of maintaining a copy of the editor, why not use
other open source project for it. (adapting or modifying it)
writing an editor to me is an art by itself.
or looking at it at another way, is it possible to allow other application
to hook up with the POV-Ray, writing an interface like to monitor the
updating status of the render, capabilities so that like I can use my
favour editor, but at the same times access to some information in regards
to the render.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
zeroin23 wrote:
>
> My personal opinion, I think PV editor is not as good, for example,
> 1. not able to detect file changes promptly
There is an issue with using CTRL-Z to undo (at least with small numbers
of keystrokes), to the effect that when the number of keystrokes that
were undone equals the number of keystrokes immediately following, the
editor detects the file as "clean" until another key is pressed. I
don't know if this has been fixed in 3.7. To avoid the problem, save
manually after undoing text.
> 2. syntax coloring is off for unknown extension
The first time you save a new file, use "Save As." The POV Team says
that this has been fixed in 3.7.
> 3. copy pane is painful
I find it useful, but I seldom use it--personal preference, I guess. It
could be useful to be able to highlight and copy text directly from the
message pane, but that's a pretty trivial issue for me.
I've been using Visual Studio since version 4. The IDE is nice, but I
have to say that I MUCH prefer the POV editor (especially since meeting
VS 8). But you don't HAVE to use the POV editor--again, it's an issue
of personal preference.
However, people have often asked about running the Windows version of
POV from a command line without opening the editor--is that the real
issue here? I think this would be useful. I've written little VB apps
from time to time to set up things like bicubic patches or whatever,
that would then call POV to render a test scene. In that case, I'd just
as soon not wait for the editor to load, unless I actually want to check
the content of the file I just built.
Just some thoughts...
--Sherry Shaw
--
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}// TenMoons
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Charter nous apporta ses lumieres en ce 2007/10/15 01:25:
> zeroin23 wrote:
>> Talking about Visual Studio Express, I have a burning noobie question.
>> Why
>> do we need a PV editor?
>>
>> Wouldn't notepad++ 1368051 byte npp.4.4.bin.zip or eclipse do?
>> I can do Scheme and Prolog on eclipse via plugins.
>>
>> What is so special that it cannot be done via other editors?
>>
>> My personal opinion, I think PV editor is not as good, for example,
>> 1. not able to detect file changes promptly
>> 2. syntax coloring is off for unknown extension
>> 3. copy pane is painful
>>
>>
>>
>>
> I dunno, I really like it. If for no other reason than the vertical
> highlighting ability. And I like an integrated editor that I don't have
> to configure myself. It allows me to think about the things I want to
> do with POV, the images I want to make, the techniques I want to explore
> without nerding around configuring my editing environment 'till the end
> of time.
Another nice thing with the integrated editor: juse put the cursor on a keyword,
press "F1" and you get the help about that keyword.
--
Alain
-------------------------------------------------
OK, so what's the speed of dark?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I rather like EditPlus - we have adapted it to replace one of our
wretched scripting language editors at work. You can adapt it to use
any help file and you can configure it to syntax highlight based on a
simple list of keywords. We copied and pasted from the help files to
get this list.
we also added in links to windiff and our database dictionary (so
pointing to a field and hitting a hotkey gives us the data definition
for that field.
It seems like we could do the same for POV-Ray.
--
---
Bryan Valencia
- I'd rather live with false hope than with false despair.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Charter <jrc### [at] msn com> wrote:
> nemesis wrote:
>
> > But, what really bothers me is that I'm not sure povray artists bother about
> > writing their own SDLs just to render a scene. I'd be interested to see the
> > opinion of guys like Gilles Tran, Jaime Vives, Jim Charter, Tek and other
> > advanced SDL users...
> >
>
> I'd be happy to comment but I don't understand the question.
neither do I. I got lost in the middle of this long thread... :P
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Just FYI, I never recommended scrapping the SDL or orphaning non-windows
users. All I really wanted was to divorce the editor/parser from the
renderer (not execute the parser/editor).
If that happened the first thing I would do is to make a mesh object
that accepts quads as well as triangles, and has .loadfrom3DS and
.loadfromOBJ methods.
POVMesh myMesh = new POVMESH.loadfrom3DS("Somefile.3DS");
myScene.addObject(myMesh);
--
Bryan Valencia
"I'd rather live with false hope than with false despair."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bryan Valencia <209### [at] gmail calm> wrote:
> POVMesh myMesh = new POVMESH.loadfrom3DS("Somefile.3DS");
Why the obsession with 'new'?
How about:
Object o = import3DS("Somefile.3ds");
More abstract, less confusing syntax. No need for useless 'news'.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |