POV-Ray : Newsgroups : povray.newusers : A cube with different bitmap images on each side. : Re: A cube with different bitmap images on each side. Server Time
17 Apr 2024 20:45:35 EDT (-0400)
  Re: A cube with different bitmap images on each side.  
From: architype
Date: 18 Nov 2017 09:00:01
Message: <web.5a103c3214546e2c990be8aa0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 12.11.2017 um 22:35 schrieb Lagipavi:
> > 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!
>
> Maybe have a look at UV mapping.

Hmmm this is interesting. I would have done what dick balaska suggested ie:

"I would build 6 cubes, each with its own image, and then squish and
union the cubes together.

It also sounds like you're applying the texture/image after rotating."

I had no idea that you could do what bald eagle suggested ie:

"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."

Thanks for this tip. ;)


Post a reply to this message

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