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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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