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

Type 4 shading (Gouraud shading) not or no longer supported #6283

Closed
THausherr opened this issue Jul 30, 2015 · 1 comment
Closed

Type 4 shading (Gouraud shading) not or no longer supported #6283

THausherr opened this issue Jul 30, 2015 · 1 comment

Comments

@THausherr
Copy link
Contributor

See these files:
https://issues.apache.org/jira/secure/attachment/12647115/PDFBOX-2100-gouraud-RGB-function.pdf
https://issues.apache.org/jira/secure/attachment/12647112/PDFBOX-2100-gouraud-CMYK-function.pdf

Apparently type 4 shading was implemented some time ago, but no longer works...

You can find the Postscript here:
https://issues.apache.org/jira/browse/PDFBOX-2100

Very useful help on how to color a triangle, almost no math skills needed:
http://classes.soe.ucsc.edu/cmps160/Fall10/resources/barycentricInterpolation.pdf

Whoever did types 6 and 7 for you should be able to do types 4 and 5.

The files I created myself (with postscript) are usually apache licensed, except for those that mention an "inspiration" in the PS source. Many such files are also in PDFBOX-1915.

@timvandermeij
Copy link
Contributor

Closing as fixed by the PR that fixed the shading type regressions. These now render again. The artefacts (additional lines) are tracked in #6284 where we have more examples.

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

No branches or pull requests

2 participants