POV-Ray : Newsgroups : povray.general : Applying finish to mesh2 Server Time
16 Nov 2024 09:21:54 EST (-0500)
  Applying finish to mesh2 (Message 1 to 6 of 6)  
From: Eamon Caddigan
Subject: Applying finish to mesh2
Date: 20 Feb 2004 15:03:28
Message: <slrnc3cq0g.d0o.ecaddiga@cardiff.ks.uiuc.edu>
Hi all,

I'm pretty new to POV, so please forgive me if it's an easy question.
I'm asking this only after searching both this news group and the web.

I have a mesh2 object and I'm already using different textures
(pigments, mostly) at the verticies. Now I'd like to apply a new texture
(a finish) to the entire mesh object, but can't figure out how to do it. 

I'd rather not include the same finish in the texture block for each
vertex, as this file is already pretty large (>200 MB). 

Thanks,
Eamon


Post a reply to this message

From: ABX
Subject: Re: Applying finish to mesh2
Date: 20 Feb 2004 15:10:46
Message: <rcqc30heeinthvp6nc4mtvpta20rj2so6l@4ax.com>
On 20 Feb 2004 15:03:28 -0500, Eamon Caddigan <eca### [at] uiucedu> wrote:
> Now I'd like to apply a new texture
> (a finish) to the entire mesh object, but can't figure out how to do it. 

I think chapter "6.2.4 The #default Directive" is what you are looking for.

ABX


Post a reply to this message

From: Eamon Caddigan
Subject: Re: Applying finish to mesh2
Date: 20 Feb 2004 15:23:35
Message: <slrnc3cr66.d0o.ecaddiga@cardiff.ks.uiuc.edu>
ABX <abx### [at] abxartpl> wrote:
> On 20 Feb 2004 15:03:28 -0500, Eamon Caddigan <eca### [at] uiucedu> wrote:
>> Now I'd like to apply a new texture
>> (a finish) to the entire mesh object, but can't figure out how to do it. 
> 
> I think chapter "6.2.4 The #default Directive" is what you are looking for.

Thanks! This does the trick, but I need to restore the original default
after each mesh2 object if the texture is to affect that object only.

-Eamon


Post a reply to this message

From: Gilles Tran
Subject: Re: Applying finish to mesh2
Date: 20 Feb 2004 15:52:02
Message: <40367372$1@news.povray.org>

news:slr### [at] cardiffksuiucedu...
> I have a mesh2 object and I'm already using different textures
> (pigments, mostly) at the verticies. Now I'd like to apply a new texture
> (a finish) to the entire mesh object, but can't figure out how to do it.
>
> I'd rather not include the same finish in the texture block for each
> vertex, as this file is already pretty large (>200 MB).

There's something I'm not sure I understand... It seems that you have one
texture for each vertex, which seems to defeat the idea of having a compact
format like mesh2 in the first place.
Usually, the textures in a mesh2 object are neatly packed in the
texture_list{} part and all you have to do is to declare them externally
before the mesh is loaded.
#declare T1=..
#declare T2=..
and then mesh2{... texture_list{4, texture{T1}texure{T2}...} ...}

G.

-- 

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Eamon Caddigan
Subject: Re: Applying finish to mesh2
Date: 20 Feb 2004 19:06:14
Message: <slrnc3d87m.d0o.ecaddiga@cardiff.ks.uiuc.edu>
Gilles Tran <tra### [at] inapginrafr> wrote:

> news:slr### [at] cardiffksuiucedu...
>> I have a mesh2 object and I'm already using different textures
>> (pigments, mostly) at the verticies. Now I'd like to apply a new texture
>> (a finish) to the entire mesh object, but can't figure out how to do it.
>>
>> I'd rather not include the same finish in the texture block for each
>> vertex, as this file is already pretty large (>200 MB).
> 
> There's something I'm not sure I understand... It seems that you have one
> texture for each vertex, which seems to defeat the idea of having a compact
> format like mesh2 in the first place.
> Usually, the textures in a mesh2 object are neatly packed in the
> texture_list{} part and all you have to do is to declare them externally
> before the mesh is loaded.
> #declare T1=..
> #declare T2=..
> and then mesh2{... texture_list{4, texture{T1}texure{T2}...} ...}

I should confess that I'm writing code to export POV scenes from another
program. I plan to specify /only/ the uniqe textures used for the object
in the texture list soon, but for now I'm just trying to get things to
work. 

On a related note, is it possible to create vertex-shaded triangles
outside of mesh objects? smooth_triangle only accepts a single color for
the entire triangle.

-Eamon


Post a reply to this message

From: Ken
Subject: Re: Applying finish to mesh2
Date: 20 Feb 2004 22:06:50
Message: <4036CBDC.DECC302B@pacbell.net>
Eamon Caddigan wrote:
 
> On a related note, is it possible to create vertex-shaded triangles
> outside of mesh objects? smooth_triangle only accepts a single color for
> the entire triangle.

See - http://www.geocities.com/SiliconValley/Lakes/1434/otherincludes.html

-- 
Ken Tyler


Post a reply to this message

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