sebarnolds
11-12-2006 13:25:29
Hi.
I'm using oFusion CE with 3D Studio Max 8 SP1. When I define an oFusion material which uses shaders there is a problem when I set the value of the parameters. For example, if I use the Ocean_sky_vs shader, I can define the view_proj_matrix and the view_position parameters which are resp. a matrix and a vector (x,y,z,w). The GUI allows me to specify float values, displayed following my Windows regional settings (eg. 3/2 is displayed as "1,5" as I'm from Belgium, instead of "1.5" for English regional settings). It seems that oFusion fails to retrieve the correct value and tries to read it as if it were specified with English regional settings. This obviously generate a problem : all the float values are truncated to integer ones. I guess there is another way for you to retrieve the values of theses GUI controls instead of reading a string and parsing it.
Any advise / remarks about that bug ?
Thanks,
Sebastien
I'm using oFusion CE with 3D Studio Max 8 SP1. When I define an oFusion material which uses shaders there is a problem when I set the value of the parameters. For example, if I use the Ocean_sky_vs shader, I can define the view_proj_matrix and the view_position parameters which are resp. a matrix and a vector (x,y,z,w). The GUI allows me to specify float values, displayed following my Windows regional settings (eg. 3/2 is displayed as "1,5" as I'm from Belgium, instead of "1.5" for English regional settings). It seems that oFusion fails to retrieve the correct value and tries to read it as if it were specified with English regional settings. This obviously generate a problem : all the float values are truncated to integer ones. I guess there is another way for you to retrieve the values of theses GUI controls instead of reading a string and parsing it.
Any advise / remarks about that bug ?
Thanks,
Sebastien