POV-Ray : Newsgroups : povray.general : How to show triangular meshes in object Server Time
17 May 2024 18:42:20 EDT (-0400)
  How to show triangular meshes in object (Message 1 to 5 of 5)  
From: Sadiq
Subject: How to show triangular meshes in object
Date: 21 Mar 2015 13:55:01
Message: <web.550db03962698fad747a285c0@news.povray.org>
Hi,

I'm completely new in raytracing as well as in Pov-Ray. I'm using a mesh file.
I've
created mesh2 format for Pov-ray, but I don't see the triangles when I run the
file.
I know this is a lame question, there must be easy way to do that.

Any type of suggestion on ray-tracing is highly appreciable.

Thanks in advance.


Post a reply to this message

From: Le Forgeron
Subject: Re: How to show triangular meshes in object
Date: 21 Mar 2015 14:35:10
Message: <550db9de$1@news.povray.org>
Le 21/03/2015 18:54, Sadiq a écrit :
> Hi,
> 
> I'm completely new in raytracing as well as in Pov-Ray. I'm using a mesh file.
> I've
> created mesh2 format for Pov-ray, but I don't see the triangles when I run the
> file.
> I know this is a lame question, there must be easy way to do that.
> 
> Any type of suggestion on ray-tracing is highly appreciable.
> 
> Thanks in advance.
> 
> 
> 
Did you succeed to see the triangle from the mesh described in the doc ?


Post a reply to this message

From: Stephen
Subject: Re: How to show triangular meshes in object
Date: 21 Mar 2015 15:22:37
Message: <550dc4fd$1@news.povray.org>
On 21/03/2015 17:54, Sadiq wrote:
> Any type of suggestion on ray-tracing is highly appreciable.

Sorry for asking but...
Do you have a light source and a camera pointing at your mesh?

-- 

Regards
     Stephen


Post a reply to this message

From: Christian Froeschlin
Subject: Re: How to show triangular meshes in object
Date: 23 Mar 2015 08:37:04
Message: <551008f0$1@news.povray.org>
It might be that the scale of the mesh and the scene doesn't match
try adding "scale 100" to the mesh to see if something shows up.


Post a reply to this message

From: Alain
Subject: Re: How to show triangular meshes in object
Date: 23 Mar 2015 19:15:04
Message: <55109e78@news.povray.org>

> Hi,
>
> I'm completely new in raytracing as well as in Pov-Ray. I'm using a mesh file.
> I've
> created mesh2 format for Pov-ray, but I don't see the triangles when I run the
> file.
> I know this is a lame question, there must be easy way to do that.
>
> Any type of suggestion on ray-tracing is highly appreciable.
>
> Thanks in advance.
>
>
>

Is the mesh in the field of view of the camera. If the camera is NOT 
defined, you are using the default camera that is defined as:
camera{location <0,0,0> look_at z up y sky z direction z right x*4/3}

Did you apply any texture to your mesh? If not, it's totaly black, the 
same as the default background colour.

Try adding a light_source.

Maybe the mesh is to small or to large.
If the mesh dimention is very large, try scaling it down: something like 
scale 0.001.
If the mesh is very small, scale it up: something like scale 1000.

You can find the mesh location by using #declare Min = 
min_extent(Mesh_name); and #declare Max =  max_extent(Mesh_name);. You 
get the center as follow:
#declare Center = (Min + Max)/2;
Use center as the look_at point for your camera. That way, you are sure 
that the camera is pointing directly at your mesh.

You can also translate the mesh to place it around the origin:
#declare Centered_Mesh = object{Mesh_name translate -Center}
Then, place the camera some distance away from the origin, still looking 
at the origin.

Hope this help.



Alain


Post a reply to this message

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