[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] Retrieving number of texture channels



Hi all,

is there already a possibility to retrieve the number of present texture channels (intensity, luminance-alpha, rgb or rgba texture) in WebGL?

Because according to the X3D lighting model a material's diffuse color modulates the color of the texture in case of a one or two channel texture, which we need to know for implementing this correctly in X3DOM. If instead the texture has three or four channels (the typical case), the color of the texture is used as the diffuse color.
You can find an example demonstrating this issue here:
http://x3dom.org/x3dom/example/x3dom_imageChannels.xhtml


Regards
Yvonne


-- Yvonne Jung Fraunhofer-IGD | Tel.: ++49-6151-155-290 Fraunhoferstr. 5 | Fax.: ++49-6151-155-196 64283 Darmstadt | email: yvonne.jung@igd.fraunhofer.de Germany | http://www.igd.fhg.de/igd-a4 ----------------------------------------------------------- You are currently subscribe to public_webgl@khronos.org. To unsubscribe, send an email to majordomo@khronos.org with the following command in the body of your email: