POV-Ray : Newsgroups : povray.newusers : Convert a solid to something pov-ray can read : Re: Convert a solid to something pov-ray can read Server Time
19 Apr 2024 15:22:30 EDT (-0400)
  Re: Convert a solid to something pov-ray can read  
From: Thomas de Groot
Date: 20 Sep 2016 02:52:39
Message: <57e0dcb7$1@news.povray.org>
On 19-9-2016 19:09, SecondCup wrote:
> scott <sco### [at] scottcom> wrote:
>> On 16/09/2016 01:33, SecondCup wrote:
>>> Hi All,
>>>
>>> I'm trying to render a scene in pov ray of a real life mineral ore body. The ore
>>> body has been made and is a complicated wireframe modeled in a mining software
>>> in .dxf format. What is the best way to convert this to something pov-ray can
>>> read, where I can then use the program to adjust the textures, colors and the
>>> usual stuff once its placed where I want it.
>>>
>>> Ive downloaded 'PoseRay' by FlyerX and had played with this for a while but I'm
>>> wondering if there is something that can make it a little easier to import.
>>>
>>> It doesn't have to be .dxf, if someone knows and easier format that pov-ray
>>> likes while retaining its detail, I'm willing to try this too.
>>>
>>> Apologies for the repeat question, but I've tried multiple links provided on the
>>> 'resources: Conversion utilities' page and many appear to be not in use anymore.
>>
>> If your mining software can export a mesh-based format like .obj, .stl,
>> .slp, .vrml then there's software to convert to POV format.
>
>
> Thanks Scott.
>
> I'm not sure how familiar you are with PoseRay but it renders the wireframe
> (whether a .dxf or .obj) as a kind of a snapshot of the solid as it is on the
> screen at the time of rendering. Then when you run the .pov, it produces a black
> and white shaded image of the solid and exports it as a .png too. When run in
> pov-ray, its a badly pixelated shaded surface
>
> In summary, its not producing the wireframe as a true solid the way it is when
> viewed as a .dxf or .obj in other software. I'm probably not explaining my self
> very well, but I can provide all the files if you want
>

If I understand you correctly (I may be wrong) I think that what you 
need to do is 'export' your .dxf or .obj to POV-Ray using Poseray. This 
generates a couple of files (MyObject_POV_geom.inc and 
MyObject_POV_mat.inc) containing a mesh2{} file that describes the 
original geometry and textures, and which you can then render in POV-Ray 
as an object{}. You may probably need to edit the material file.

-- 
Thomas


Post a reply to this message

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