3 weeks ago
- last edited
2 weeks ago
by
Laszlo Nagy
Hello all,
Hope you're pushing GDL towards to it's potential. Here's my issue at the moment. Why are my edges black? E.g. with SYMB_MAT this does not happen. Does the material definition need additional parameters for the cprism_{2} edges?
Kind regards,
Paalanen
define material "mat_test" 3,r,g,b
!mat_test = SYMB_MAT
cprism_{2} mat_test, mat_test, mat_test,
5, .3,
0, 0, 0, 15, mat_test,
0, 1, 0, 15, mat_test,
1, 1, 0, 15, mat_test,
1, 0, 0, 15, mat_test,
0, 0, 0, -1, mat_test
Solved! Go to Solution.
3 weeks ago
Version 2 of cprism does not know about locally defined materials, so this won't work.
Use cprism_{4} for that.
Also it's good practice to not use string literals. Instead convert them to local index numbers with IND().
Like this:
define material "localmat" 2,
0.329412, 0.4, 0.690196
id_builtin_mat = ind(MATERIAL, "localmat")
3 weeks ago
Version 2 of cprism does not know about locally defined materials, so this won't work.
Use cprism_{4} for that.
Also it's good practice to not use string literals. Instead convert them to local index numbers with IND().
Like this:
define material "localmat" 2,
0.329412, 0.4, 0.690196
id_builtin_mat = ind(MATERIAL, "localmat")
3 weeks ago
Hello runxel,
Thanks a lot indeed!! Will try cprism_{4}...