 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"yesbird" <nomail@nomail> wrote:
> ...
> Always welcome, please be my guest :). It works stable now, but still too far
> from perfect condition - I am only starting ...
have not yet looked at/run the scene code, but did (quickly) look over the pdf
you mentioned. the latter parts made me realise that there's a new todo list to
be made.. :-) (although a frown would have fitted too ;-))
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"jr" <cre### [at] gmail com> wrote:
Hi, jr
the latter parts made me realise that there's a new todo list to
> be made.. :-) (although a frown would have fitted too ;-))
)))
I understand you - this PDF inspires me to start my package, as volume
visualization always attracts me a lot. It was the first method I've done.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"yesbird" <nomail@nomail> wrote:
> Please find the scene in attachment.
> Any ideas and suggestions always welcome !
found a few minutes to look at the files. nice + v tidy already, but you knew
that :-). re 'volume.pov', just nit-picking, a bit more "vertical whitespace",
empty lines between statements would be nice. re the .inc file, it shouldn't
really have a 'global_settings' block (fact, POV-Ray complains when it finds the
second, in the scene file); curiously, the file has Microsoft style line endings
whereas the scene does not. there's a "standard" way of making .inc files
idempotent like C type headers, suggest adding the "usual" '#ifndef' guard and
the (local) '#version', and the filename for display via the
'View_POV_Include_stack'. final "nits": I think the ';' terminator should
always be written, for every '#local' and '#declare', but realise I'm probably
in a minority of one :-), and prefer code line lengths .. conservative, ideally
less than 96 chars/line, but, again, that is just a personal view.
also, have decided to "steal" your 'color_map' for a couple of things I want to
try out soon. cheers.
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hi,
Many thanks for finding a time for code-review - it's very important to me, as I
am newbie to POV-world. Volume was the first scene I've made, so it full of
clumsiness. I will apply all of your remarks in next refactoring.
As to color map - it's not mine, I've also staled it from Matlab, and if you
will like any other, I can do it for you again in a one click.
Please find all Matlab's standard color maps here (near the bottom):
https://www.mathworks.com/help/matlab/ref/colormap.html
Happy voluming and colormapping.
--
YB
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hi, jr
I've attached the most tasty maps to this message, btw, don't you know how to
scale them properly, I mean map to object whole specter completely ?
Reading manual:
https://www.povray.org/documentation/view/3.6.1/335/
and a lot of experiments with scaling gives no result.
--
YB
Post a reply to this message
Attachments:
Download 'colormaps.zip' (14 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Op 12-2-2023 om 09:04 schreef yesbird:
> Hi, jr
>
> I've attached the most tasty maps to this message, btw, don't you know how to
> scale them properly, I mean map to object whole specter completely ?
>
> Reading manual:
> https://www.povray.org/documentation/view/3.6.1/335/
> and a lot of experiments with scaling gives no result.
> --
> YB
Apply the pigment to the unit sphere and /then/ scale the sphere:
sphere {
<0,0,0>, 1
pigment {
gradient y
color_map {spring}
}
scale 10
}
--
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Op 12-2-2023 om 13:37 schreef Thomas de Groot:
Better:
sphere {
<0,0,0>, 1
pigment {
gradient y
color_map {spring}
scale 2
translate -1*y
}
scale 10
}
--
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thank you, but I was expected to see all specter, not only one color (see
attachment).
Scene is following:
----------------------------------------------------
#include "jet.inc"
#include "hot.inc"
#include "winter.inc"
#include "parula.inc"
#include "turbo.inc"
#include "bone.inc"
#include "spring.inc"
global_settings { assumed_gamma 1 }
camera { perspective angle 50
location <8.50, 3.40, -8.50> * 5
right x * image_width / image_height
look_at <0.00, 0, -0.00>
right <-1.33, 0.00, 0.000> rotate<90,0,0>}
light_source{<50.0, 50.0, 30.0>rgb <0.80, 0.80, 0.80>}
sphere {
<0,0,0>, 1
pigment {
gradient y
color_map {spring}
scale 2
translate -1*y
}
scale 10
}
----------------------------------------------------
Post a reply to this message
Attachments:
Download 'colormaps.png' (52 KB)
Preview of image 'colormaps.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
However, looking closer, I guess that the color_map indexes are cut-off
beyond 1.00!!! :-/
There is a need to transpose/recalculate all indexes to values between
0.00 and 1.00
--
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> There is a need to transpose/recalculate all indexes to values between
> 0.00 and 1.00
I've tried it already - not helps :(
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |