>
> cool -. I've been using a very simple raycaster in go for a short while 
> just for fun / test some visualisation ideas of mine -- one minor issue 
> I've had is lack of native (standard library) support for hdr colors, as 
> well as transparency (ie transparency  != alpha blend) ..
>

(my junk is not available anywhere because a. It's a mess I'm ashamed of :) 
, and b. It doesn't have anything that isn't trivially available elsewhere )

My current hdr-rgb fix kludges a 4 byte hd-RGB into 3 bytes mantissa (r,g,b 
as uint8s) and a 4th byte exponent (as int8) - and then squashes the 4th 
byte into the A channel of the standard library color.NRGBA type -this 
saves me some time as I can use a few standard library and additional 
packages for post-work without too much hassles. I'll probably make a 
proper color.Color type at somepoint though the required RGBA() method will 
need to be somesort of logarithmic kludge


*I think some people might appreciate your work as a package too*. Maybe if 
it color output the rendered image as a [][]struct{R,G,B float32 etc} for 
ease of post-processing/image conversion that could well be useful to 
others.

Keep up the good work. !

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to