POV-Ray : Newsgroups : povray.newusers : Import scene file problem : Re: Import scene file problem Server Time
29 Jul 2024 04:33:24 EDT (-0400)
  Re: Import scene file problem  
From: Penelope20k
Date: 6 Sep 2006 08:55:38
Message: <44fec54a$1@news.povray.org>
Add this at the begining of you scene

// -----------------------------------------------------------------------
// include files in this order

#include "colors.inc"
#include "skies.inc"
#include "stars.inc"
#include "textures.inc"


#declare _path="c:\\folder1\\folder2\\";                             / / the
path of your POSERAY File
#declare _file_name_without_extend="this_file";            // the name of
your file without the extention

#include concat(_path,_file_name_without_extend,"_POV_mat.inc");
#include concat(_path,_file_name_without_extend,"_POV_geom.inc");


// Then for calling your object you should write

#object { this_file_ /* add a _ at the end of your file name }


// this is the way how poseray work by default ..

// ----------------------------------------------------------------




news:web.44fd676f1c12001dad334ed60@news.povray.org...
> 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.
>
>
> Thanks by advance
> Pierre
>
>


Post a reply to this message

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