POV-Ray : Newsgroups : povray.tools.general : Looking for a interactive viewer Server Time
31 Oct 2024 20:12:24 EDT (-0400)
  Looking for a interactive viewer (Message 26 to 35 of 35)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: lelama
Subject: Re: Looking for a interactive viewer
Date: 22 Sep 2016 17:40:00
Message: <web.57e44f094ca237677a63dc9f0@news.povray.org>
"Mr" <nomail@nomail> wrote:

>
> POV importer is new.  could you share the pov file for some bug fixing attempt?

I have tested several more examples today. Unfortunatly, none of them worked.
Sometimes I see something, but this is very different from the povray render.
Here is one simple example below. A few tubes with bearings.
I see one tube,  but without colors and without bearings.


#include "colors.inc"
#include "metals.inc"
background {Blue}

camera { perspective
location <0.0,-4.0,2.0> right <-1500.0,-0.0,-0.0> up <0.0,800.0,0.0> angle
9.16476547932 sky <0.0,0.0,1.0> look_at <0.0,0.0,0.076> }

light_source {<0.0,-4.0,12.0> color White }




//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.1>,0.0125  material{texture{ pigment {color
Red} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0>}

union {difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0135  material{texture{ pigment {color
Silver} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 ,
0.071>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00015625matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.071>} } difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0215  material{texture{ pigment {color
Green} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 ,
0.071>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00018225matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.071>} }  }

union {difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0135  material{texture{ pigment {color
Silver} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 ,
0.02>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00015625matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.02>} } difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0215  material{texture{ pigment {color
Green} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 ,
0.02>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00018225matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.02>} }  }


//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.06>,0.023  material{texture{ pigment {color
Bronze} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.052 , 0.0 ,
0.03>}


//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.06>,0.023  material{texture{ pigment {color
Bronze} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 ,
0.03>}

union {difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0135  material{texture{ pigment {color
Silver} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 ,
0.08>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00015625matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 , 0.08>} } difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0215  material{texture{ pigment {color
Green} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 ,
0.08>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00018225matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 , 0.08>} }  }


//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.1>,0.0125  material{texture{ pigment {color
Red} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 ,
0.009>}

union {difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0135  material{texture{ pigment {color
Silver} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 ,
0.029>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00015625matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 , 0.029>} } difference {
//Unnamed Object
cylinder{<0.0,0.0,0.0>,<0.0,0.0,0.01>,0.0215  material{texture{ pigment {color
Green} finish{metallic phong 1} }}
 matrix <1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 ,
0.029>}
//Unnamed Object
quadric{<1.0,1.0,0.0>,<0.0,0.0,0.0>,<0.0,0.0,0.0>,-0.00018225matrix <1.0 , 0.0 ,
0.0 , 0.0 , 1.0 , 0.0 , 0.0 , 0.0 , 1.0 , 0.152 , 0.0 , 0.029>} }  }


Post a reply to this message

From: lelama
Subject: Re: Looking for a interactive viewer
Date: 22 Sep 2016 17:55:01
Message: <web.57e452544ca237677a63dc9f0@news.povray.org>
Probably we need to code one. It is probably not too difficult if we want only a
viewer (without modeling).

We could have a simple window with a display of the .png image and a few
buttons, to zoom, rotate around the object...When the user presses one button,
for instance a zoom, a line is added at the end of the .pov file to update the
camera, a command is sent to povray so that the .png file is recomputed,
then the .png would be redisplayed.

With python, for instance written in pygtk, this would work both for Linux and
Windows :-)

Laurent.


Stephen <mca### [at] aolcom> wrote:
> On 9/20/2016 10:13 PM, lelama wrote:
> > Hi,
> > I am looking for an interactive viewer "a la Blender".
> >
> > Something very simple...
>
> 24 posts later. I wish I had just said. No I don't think there is.
> Because I have not heard of any and I am looking for one too, Windoze
> though.
>
>
>
> --
>
> Regards
>      Stephen


Post a reply to this message

From: Stephen
Subject: Re: Looking for a interactive viewer
Date: 25 Sep 2016 07:34:52
Message: <57e7b65c@news.povray.org>
On 9/22/2016 10:51 PM, lelama wrote:
> Probably we need to code one. It is probably not too difficult if we want only a
> viewer (without modeling).
>
> We could have a simple window with a display of the .png image and a few
> buttons, to zoom, rotate around the object...When the user presses one button,
> for instance a zoom, a line is added at the end of the .pov file to update the
> camera, a command is sent to povray so that the .png file is recomputed,
> then the .png would be redisplayed.
>
> With python, for instance written in pygtk, this would work both for Linux and
> Windows :-)
>
> Laurent.
>

Good luck with it. If you manage to either find one or manage to code 
one. Let us know. It would be useful.

-- 

Regards
     Stephen


Post a reply to this message

From: lelama
Subject: Re: Looking for a interactive viewer
Date: 26 Sep 2016 08:25:01
Message: <web.57e911c74ca2376721263ef70@news.povray.org>
>
> Good luck with it. If you manage to either find one or manage to code
> one. Let us know. It would be useful.
>
> --


OK. I have played a little bit to see if this is doable and I have a working
"Zoom button". It is not as dynamic as I wanted :  it takes 2 seconds even with
medium quality to change the view.  But this is nevertheless faster than
changing the code, recompiling, redisplaying the image... If I am not
too lazy, I will go on and add a few  other buttons to play with the camera view
 ;-)


Post a reply to this message

From: lelama
Subject: Re: Looking for a interactive viewer
Date: 3 Oct 2016 11:00:01
Message: <web.57f2705b4ca2376721263ef70@news.povray.org>
> Good luck with it. If you manage to either find one or manage to code
> one. Let us know. It would be useful.
>
> --
>
> Regards
>      Stephen


Hi Stephen, this is done. You can now inspect any pov file with a graphical
interface to move the camera around, zoom, turn you head on the right  ...

See the appearance ( not perfect) of graphical interface here:
 http://math.univ-angers.fr/~evain/_images/viewer.png

You can inspect any pov file, even if it is not modelled with pycao. Just adjust
the camera.file variable to the file you want to visit. But you
have to install the pycao modeller to use the viewer.

Laurent.


Post a reply to this message

From: Stephen
Subject: Re: Looking for a interactive viewer
Date: 3 Oct 2016 11:22:52
Message: <57f277cc$1@news.povray.org>
On 10/3/2016 3:54 PM, lelama wrote:
>
>> Good luck with it. If you manage to either find one or manage to code
>> one. Let us know. It would be useful.
>>
>> --
>>
>> Regards
>>       Stephen
>
>
> Hi Stephen, this is done. You can now inspect any pov file with a graphical
> interface to move the camera around, zoom, turn you head on the right  ...
>
> See the appearance ( not perfect) of graphical interface here:
>   http://math.univ-angers.fr/~evain/_images/viewer.png
>
> You can inspect any pov file, even if it is not modelled with pycao. Just adjust
> the camera.file variable to the file you want to visit. But you
> have to install the pycao modeller to use the viewer.
>
> Laurent.

That looks good.
Let me know if you want it Beta tested. ;-)


-- 

Regards
     Stephen


Post a reply to this message

From: lelama
Subject: Re: Looking for a interactive viewer
Date: 4 Oct 2016 08:35:00
Message: <web.57f3a0a94ca2376721263ef70@news.povray.org>
Sure Stephen, I will be happy if you try and test it. Bug reports, but also
comments and proposals for amelioration are welcome.

Just one thing, I have not tested it with windows. If little changes are
required, I am ready to incorporate them so that it works for you on windows.
But you will have to help me on this point ( I have no windows machine neither
at work or at home ).

Laurent.





Stephen <mca### [at] aolcom> wrote:
> On 10/3/2016 3:54 PM, lelama wrote:
> >
> >> Good luck with it. If you manage to either find one or manage to code
> >> one. Let us know. It would be useful.
> >>
> >> --
> >>
> >> Regards
> >>       Stephen
> >
> >
> > Hi Stephen, this is done. You can now inspect any pov file with a graphical
> > interface to move the camera around, zoom, turn you head on the right  ...
> >
> > See the appearance ( not perfect) of graphical interface here:
> >   http://math.univ-angers.fr/~evain/_images/viewer.png
> >
> > You can inspect any pov file, even if it is not modelled with pycao. Just adjust
> > the camera.file variable to the file you want to visit. But you
> > have to install the pycao modeller to use the viewer.
> >
> > Laurent.
>
> That looks good.
> Let me know if you want it Beta tested. ;-)
>
>
> --
>
> Regards
>      Stephen


Post a reply to this message

From: Stephen
Subject: Re: Looking for a interactive viewer
Date: 4 Oct 2016 15:34:21
Message: <57f4043d@news.povray.org>
On 10/4/2016 1:29 PM, lelama wrote:
>
> Sure Stephen, I will be happy if you try and test it. Bug reports, but also
> comments and proposals for amelioration are welcome.
>
> Just one thing, I have not tested it with windows. If little changes are
> required, I am ready to incorporate them so that it works for you on windows.
> But you will have to help me on this point ( I have no windows machine neither
> at work or at home ).
>
> Laurent.
>
>

If you can compile it for Windoze I would be willing and happy to test 
it. I can't help with that but I am good at breaking things. ;)

>
>
>
> Stephen <mca### [at] aolcom> wrote:
>> On 10/3/2016 3:54 PM, lelama wrote:
>>>
>>>> Good luck with it. If you manage to either find one or manage to code
>>>> one. Let us know. It would be useful.
>>>>
>>>> --
>>>>
>>>> Regards
>>>>        Stephen
>>>
>>>
>>> Hi Stephen, this is done. You can now inspect any pov file with a graphical
>>> interface to move the camera around, zoom, turn you head on the right  ...
>>>
>>> See the appearance ( not perfect) of graphical interface here:
>>>    http://math.univ-angers.fr/~evain/_images/viewer.png
>>>
>>> You can inspect any pov file, even if it is not modelled with pycao. Just adjust
>>> the camera.file variable to the file you want to visit. But you
>>> have to install the pycao modeller to use the viewer.
>>>
>>> Laurent.
>>
>> That looks good.
>> Let me know if you want it Beta tested. ;-)
>>
>>
>> --
>>
>> Regards
>>       Stephen
>
>
>
>


-- 

Regards
     Stephen


Post a reply to this message

From: lelama
Subject: Re: Looking for a interactive viewer
Date: 4 Oct 2016 16:10:00
Message: <web.57f40c794ca237677a63dc9f0@news.povray.org>
>
> If you can compile it for Windoze I would be willing and happy to test
> it. I can't help with that but I am good at breaking things. ;)
>

This is Python code, so there is nothing to compile.  The only requirement is to
install the required python modules used, as indicated in the doc.

Python is os independent, so it could work. But maybe I have not been careful
and I called some Linux specific command at some places. This should require
only very minor adjustments I guess. But I admit I have no real experience on


Post a reply to this message

From: Stephen
Subject: Re: Looking for a interactive viewer
Date: 4 Oct 2016 16:51:45
Message: <57f41661$1@news.povray.org>
On 10/4/2016 9:09 PM, lelama wrote:
>
>>
>> If you can compile it for Windoze I would be willing and happy to test
>> it. I can't help with that but I am good at breaking things. ;)
>>
>
> This is Python code, so there is nothing to compile.  The only requirement is to
> install the required python modules used, as indicated in the doc.
>
> Python is os independent, so it could work. But maybe I have not been careful
> and I called some Linux specific command at some places. This should require
> only very minor adjustments I guess. But I admit I have no real experience on
> this problematic and I shouldn't count my chickens before they’re hatched.
>
>

Okay, I use Blender and Poser so there is a good chance I will be able 
to run it on my machine.

-- 

Regards
     Stephen


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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