The following 178 words could not be found in the dictionary of 615 words (including 615 LocalSpellingWords) and are highlighted below:

about   accept   add   adding   adds   an   and   answers   asked   Assignment   assignment   automatically   back   be   believe   blue   but   by   can   card   cast   cause   class   color   Color   component   construct   constructor   correct   correctly   course   cs148   default   directly   Discussion   display   don   down   draw   dt   easily   edu   elsewhere   explicitly   expression   false   float   following   for   frequently   from   get   Get   gives   got   graph   graphics   gray   green   had   However   if   If   image   images   Images   in   information   Instead   its   just   Just   leave   like   limitation   lists   ll   logf   long   looks   my   My   new   Node   non   note   Obj   of   on   Open   or   page   Page   Place   post   power   probably   problem   program   properly   quad   questions   quickest   recovered   Rect   red   referenced   Remember   remove   removing   replace   Resize   response   rest   result   right   root   Root   sample   scale   scene   Scene   screen   set   Set   setup   Shape   share   similar   Simply   since   smaller   something   square   staff   stanford   static   Student   such   support   tex   texture   Texture   textured   textures   that   The   the   them   then   they   this   to   up   update   Upload   use   using   value   values   varies   ve   versions   way   We   we   When   will   win0607   with   works   write   wrong   You   you   Your   your   yourself  

    Assignment5Discussion

Assignment 5 FAQ and Student Discussion Page

The course staff will post answers to frequently asked questions about assignment 5 here. Feel free to add to this page yourself if you've got information to share with the rest of the class. Remember, the quickest way to get a response from a TA is to post to cs148-win0607-staff@lists.stanford.edu

My recovered HDR image looks like it has the correct red color, but the green and blue are wrong.

When you do logf(dt) it gives you back a float. If you then use this directly in an expression with an STColor, such as color - logf(dt), it will cast the result of logf(dt) to an STColor automatically using the constructor STColor(float,float,float). However, the default values for that constructor cause the red component to get the right value, but the green and blue to be set to 0. Instead, construct an STColor explicitly and then use it in the expression.

The sample images don't display properly but if I scale them down they do.

We believe this is just an OpenGL limitation that varies from graphics card to graphics card. As long as it works on the smaller versions we'll accept it. Just note in your write up if you had this problem.

Images don't display correctly in my program, I just get a gray screen (or something similar).

Your graphics card probably doesn't support non-power-of-2 textures. You can change the drawing code easily to draw the STImage directly by adding it to the scene graph and removing the code that adds the textured quad to the scene graph. Simply replace setup() with the following code

static void setup() {
        image.Resize(1,1);

        STSceneNode* root = scene.GetRoot();
        root->PlaceObj(&image);
        STShape* square = STShape::CreateRect(1.f, 1.f);
        square->SetColor(STColor(1.f, 1.f, 1.f));

        square_tex = new STTexture();
        square_tex->Upload(image, false);
        square->SetTexture(square_tex);
}

We leave the code for the texture since its referenced elsewhere, but you could remove it and update the rest of the code.

Recent