Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texture not combined with diffuse color #579

Closed
andreasplesch opened this issue Nov 17, 2015 · 2 comments
Closed

texture not combined with diffuse color #579

andreasplesch opened this issue Nov 17, 2015 · 2 comments

Comments

@andreasplesch
Copy link
Contributor

The conformance test

http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/ImageTexture/greyscale_jpg_diffuseColor.xhtml

produces only a greyscale texture, without the red tinting from the diffuse color.

@tsturm
Copy link
Member

tsturm commented Nov 17, 2015

Hi Andreas,

blending a texture color with a material color should only work if you set the origChannelCount of the ImageTexture to 1 or 2.

<ImageTexture url="..." origChannelCount="1"></ImageTexture>

See Table 17.2 of the X3D Specification.

Regards
Timo

@andreasplesch
Copy link
Contributor Author

Yes, x3dom has origChannelCount but x3d does not: http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#ImageTexture

So should 1 be the default ? This may have been discussed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants