On Tue, 2004-11-09 at 02:13, Yuting Yang wrote: > Hi Johannes > > I am interested to see. Thanks a lot!
OK, I commited the code. I changed the source again, since I would not like to limit the code to multitexture-HW. I store the tex-coord for the next slice in the first GL color (glColor). There is still one problem. The slice-distance must be known to calculate the pre-integred lookup table. You can not set the slice-distance directly, only the slice-number. The slice-distance is calculated by dividing the volume-box-diagonal with the slice-number. (Just look at the OSGSlices.cpp around like number 540) I would like to change the implementation but I'm on road right now and I do not really have access to my dev-machine. There are two solutions right now: 1. Choose the Slices.size and Slices.numberOfSlices carefully to get the desired sliceDistance. 2. Use a 3DTexture for the pre-integraded color lookup and the sliceDistance as third dimension. :) regards, Johannes ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
