From theseas!fs.Princeton.EDU!cek Thu, 28 Jan 93 01:29:50 EET
Received: by kriton.UUCP (V1.16/Amiga)
	id AA00000; Thu, 28 Jan 93 01:29:50 EET
Received: by theseas.ntua.gr with UUCP; Wed, 27 Jan 93 20:41:10 +0200
Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
	id AA26162 (5.65c/FORTH-ICS-3.0-MHS-7.0); Wed, 27 Jan 1993 20:27:31 +0200
Received: by mcsun.EU.net via EUnet
	id AA05998 (5.65b/CWI-2.205); Wed, 27 Jan 1993 19:21:46 +0100
Received: from Princeton.EDU by relay1.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA21694; Wed, 27 Jan 93 13:13:47 -0500
Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.95/princeton)
	id AA01691; Wed, 27 Jan 93 13:11:51 -0500
Received: by fs.Princeton.EDU (4.1/1.105)
	id AA12699; Wed, 27 Jan 93 13:11:49 EST
Received: from faui45.informatik.uni-erlangen.de by fs.Princeton.EDU (4.1/1.105)
	id AA12587; Wed, 27 Jan 93 13:10:56 EST
Received: from faui43.informatik.uni-erlangen.de by uni-erlangen.de with SMTP;
	id AA00850 (5.65c-5/7.3q-FAU); Wed, 27 Jan 1993 19:10:42 +0100
Received: by immd4.informatik.uni-erlangen.de;
	id AA20152 (5.65c-5/7.3m-FAU); Wed, 27 Jan 1993 19:10:39 +0100
Message-Id: <199301271810.AA20152@faui43.informatik.uni-erlangen.de>
Date: Wed, 27 Jan 93 19:10:38 MET
X-Mailer: ELM [version 2.3 PL11]
Errors-To: Princeton.EDU!cek
Remailed-Date: Wed Jan 27 13:11:01 EST 1993
From: "Michael Schroeder (Inf4 - hiwi)" <immd4.informatik.uni-erlangen.de!mlschroe>
To: cs.Princeton.EDU!rayshade-users
Subject: Bug in surface code


Hello,

in SurfaceCreate() the component 'translucency' is not initialised
to zero.  This bug can have some real strange effects.  I have a
scenefile which works if I delete a 'translate 0 0 0' statement.
It all depends on the malloc() implementation.

Michael.


P.S.: If somebody is interested in testing my multi-csg code,
      look in ftp.uni-erlangen.de:pub/graphics/rayshade/multicsg.
      The patch fixes also a problem with the shadowcache.
      I've sent this code to Craig and he will put it in
      the next release...

---------------------------------------------------------------
Michael Schroeder    mlschroe@faui43.informatik.uni-erlangen.de
main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}
      

*** surface.c.orig	Tue Jan 19 16:51:20 1993
--- surface.c	Tue Jan 19 16:51:23 1993
***************
*** 46,52 ****
  	stmp->srexp = stmp->stexp = DEFAULT_PHONGPOW;
  	stmp->statten = 1.;	/* No attenuation by default */
  
! 	stmp->reflect = stmp->transp = 0.;
  
  	stmp->noshadow = FALSE;
  
--- 46,52 ----
  	stmp->srexp = stmp->stexp = DEFAULT_PHONGPOW;
  	stmp->statten = 1.;	/* No attenuation by default */
  
! 	stmp->reflect = stmp->transp = stmp->translucency = 0.;
  
  	stmp->noshadow = FALSE;


----------
Administrivia: rayshade-request@cs.princeton.edu
Mailing list: rayshade-users@cs.princeton.edu

