Incorporate the logistic function (from Program 14.7) into the marble dragon from Program 14.5, and experiment with
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 14.5
Transcribed Image Text:
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
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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 40% (5 reviews)
Answered By
Anthony Ngatia
I have three academic degrees i.e bachelors degree in Education(English & Literature),bachelors degree in business administration(entrepreneurship option),and masters degree in business administration(strategic management) in addition to a diploma in business management.I have spent much of my life in the academia where I have taught at high school,middle level colleges level and at university level.I have been an active academic essays writer since 2011 where I have worked with some of the most reputable essay companies based in Europe and in the US.I have over the years perfected my academic writing skills as a result of tackling numerous different assignments.I do not plagiarize and I maintain competitive quality in all the assignments that I handle.I am driven by strong work ethics and a firm conviction that I should "Do Unto others as I would Like them to do to me".
4.80+
76+ Reviews
152+ Question Solved
Related Book For
Computer Graphics Programming In OpenGL With JAVA
ISBN: 9781683922193
2nd Edition
Authors: V. Scott Gordon PhD, John L. Clevenger PhD
Question Posted:
Students also viewed these Computer science questions
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
Write a literature review for your study. See below for an example of a literature review. Your literature review should provide both analysis and synthesis of previous studies as related to the...
-
A small consulting company wants to make the switch to QuickBooks Online. All of their expenses are paid at the time they are incurred, so there is no need to track bills in the system. There is only...
-
Concentric with the circle x 2 + y 2 + 2x 8y + 8 = 0 and passes through (2, 3)
-
Let x[n] be a real causal sequence for which |x[n]| < . The z-transform of x[n] is which is a Taylors series in the variable z -1 and therefore converges to an analytic function everywhere outside...
-
The budget director of Gold Medal Athletic Co., with the assistance of the controller, treasurer, production manager, and sales manager, has gathered the following data for use in developing the...
-
The price of a share is \(\$ 100\). During the following six months the price can go up or down in a \(10 \%\) per month. If the risk-free interest rate is \(8 \%\) per year, continuously compounded,...
-
Each of the following scenarios is independent. Assume that all cash flows are after- tax cash flows. a. Colby Hepworth has just invested $ 400,000 in a book and video store. She expects to receive a...
-
Given the following data for Oriole Company, compute (A) total manufacturing costs and (B) costs of goods manufactured: Direct materials used $220000 Beginning work in process $40000 Direct labor...
-
The simple sine wave used to define the wood rings generate rings in which the light and dark areas are equal width. Experiment with modifications to the associated fillDataArray() function with the...
-
Modify Program 14.3 to clip the torus along the horizontal, creating a circular trough. Program 14.3 Java/JOGL application: public void display(GLAutoDrawable drawable) { ... flipLoc gl.glGetUniform...
-
The following related discrete problem also gives a good clue for the answer to Exercise 32. Randomly select with replacement t1, t2, . . . , tr from the set (1/n, 2/n, . . . , n/n). Let X be the...
-
Cane: For and D grf grf Q2: A cane will reduce the GRF moment arm by 25% (from 10 cm), and bear 15% of the body's weight. The remaining 85% of the BW is supported by the stance limb. The BW is 725 N....
-
In a long straight current - carrying wire a branching in the form of a circular loop of radius R is made. The wire is free to rotate around the horizontal axis passing through the linear portion of...
-
A mass (m = 2.12kg) is connected to a spring (k = 291.6N/m) on the surface of a horizontal, frictionless table and constrained to move in the direction (gravity is pointed in the direction). When...
-
The stellar mass of a galaxy at an early time is 1 x 1 0 0 9 M \ geocircle , and at a later time it has grown to 5 \ times 1 0 1 0 M \ geocircle . If the growth occurs over a period of 1 billion...
-
1 . A mass is hanging at rest from a spring 3 0 cm above a pressure plate as shown below. It is pulled down some distance and then released so that it startsLevel oscillating ( bouncing ) up and down...
-
Presented here are two independent situations. (a) On January 6, Bennett Catering sells food and services on account to Jackie, Inc., for $7,000, terms 2/10, n/30. On January 16, Jackie, Inc., pays...
-
Why can wastewater treatment requirements in Hawaii be less stringent than those in most locations on the U.S. mainland?
-
Mary is a shareholder in CarrollCo, a calendar year S corporation. At the beginning of the year, her stock basis is $10,000, her share of the AAA is $2,000, and her share of corporate AEP is $6,000....
-
Assume the same facts as in Problem 36, except that the two shareholders consent to an AAA bypass election.
-
At the beginning of the tax year, Lizzie holds a $10,000 stock basis as the sole shareholder of Spike, Inc., an S corporation. During the year, Spike reports the following. Determine Lizzies stock...
-
Explain the processes for workplace assessment and potential benefits of businesses offering health - promotion programs.
-
Is it true that the responsibilities of management typically involve overseeing the work of a specific department or team within a company, while the responsibilities of non - managerial employees...
-
Assume that variable costs increase to 50% of the current sales price and fixed costs increase by $9,200 per month. If Sheridan were to raise its sales price 10% to cover these new costs, but the...
Study smarter with the SolutionInn App