Question: Incorporate the logistic function (from Program 14.7) into the marble dragon from Program 14.5, and experiment with the settings to create more distinct veins. Program

Incorporate the logistic function (from Program 14.7) into the marble dragon from Program 14.5, and experiment with the settings to create more distinct veins.

Program 14.5Java/JOGL application: public void init(GLAutoDrawable drawable) { ... generate Noise(); noise Texture ={ for (int k = 0; k} gl.glEnable(GL_CULL_FACE); gl.gl FrontFace(GL_CCW); gl.glEnable(GL_DEPTH_TEST); gl.glDepth Func(GL_LEQUAL);

Java/JOGL application: public void init(GLAutoDrawable drawable) { ... generate Noise(); noise Texture = load3D Texture(); // same as in Prog 14.4, and which in turn calls fillDataArray() } private double logistic(double x) { double k = 3.0; return (1.0/ (1.0+ pow(2.718, -k*x))); } private void fillDataArray(byte data[]) {double veinFrequency = 2.0; double turbPower = 3.0; double maxZoom = 32.0; for (int i = 0; i

Step by Step Solution

3.27 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Graphics Programming Questions!