Bug 1327 - Add a GL2ES2 pipeline to Java3D
Summary: Add a GL2ES2 pipeline to Java3D
Status: RESOLVED FIXED
Alias: None
Product: Java3D
Classification: General
Component: core (show other bugs)
Version: 2.4.0
Hardware: All all
: P4 enhancement
Assignee: Phil Jordan
URL:
Depends on:
Blocks:
 
Reported: 2016-10-17 05:53 CEST by Phil Jordan
Modified: 2019-03-29 14:19 CET (History)
1 user (show)

See Also:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Jordan 2016-10-17 05:53:32 CEST
ES2 does not support the fixed function pipeline, so this enhancement will require a pure shader based mechanism.

Also as ES2 has disable several features they simply will not be able to work with this pipeline, for example QuadArray usage will simply throw an exception.

There will need to be significant documentation released with this enahncement, so that work should go into bug 
https://jogamp.org/bugzilla/show_bug.cgi?id=1090
Comment 1 Phil Jordan 2016-11-04 11:09:37 CET
Many, many examples of use and shader examples, in java3d-examples

I still need to produce a good guide to writing shaders, but what's in the example includes:
tex coord generation
texture + lighting
phong lighting
blinn-phong lighting
various material usages
information on fog data that's available
SimpleShaderAppearance.java and fixed_function_shader.vert and .frag
basically show everything that's needed to get shading done.


There is a nice comparison in the sphere_motion package of FFP, glsl with #version 100 built-in variables and the gl2es2pipeline equivalent, showing how similar it is.