Download presentation
Presentation is loading. Please wait.
1
Materials and Lighting in MeshShop CMPS 160 Assignment 4
2
What you need to know MeshShop plugin architecture and creation process (described in lab) OpenGL Lighting Model (described in lecture)
3
MeshShop Meshshop is a tool for manipulating and looking at meshes. It is structured around the idea of plugins, chunks of code that work independently communicating through the meshes only. Four types of plugins: file, display, interactor, filter
4
Plugins Some plugins are used like collections of callbacks in GLUT. The active display plugin is called when the screen should be redrawn, the active interactor plugin is called when the user moves the mouse or hits the key. Others are mesh tools, file plugins load strange file formats into a standard mesh object in the program, filter plugins adjust the actual geometry of the mesh.
5
Example: demo_display Code is in two files, plugins/demo_display/demo_display.cp p and.h Defines a class called PluginDemoDisplay This class overrides the display() method in its parent class: Plugin_Base
6
Your Assignment Create a new display plugin for meshshop that allows the user to view their meshes under varying lighting conditions and with different material properties. Due in 2 weeks. Start by checking out the base code and creating a new display plugin by modifying the demo_display plugin.
7
Checking out the Base Code Delete your old meshshop directory Run “ svn checkout http://svn.dforge.cse.ucsc.edu/meshshop meshop ” on unix.ic -- you’ll probably have to run svn as /afs/cats.ucsc.edu/courses/cmps115-cf/svn/bin/svn Run “make -f Makefile.Aqua” on your local Mac Run “./meshshop example_data/dinosaur-75.ply ”
8
Creating a new display plugin by modifying demo_display and getting it to work the way you want…. Directions are on assignment page.
9
The End Nothing due next week, however… This week you should be able to get the base code, build it, modify a copy of demo display, get it to build into meshshop, and tweak some aspect of the rendering so you can tell it is your plugin. You can play with lighting after you have the theory covered in class.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.