POV-Ray : Newsgroups : povray.advanced-users : Vertex colors rendering : Re: Vertex colors rendering Server Time
2 Oct 2025 22:40:55 EDT (-0400)
  Re: Vertex colors rendering  
From: Bald Eagle
Date: 29 Sep 2025 21:40:00
Message: <web.68db340187a1b5a91f9dae3025979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> yesbird wrote:
> > Working on file converter, I am importing vertex colors from FBX,
> > but cant figure out why POV-Ray rendering is so much different from
> > ZBrush. Maybe there is a way to control color distribution and
> > smoothness ?
> >
> > Please find images and scene in attachment.
> > --
> > YB
>
> You might not want to color by vertex.
> Maybe color the entire cube with a gradient and use blend_mode.
>
> https://wiki.povray.org/content/Reference:Pigment_Map
>
> That's all I have - for the moment.
>
> - BW

#version 3.8;

global_settings {assumed_gamma 1.0}

#include "functions.inc"

camera {
 location <0, 0, -20>
 look_at <0, 0, 0>
 right x*image_width/image_height
 up y
 sky y
}

sky_sphere {pigment {rgb 1}}

light_source {<0, 50, -50> rgb 1}


box {-5, 5
 pigment {
  gradient x
  pigment_map {
   blend_mode 0 // or 3
   [0, rgb y]
   [0.5, rgb 1]
   [1, rgb z]
  }
  scale sqrt (200)
  translate x*sqrt (200)/2
  rotate z*45
 }
}


Post a reply to this message


Attachments:
Download 'yesbirdcolorcube.png' (29 KB)

Preview of image 'yesbirdcolorcube.png'
yesbirdcolorcube.png


 

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