POV-Ray : Newsgroups : povray.binaries.images : mesh2 Server Time
1 Aug 2024 10:12:43 EDT (-0400)
  mesh2 (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Wijnand Nijs
Subject: mesh2
Date: 2 Jan 2009 08:23:42
Message: <495e155e@news.povray.org>
A test with a mesh2 object for different outside (texture) and inside 
(interior_texture) textures. The test to use the interrior_texture in 
combination with a texture_list fails. Any idee?

Strange is that with the conversion (Poseray): 1. one face has the wrong 
vertex and 2. some normals are disappeared (no rounding). Is there a way 
to correct it manually?

Greetings...
Wijnand


Post a reply to this message


Attachments:
Download 'mesh2_test.jpg' (28 KB)

Preview of image 'mesh2_test.jpg'
mesh2_test.jpg


 

From: Trevor G Quayle
Subject: Re: mesh2
Date: 2 Jan 2009 09:20:00
Message: <web.495e22477707fe40c67b294d0@news.povray.org>
Wijnand Nijs <w.n### [at] alf4alldemonnl> wrote:
> A test with a mesh2 object for different outside (texture) and inside
> (interior_texture) textures. The test to use the interrior_texture in
> combination with a texture_list fails. Any idee?
>
> Strange is that with the conversion (Poseray): 1. one face has the wrong
> vertex and 2. some normals are disappeared (no rounding). Is there a way
> to correct it manually?
>
> Greetings...
> Wijnand

Odd about the vertex change.  You could maybe track it down manually if you
can't fix it otherwise.

As for the normals, if you are refering to the shadow line blockiness, this is
not an error or normals disappearing, it is a known "bug/feature" (actually not
really a bug, but it does bug people...)
See "2.4.8  The shadow line artifact" for an explanation.

-tgq


Post a reply to this message

From: clipka
Subject: Re: mesh2
Date: 2 Jan 2009 09:25:00
Message: <web.495e22c57707fe409fcd4c570@news.povray.org>
Wijnand Nijs <w.n### [at] alf4alldemonnl> wrote:
> Strange is that with the conversion (Poseray): 1. one face has the wrong
> vertex and 2. some normals are disappeared (no rounding). Is there a way
> to correct it manually?

Hum... what way did that mesh travel to get to POV-Ray, in terms of tools & file
format conversions, and how large is it (number of faces & vertices)?

I've seen 3ds exports from different programs do very nasty things to otherwise
perfectly fine meshes if they reached a certain complexity.


Post a reply to this message

From: Chris B
Subject: Re: mesh2
Date: 2 Jan 2009 12:58:49
Message: <495e55d9@news.povray.org>
"Wijnand Nijs" <w.n### [at] alf4alldemonnl> wrote in message 
news:495e155e@news.povray.org...
>A test with a mesh2 object for different outside (texture) and inside
> (interior_texture) textures. The test to use the interrior_texture in
> combination with a texture_list fails. Any idee?

For interior_texture to be used POV-Ray requires a conventional texture 
statement to be added to the mesh2 object. This exterior texture is layered 
over the texture defined within the texture_list, so you can define a 
completely transparent texture and it'll use the texture from the texture 
list for the outside and the texture from the 'interior_texture' object 
modifier for the inside.

Here's a simple testbed so you can play around with it:

camera {location <0,0,-4> look_at 0}
light_source {<-10,20,-10>, rgb 1}

#declare MyMesh = mesh2 {
  vertex_vectors {
    4,
    <-1,0,0>, <0,-1,0>, <1,0,0>, <0,1,0>
  }
  texture_list {
    6,
    texture { pigment {rgb <1,1,0>} },
    texture { pigment {rgb <0,1,1>} },
    texture { pigment {rgb <1,0,1>} },
    texture { pigment {rgb <0,1,0>} },
    texture { pigment {rgb <1,0,0>} },
    texture { pigment {rgb <0,0,1>} }
  }
  face_indices {
    2,
    // vertex and texture_list indices
    <0, 1, 2> ,0 , 1, 2,
    <2, 3, 0> ,3 , 4, 5
  }
 // Add a transparent exterior texture
  texture {pigment {rgbt 1}}
 // Add a semi transparent grey interior texture
  interior_texture {pigment {rgbt 0.5}}
}
// Draw a copy of the front and back side-by-side
object {MyMesh translate -x}
object {MyMesh rotate y*180 translate x}


Post a reply to this message

From: Wijnand Nijs
Subject: Re: mesh2
Date: 2 Jan 2009 17:25:59
Message: <495e9477$1@news.povray.org>
Chris B schreef:
> 
> "Wijnand Nijs" <w.n### [at] alf4alldemonnl> wrote in message 
> news:495e155e@news.povray.org...
>> A test with a mesh2 object for different outside (texture) and inside
>> (interior_texture) textures. The test to use the interrior_texture in
>> combination with a texture_list fails. Any idee?
> 
> For interior_texture to be used POV-Ray requires a conventional texture 
> statement to be added to the mesh2 object. This exterior texture is 
> layered over the texture defined within the texture_list, so you can 
> define a completely transparent texture and it'll use the texture from 
> the texture list for the outside and the texture from the 
> 'interior_texture' object modifier for the inside.
> 
> Here's a simple testbed so you can play around with it:
> 
> camera {location <0,0,-4> look_at 0}
> light_source {<-10,20,-10>, rgb 1}
> 
> #declare MyMesh = mesh2 {
>  vertex_vectors {
>    4,
>    <-1,0,0>, <0,-1,0>, <1,0,0>, <0,1,0>
>  }
>  texture_list {
>    6,
>    texture { pigment {rgb <1,1,0>} },
>    texture { pigment {rgb <0,1,1>} },
>    texture { pigment {rgb <1,0,1>} },
>    texture { pigment {rgb <0,1,0>} },
>    texture { pigment {rgb <1,0,0>} },
>    texture { pigment {rgb <0,0,1>} }
>  }
>  face_indices {
>    2,
>    // vertex and texture_list indices
>    <0, 1, 2> ,0 , 1, 2,
>    <2, 3, 0> ,3 , 4, 5
>  }
> // Add a transparent exterior texture
>  texture {pigment {rgbt 1}}
> // Add a semi transparent grey interior texture
>  interior_texture {pigment {rgbt 0.5}}
> }
> // Draw a copy of the front and back side-by-side
> object {MyMesh translate -x}
> object {MyMesh rotate y*180 translate x}
> 
> 

The testbed explains a lots for me (thanks) but... I don't know if it is 
the way I am play around, but when I declare a texture_list I can do 
with the texture (f.e. leave it transparant) and interior_texture (f.e. 
make it pigment {rgb <0,0,1>}) nothing helps. Or has it somthing to do 
with the version (my version is: 3.6.1.msvc8.win64).


Post a reply to this message

From: FlyerX
Subject: Re: mesh2
Date: 2 Jan 2009 17:38:07
Message: <495e974f$1@news.povray.org>
Wijnand Nijs wrote:
> A test with a mesh2 object for different outside (texture) and inside 
> (interior_texture) textures. The test to use the interrior_texture in 
> combination with a texture_list fails. Any idee?
> 
> Strange is that with the conversion (Poseray): 1. one face has the wrong 
> vertex and 2. some normals are disappeared (no rounding). Is there a way 
> to correct it manually?
> 
> Greetings...
> Wijnand
> 
> ------------------------------------------------------------------------
> 
Seems that the program you used to export the model changed a vertex. 
Some applications have buggy exporters. What program did you use to 
export the model?

You can recalculate the normals or subdivide the model in PoseRay before 
rendering it to improve appearance.

If you believe that the model is right and there is a bug in PoseRay 
please email me the model file to my address listed on PoseRay's status 
bar.

good luck,

FlyerX


Post a reply to this message

From: Wijnand Nijs
Subject: Re: mesh2
Date: 2 Jan 2009 17:40:00
Message: <495e97c0@news.povray.org>
Trevor G Quayle schreef:
> Wijnand Nijs <w.n### [at] alf4alldemonnl> wrote:
>> A test with a mesh2 object for different outside (texture) and inside
>> (interior_texture) textures. The test to use the interrior_texture in
>> combination with a texture_list fails. Any idee?
>>
>> Strange is that with the conversion (Poseray): 1. one face has the wrong
>> vertex and 2. some normals are disappeared (no rounding). Is there a way
>> to correct it manually?
>>
>> Greetings...
>> Wijnand
> 
> Odd about the vertex change.  You could maybe track it down manually if you
> can't fix it otherwise.
> 
> As for the normals, if you are refering to the shadow line blockiness, this is
> not an error or normals disappearing, it is a known "bug/feature" (actually not
> really a bug, but it does bug people...)
> See "2.4.8  The shadow line artifact" for an explanation.
> 
> -tgq
> 
> 

Tanks. The "shadow line artifact" is now clear. I have to wait for a 
next version.


Post a reply to this message

From: Chris B
Subject: Re: mesh2
Date: 2 Jan 2009 19:22:22
Message: <495eafbe@news.povray.org>
----- Original Message ----- 
From: "Wijnand Nijs" <w.n### [at] alf4alldemonnl>
Newsgroups: povray.binaries.images
Sent: Friday, January 02, 2009 10:25 PM
Subject: Re: mesh2


> Chris B schreef:
>> Here's a simple testbed so you can play around with it:
>
> I don't know if it is the way I am play around, but when I declare a 
> texture_list I can do with the texture (f.e. leave it transparant) and 
> interior_texture (f.e. make it pigment {rgb <0,0,1>}) nothing helps. Or 
> has it somthing to do with the version (my version is: 3.6.1.msvc8.win64).

You're right. There seems to be a behavioural different between 3.6 and the
3.7 beta 39.
3.6 seems to ignore the interior_texture and the texture object modifiers if
the texture_list is specified within the body of the mesh2 definition,
whereas 3.7 beta 39 works as I described in my last posting.


Post a reply to this message

From: clipka
Subject: Re: mesh2
Date: 2 Jan 2009 22:15:00
Message: <web.495ed7f67707fe408f3cb1a30@news.povray.org>
Wijnand Nijs <w.n### [at] alf4alldemonnl> wrote:
> The testbed explains a lots for me (thanks) but... I don't know if it is
> the way I am play around, but when I declare a texture_list I can do
> with the texture (f.e. leave it transparant) and interior_texture (f.e.
> make it pigment {rgb <0,0,1>}) nothing helps. Or has it somthing to do
> with the version (my version is: 3.6.1.msvc8.win64).

I guess the thing is quite simple: The generic "texture" and "interior_texture"
are fallback textures that are applied to all triangles that don't have a
texture_list item assigned. So if you do assign a texture_list item, that
texture is applied to both sides, and both "texture" and "interior_texture"
remain without effect to this triangle.

It's a pity there is nothing like a "interior_texture_list", but I guess we have
to live with this limitation for now.

What you could do would be to split up the mesh object by textures before
exporting to POV-Ray, strip each of the resulting objects of the texture_list,
and assign both a texture and interior_texture. Finally combine them via a
union.


Post a reply to this message

From: Wijnand Nijs
Subject: Re: mesh2
Date: 3 Jan 2009 07:59:07
Message: <495f611b$1@news.povray.org>
Chris B schreef:
> ----- Original Message ----- From: "Wijnand Nijs" <w.n### [at] alf4alldemonnl>
> Newsgroups: povray.binaries.images
> Sent: Friday, January 02, 2009 10:25 PM
> Subject: Re: mesh2
> 
> 
>> Chris B schreef:
>>> Here's a simple testbed so you can play around with it:
>>
>> I don't know if it is the way I am play around, but when I declare a 
>> texture_list I can do with the texture (f.e. leave it transparant) and 
>> interior_texture (f.e. make it pigment {rgb <0,0,1>}) nothing helps. 
>> Or has it somthing to do with the version (my version is: 
>> 3.6.1.msvc8.win64).
> 
> You're right. There seems to be a behavioural different between 3.6 and the
> 3.7 beta 39.
> 3.6 seems to ignore the interior_texture and the texture object 
> modifiers if
> the texture_list is specified within the body of the mesh2 definition,
> whereas 3.7 beta 39 works as I described in my last posting.
> 

I thought no problem, download and install 3.7 and it works. But... on 
www.povray.org there is only a 3.7 beta 29 (64 bit) with an expire date 
of the 1st of November 2008. I tried but that one refused to do his job. 
   Where to get the 3.7 beta 39?

Thanks and greetings...
Wijnand


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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