Create a program to display a white sphere

Assignment Help Computer Engineering
Reference no: EM132178460

Vtk /TCL question -Data visualization

The vtkSphereSource class generates a polygonal model of a sphere. create a program to display a white sphere.

Set the ambient and diffuse intensities to 0.5. Then add a for-loop to this program that adjusts the ambient and diffuse color of this sphere so that as the loop progresses, the diffuse color goes from red to blue, and the ambient color goes from blue to green.

You might also try adjusting other lighting parameters such as specular color, ambient, diffuse, and specular intensity.

Using the code developed in step 1, add code to display the sphere with a light source positioned at (1, 1, 1).

Then extend this program by adding a for-loop that will adjust the active camera's clipping range so that increasing portions of the interior of the sphere can be seen

By increasing the first value of the clipping range, you will be adjusting the position of the front clipping plane.

Once the front clipping plane starts intersecting the sphere, you should be able to see inside of it. The default radius of the vtkSphereSource is 0.5, so make sure that you adjust the clipping range in increments less than 1.0.

Reference no: EM132178460

Questions Cloud

Find the expected value of owning a defibrillator : Suppose it costs $2,500 to buy a defibrillator. Find the expected value of owning a defibrillator if there is a 4% probability that Frontier Gym
Design the conceptual schema using an er-diagram : Design the conceptual schema using an Entity Relationship Diagram (ERD) model for this company's database indicating the relationships.
What is the probability that she gets fewer : A multiple-choice test consists of 7 questions. Each question has answer choices of a, b , c and d and only one of the choices is correct.
Higher on standardized test : A college professor claims that students who major I engineering in college score higher on standardized test than students who major ancient history.
Create a program to display a white sphere : The vtkSphereSource class generates a polygonal model of a sphere. create a program to display a white sphere.
What is the probability that a randomly selected student : What is the probability that a randomly selected student will get a starting salary of at least $5,000?
What is the farthest that of people travel to work : The distance that people travel to work is normally distributed with a mean of 10.2 km and standard deviation of 1.6 km. What is the farthest that 95% of people
Confidence interval for the difference in outcomes : a. Find a 95% confidence interval for the difference in outcomes. b. Based on the answer in part a is prozac effective?
Process of determining the budget for next year : The management of a professional baseball team is in the process of determining the budget for next year.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Ethernet mac address

Specify the size of Ethernet MAC addresses. State the Ethernet MAC broadcast address. Explain the format of the Ethernet frame?

  Provide a pin and a card for access

Consider an automated teller machine (ATM) in which users provide a personal identification number (PIN) and a card for account access.

  Write a monitor to implement the disk scheduler

Write a monitor to implement the disk scheduler. The monitor should consist of two procedures, one for a request for and one for a release from disk access.

  How were cache directories implemented in memory hierarchy

Define the cache states used in Dash. How were the cache directories implemented in the memory hierarchy?

  Write a prolog predicate print state

Write a Prolog predicate print state(X) which will print a state X to the terminal using an asterisk to represent a markable cell and a space to represent a gap between runs of markable cells.

  Prompt the user for the number of vertices

Prompt the user to enter the adjacency matrix of the graph one row at a time. Print the adjacency matrix of the graph.

  Give differences between human centered and user centered

What are the differences between "human centered" and "user centered" approaches? Do you agree that human centered approach is more effective? Why or why not?

  What are the five major project fundamentals

What are the five major project fundamentals? List the five criteria for systems project selection. What does COTS stand for?

  Design a nested menus interface for a check-in and checkout

Design a nested menus interface for a check-in and checkout hotel reservation system that can be used internationally. Use numbers to select a menu item.

  What range of bit rates can be supported to have flat fading

Suppose a wireless channel has a coherence bandwidth of 100 kHz. What range of bit rates can be supported to have flat fading?

  What can be done to completely erase data

IT 357 - Data Recovery - What happens when a drive is formatted using default operating system formatting tools? Your answer should discuss what happens in terms of the actual activity at the disk level.

  What advice or guidance would offer a company

In times of financial difficulty, companies often resort to trimming the human asset base, without proper prior analysis of the long-term impacts of those actions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd