Works like a charm now, thanks =)
On 06/05/06, Richard Swingwood <[EMAIL PROTECTED]> wrote:> Timo Mikkolainen wrote:> > I'm trying to use the rayrtacer, but it always crashes at render:> > float frefl, frefr;raytracer ray;vector vrefl, vrefr;> > shader MaterialInitialization(){ ray.randomness = 0.5;>
> ray.weightByAngle = FALSE; ray.sideCheck = FALSE; ray.rayCount => > 1;}> > shader SurfaceProperties(){ Surface.Color = (0.0, 0.0, 0.0);> > fresnel( Surface.Ray, Surface.Normal, 0.6,> > frefl, frefr, vrefl, vrefr);}>
> shader SurfaceFinishing(){ Surface.Illumination +=> > ray.trace( Surface.Coordinates, vrefl,> > color(frefl)); Surface.Illumination += ray.trace(> > Surface.Coordinates, vrefr, color(frefr));}> > On 02/05/06, Richard Swingwood
<[EMAIL PROTECTED]> wrote:> Hi> > All,>> Version 1.15 of Realman is now available for download from>> > http://realman3d.co.uk>> Both Windows and Linux (i386) platforms are> > now supported.>> Enjoy!>>> richard.>>> >> Fixed in
V1.16>> Timo, please note that the line in your script>> Surface.Color = (0.0, 0.0, 0.0);>> by chance works as you intend [ because it is parsed as Surface.Color => 0.0; ] but is not really valid syntax. For example:>> Surface.Color = (0.7, 0.3,
0.25);>> would not give the desired result - it should be>> Surface.Color = color(0.7, 0.3, 0.25);>> This is obviously a bug in the compiler that will be sorted in the future.>> Regards>> richard.>>