POV-Ray : Newsgroups : povray.general : RGB color Index : Re: RGB color Index Server Time
31 Jul 2024 14:23:16 EDT (-0400)
  Re: RGB color Index  
From: Grassblade
Date: 19 Jan 2007 11:50:00
Message: <web.45b0f5fc89205d6dd58739470@news.povray.org>
"sitha" <nsi### [at] excitecom> wrote:
> Hi Everybody,
> I am using POV for visualize my finite element analysis results of
> buildings. I use RGB color to represent the displacement of buildings. Now
> I need to put a color index which corresponds to the dispalcement. But I
> dont know how to make a color index in POV. Please somebody help me as soon
> as possible early because next week I have a presentation.
> Thanks a lot in advance.
>
> Regards,
> Sitha.
I know nothing about FEA other than what I just read on Wikipedia, but if I
understand your problem correctly, here is what I would do:
1) pick a reference colour, if you have displacement in all three axes pick
a neutral gray,, if you have displacement in only two axes set an arbitrary
colour, like rgb <1,0.5,0.5>
2) determine the maximum absolute displacement along all axes, and, no, I
don't know how to do that, but I'm sure somebody does.
3) Divide the displacement for each node along each axis by twice the max
displacement you found before. Now you've got a number between -0.5 and
0.5. Add this to the correct colour channel of the reference colour at
point 1. If you have only two directions modify the procedure accordingly.

With this method, nodes that are diplaced a lot in 2 negative directions are
undistinguishable from nodes displaced  a lot in 3 negative directions. I
can't think of a way around it, unfortunately.


Post a reply to this message

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