POV-Ray : Newsgroups : povray.binaries.images : Triplanar Mapping : Re: Triplanar Mapping Server Time
20 May 2024 13:16:56 EDT (-0400)
  Re: Triplanar Mapping  
From: Bald Eagle
Date: 16 Jan 2024 11:55:00
Message: <web.65a6b42b93092b991f9dae3025979125@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:

> 3) so it appears (to me) that the texture does not follow the object
> rotation. Why this is is a mystery to me and it is the first time I
> witness such behaviour indeed.

I think it might be more of an issue of how the image_map is oriented with
regard to the slope, (+90 vs -90 deg).

I also don't think I have a complete pattern definition, since I was unsatisfied
with how the slope controlled 100% pigment when perfectly aligned with an axis
vs rgbt 1 when perpendicular to it.

I would suggest looking at the method of creating a normal map by user "NPC"
used in this thread:
https://news.povray.org/povray.binaries.images/thread/%3Cweb.5d978f0b44e99bc84eec112d0%40news.povray.org%3E/

The key being:
sine_wave frequency 0.5 phase -0.25

which, indeed, when I add that frequency and phase correction in my WaveType
macro, seems to get rid of what you might be seeing.
(left: pigment applied before -90*y rotation, right: pigment applied after -90*y
rotation)

Try and experiment.

Still needs improving, in my opinion - sumthin' still ain't right.

- BW


Post a reply to this message


Attachments:
Download 'tpmapping.png' (346 KB)

Preview of image 'tpmapping.png'
tpmapping.png


 

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