POV-Ray : Newsgroups : povray.advanced-users : textures, uv_mapping, and global normals : Re: textures, uv_mapping, and global normals Server Time: 24 Oct 2020 03:39:42 GMT
  Re: textures, uv_mapping, and global normals  
From: Alain Martel
Date: 26 Aug 2020 17:36:09
Le 2020-08-25 à 19:26, Bald Eagle a écrit :
> I have a few related and inter-related questions.
> 
> Can I take a regular texture and layer a uv-mapped texture on top of it?
> vice-versa?
> 
> Can I take uv_mapped objects and have a global normal be distributed across
> them?   Right now I'm getting per-object normals as though each object had its
> own origin - it seems the normal gets uv_mapped as well.
> 
> I'm automatically determining textures, so I can't just lump them all into a
> union and layer a clear texture with a normal over it all... because I have
> different normals I want to use.
> 
> 
> 
> 
In a CSG object, whenever a component have any texture of it's own, it 
entirely supersede any texture applied to the union as a whole.

So, if an object is uv_mapped, it does have it's own texture and won't 
get that of the union.

If you want some global normals, you can define a #default texture 
containing that normals definition.

I think that you can redefine that default texture as many times as you 
want without affecting the objects that have already been treated.

This should work :

#default texture{normals{bumps}}
union{...} //This union will have an overall bumps normals except
// for components that have their own normals
#default texture{normals{cells}}
union{...} // This union will have an overall cells normals


Post a reply to this message

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