POV-Ray : Newsgroups : povray.beta-test : Colored specular highlights feature request : Re: Colored specular highlights feature request Server Time
28 Apr 2024 21:20:57 EDT (-0400)
  Re: Colored specular highlights feature request  
From: Mr
Date: 2 Mar 2013 06:10:01
Message: <web.5131dd075a3186c0ad50321f0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 22.02.2013 09:08, schrieb Mr:
>
> > I tried it, and now I remember what I forgot: I had already tried, and this is
> > why it won't do for me:
> >
> > It is inside the same index of a texture_list. and POV tells me it is "expecting
> > } ...other texture found instead" POV won't accept layered textures inside
> > texture_lists.
> >
> > We use those in Blender exporter to convert several materials per object. The
> > rest of the texture translation code is already quite convoluted to be able to
> > use transparency maps, along with diffuse color map, bump map and specular map
> > using several finishes mixed together.
> >
> > any other workaround?
>
> Yup: #define (or #local) the layered texture outside the texture_list,
> and you should be fine.
>
> It's just a limitation of the syntax (the comma in texture_list is
> optional, so POV-Ray can't tell where a layered texture ends), not of
> the inner workings.

ACtually this workaround will work for me only in the case where my exported
mesh doesn't use Blender "specular texture"; for translating those to POV, I am
using a piment pattern to map over two different finishes, POV won't then layer
textures over a piment pattern, no matter what.

It's been more than two years now since I first tried implementing complete
shader translation from Blender and I have to give up once again, but thanks to
your advice I think I will be able to take it one step further and enable
colored specular highlights when no map influences them.

Thanks


Post a reply to this message

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