POV-Ray : Newsgroups : povray.newusers : Import scene file problem : Re: Import scene file problem Server Time
29 Jul 2024 04:28:56 EDT (-0400)
  Re: Import scene file problem  
From: Stephen
Date: 5 Sep 2006 08:50:00
Message: <web.44fd71fee68f8ae1f1cb1e660@news.povray.org>
"pierre" <pie### [at] efpginpgfr> wrote:
> Hi everybody,
>
> I am a rookie in programation and especially in povray.
> I have converted 3D surface from matlab in .pov using poseray.
>
> I obtained several files:
> test_POV_main
> test_POV_mat
> test_POV_geom
>
> Then , I wanted to insert this surface into a specifcal environement. I've
> defined the camera, the texture, the source...
>
> But, how do I open those files created with poseray?
> I used #fopen and #read but It doesn't work, the software doesn't recognised
> my surface and asked for an Object.
>

 Pierre


test_POV_main should have a line in it something like;


extension, what OS are you using?)

you could add your environment to test_POV_main. Or simpler still add

Things to note; Make sure that the path that your Test_Pov_* files are in
the Pov-Ray Library (search) path. This can be found in povray.ini. Make
sure that all the Test_Pov_* files are included using #include. Either in
your file or in test_POV_main.
One other thing as well as including the files you must call the object.






object{ Name_of_Object_in_ test_POV_ main }


Stephen

P.S. I just read your post again and you mentioned Poseray. If you get a
preview in Poseray then the material and geometry files will be included in

P.P.S. The #fopen and #read commands are for internal use. They are often
used to read variables and data that you want to store between frames of an
animation.


Post a reply to this message

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