|
|
"Lagipavi" <lag### [at] gmailcom> wrote:
> Hello everyone,
>
> I am trying to use different bitmap images on each side of a cube, but some
> faces show only shadows. If I rotate the cube the problem changes as well - The
> prior visible face turns shadowed and the shadowed image turns ok. What am I
> doing wrong? Thanks in advance!
Without seeing your specific code, it's hard to say exactly what you're doing
wrong, but perhaps looking over the details of the cubic pattern will help you
out.
3.6.2.1.6 Cubic Pattern
The cubic pattern takes six texture elements and maps each one to each of the
six pyramids centered at each half-axis, effectively mapping each texture
element to each side of a origin-centered cube.
The cubic pattern and the order of texture elements
The first group of elements map to the positive half-axis, in the X, Y and Z
axes respectively. The same order is applied to the last group of elements,
except on the negative half-axis.
The syntax is:
texture {
cubic
TEXTURE_ELEMENT_1
...
TEXTURE_ELEMENT_6
}
also:
http://www.f-lohmueller.de/pov_tut/tex/tex_750e.htm
Post a reply to this message
|
|