Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
YafaRay UV Cube XML Code
03-26-2013, 06:36 PM (This post was last modified: 03-26-2013 06:56 PM by micheus.)
Post: #6
RE: YafaRay UV Cube XML Code
oort, I would like to warn you about new settings for Makefile script added by dgud for the current master branch. The old warnings are not accepted anymore - they are converted to compile error.

So, for the future rebuilds, it's good idea avoid leave unused vars, functions and so on... Wink

Also, by trying compile your latest source I also got this [now a] compiler error:
Code:
f:/unixlike/src/wings/PLUGIN~1/IMPORT~1/wpc_yafaray.erl:3443: ambiguous call of overridden auto-imported BIF max/2
- use erlang:max/2 or "-compile({no_auto_import,[max/2]})." to resolve name clash

it's related to these lines:
Code:
export_rgb(F, absorption, {-math:log(max(AbsR, ?NONZERO))/AbsD,
                       -math:log(max(AbsG, ?NONZERO))/AbsD,
                       -math:log(max(AbsB, ?NONZERO))/AbsD})
You will need to inform where that max come from - as you have you own max code in the plugin source, I think you should use what is suggested:
-compile({no_auto_import,[max/2]}).

I sent you an e-mail.
Reply


Messages In This Thread
YafaRay UV Cube XML Code - oort - 01-22-2013, 07:40 AM
RE: YafaRay UV Cube XML Code - Wegg - 03-19-2013, 03:08 PM
RE: YafaRay UV Cube XML Code - ggaliens - 03-20-2013, 04:36 PM
RE: YafaRay UV Cube XML Code - oort - 03-20-2013, 04:57 PM
RE: YafaRay UV Cube XML Code - ggaliens - 03-22-2013, 07:40 PM
RE: YafaRay UV Cube XML Code - micheus - 03-26-2013 06:36 PM
RE: YafaRay UV Cube XML Code - oort - 03-26-2013, 07:31 PM
RE: YafaRay UV Cube XML Code - Wegg - 03-27-2013, 03:35 AM
RE: YafaRay UV Cube XML Code - micheus - 03-27-2013, 06:38 PM
RE: YafaRay UV Cube XML Code - Wegg - 03-27-2013, 10:00 PM
RE: YafaRay UV Cube XML Code - oort - 03-28-2013, 12:59 AM
RE: YafaRay UV Cube XML Code - micheus - 03-28-2013, 04:18 AM
RE: YafaRay UV Cube XML Code - ggaliens - 03-28-2013, 05:09 PM
RE: YafaRay UV Cube XML Code - mljuboja - 10-24-2013, 05:10 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)