Author Topic: EDA221 - Introduction to 3D 2013 HT1  (Read 30202 times)

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
EDA221 - Introduction to 3D 2013 HT1
« on: 2013-08-26 18:19:50 »
Welcome to the Computer graphics: Introduction to 3D discussion forum!  :)

Here you may ask questions about the labs or other issues. Teachers/assistants will be present here, but students are highly encouraged to participate.

Course-related announcements might pop up here as well, so make sure to stop by on a regular basis.

Editions from previous years (lots of useful stuff):
2012 forum: http://forum.student.lth.se/index.php/topic,1057.0.html
2011 forum: http://forum.student.lth.se/index.php/topic,999.0.html
2010 forum: http://forum.student.lth.se/index.php/topic,929.0.html

Offline Jacob Munkberg

  • Newbie
  • *
  • Posts: 22
Lecture slides
« Reply #1 on: 2013-09-03 18:54:19 »
Welcome to the course!

I have posted the slides from today's (2013-09-03) lecture at http://cs.lth.se/english/course/eda221-computer-graphics/lectures/


Regards
Jacob Munkberg

Offline Gunnar

  • Newbie
  • *
  • Posts: 3
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #2 on: 2013-09-10 16:53:13 »
Hej!

Vi har försökt få Renderchimp att fungera på våra mac:ar i snart 2 timmar. Vi har dammsugit oss igenom de gamla forumen utan resultat. Det vi framförallt gjort är att installera SDL-framework-filerna (som nämns i forumen: SDL.framework samt SDL2_image.framework) på datorn (i System/Library/Frameworks) samt byta ut dessa frameworks i projektets "Linked Frameworks and Libraries" mot de nya.

Jag får felmeddelandet "SDL.h not found". Kan det vara något path-fel? Är ovan vid denna typ av kod, så jag har svårt att avgöra var felet ligger.

Offline Jacob Munkberg

  • Newbie
  • *
  • Posts: 22
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #3 on: 2013-09-10 20:59:05 »
Hej!

Vi har försökt få Renderchimp att fungera på våra mac:ar i snart 2 timmar. Vi har dammsugit oss igenom de gamla forumen utan resultat. Det vi framförallt gjort är att installera SDL-framework-filerna (som nämns i forumen: SDL.framework samt SDL2_image.framework) på datorn (i System/Library/Frameworks) samt byta ut dessa frameworks i projektets "Linked Frameworks and Libraries" mot de nya.

Jag får felmeddelandet "SDL.h not found". Kan det vara något path-fel? Är ovan vid denna typ av kod, så jag har svårt att avgöra var felet ligger.

Hej Gunnar,

Vilken version av os x och xcode kör ni? Jag testade precis på OS X 10.7.5, med xcode 4.5.2 och det fungerade utan problem.
Jag har installerat SDL och SDLimage i
/Library/Frameworks/SDL.framework
respektive:
/Library/Frameworks/SDL_image.framework
dvs ej i System/Library/Frameworks som ni nämner ovan.

Jag använder SDL version 1.2.15 från http://www.libsdl.org/download-1.2.php

Felmeddelandet "SDL.h not found" tyder på att er installation inte hittar SDL.framework.
Den filen skall synas i xcode-projektet under Frameworks->Linked Frameworks->SDL.framework->Headers->SDL.h

Det är möjligt att det är ngt problem som bara uppkommer i nyare versioner av OS X och/eller SDL. Om inget av ovanstående hjälper, så kontakta Carl-Johan direkt.

mvh

Jacob Munkberg

Offline Jacob Munkberg

  • Newbie
  • *
  • Posts: 22
Re: Lecture slides
« Reply #4 on: 2013-09-10 21:01:00 »
Welcome to the course!

I have posted the slides from today's (2013-09-03) lecture at http://cs.lth.se/english/course/eda221-computer-graphics/lectures/


Regards
Jacob Munkberg

I have now posted the slides from today's (2013-09-10) lecture at http://cs.lth.se/english/course/eda221-computer-graphics/lectures/


Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #5 on: 2013-09-12 09:56:42 »
Just as a reference: on my machine,  osx 10.7.5, xcode 4.3.2, both frameworks -- SDL and SDL_image -- are located in /Library/Frameworks/ (I don't even have a System/Library/Frameworks folder  :o)

SDL.framework (version 1.2 version 2.0)
http://www.libsdl.org/download-1.2.php

SDL_image.framework (version 2.0)
http://www.libsdl.org/projects/SDL_image/

Edit: Added version info. SDL.framework 2.0 should not be used.
« Last Edit: 2013-09-12 15:00:57 by CarlJohanG »

Offline pdekker

  • Newbie
  • *
  • Posts: 6
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #6 on: 2013-09-13 12:34:32 »
A few days ago, I ran Visual studio 2010 on a computer in E:Elgkalv and everything worked fine. Today, I tried to start it on a computer in the same room, I chose the Visual C++ configuration and it began to give errors. Now, everytime I try to start Visual Studio 2010 (on different computers in Elgkalv) I get the message "Cannot create the window". Could anybody help me?

EDIT:
I was able to remove the Visual Studio user data, now I can saw the original error message again, it is:

The 'Environment Package Window Management' package did not load correctly
« Last Edit: 2013-09-13 12:40:43 by pdekker »

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #7 on: 2013-09-14 00:13:40 »
A few days ago, I ran Visual studio 2010 on a computer in E:Elgkalv and everything worked fine. Today, I tried to start it on a computer in the same room, I chose the Visual C++ configuration and it began to give errors. Now, everytime I try to start Visual Studio 2010 (on different computers in Elgkalv) I get the message "Cannot create the window". Could anybody help me?

EDIT:
I was able to remove the Visual Studio user data, now I can saw the original error message again, it is:

The 'Environment Package Window Management' package did not load correctly

Weird, it worked fine for me too last week when I tested in Elgkalv. The error seems to be caused by an add-in ("Environment Package Window Management"). Has anyone else tested RenderChimp in Elgkalv yet? Does Magnus have any ideas? If the problem persists we'll look into it asap.

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #8 on: 2013-09-16 12:19:11 »
A few days ago, I ran Visual studio 2010 on a computer in E:Elgkalv and everything worked fine. Today, I tried to start it on a computer in the same room, I chose the Visual C++ configuration and it began to give errors. Now, everytime I try to start Visual Studio 2010 (on different computers in Elgkalv) I get the message "Cannot create the window". Could anybody help me?

EDIT:
I was able to remove the Visual Studio user data, now I can saw the original error message again, it is:

The 'Environment Package Window Management' package did not load correctly

I get the same error when I open the zipped solution. Make sure to unzip the downloaded folder before opening anything.

When I unzip and then open the solution, everything works fine here in Elgkalv.

Update: Hold on, opening a zipped solution does seem to corrupt the VS configuration somehow. I'm looking into this...

Update 2: Ok, so opening the zipped VS solution file apparently may corrupt the user configurations pretty seriously. I was unable to successfully reset my settings locally. As of now, the solution is to visit the sys ops (DDG) and let them reset your settings directly on the server side. After doing this, Visual Studio worked for me again. If an easier solution is found we'll let you know. This is obviously a bug in VS. Ergo, make sure to unzip your downloaded content before opening.

DDG is found here:
http://www.ddg.lth.se/ehuset/exp.php
« Last Edit: 2013-09-16 13:38:00 by Carl Johan Gribel »

Offline pdekker

  • Newbie
  • *
  • Posts: 6
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #9 on: 2013-09-16 14:03:15 »
Thanks for looking into this! Miraculously, my Visual Studio in Elgkalv now works fine again, I guess it was a temporary problem. I hope the problem will not return. I am not sure whether the problem was related to using a zipped or unzipped RenderChimp distribution, I think I unzipped it before I opened the solution for the first time.

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #10 on: 2013-09-16 15:06:43 »
Thanks for looking into this! Miraculously, my Visual Studio in Elgkalv now works fine again, I guess it was a temporary problem. I hope the problem will not return. I am not sure whether the problem was related to using a zipped or unzipped RenderChimp distribution, I think I unzipped it before I opened the solution for the first time.

Great to hear that it works. Maybe there are other causes as well – opening the zipped solution was just how I triggered the error.
« Last Edit: 2013-09-16 15:28:52 by Carl Johan Gribel »

Offline Gunnar

  • Newbie
  • *
  • Posts: 3
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #11 on: 2013-09-17 16:38:52 »
Har prövat att göra som du säger, men får fortfarande problem (dock ett annat). Just nu klagar den på att "AvailabilityMacros.h file not found". Några idéer på vad som kan vara problemet?

Hej!

Vi har försökt få Renderchimp att fungera på våra mac:ar i snart 2 timmar. Vi har dammsugit oss igenom de gamla forumen utan resultat. Det vi framförallt gjort är att installera SDL-framework-filerna (som nämns i forumen: SDL.framework samt SDL2_image.framework) på datorn (i System/Library/Frameworks) samt byta ut dessa frameworks i projektets "Linked Frameworks and Libraries" mot de nya.

Jag får felmeddelandet "SDL.h not found". Kan det vara något path-fel? Är ovan vid denna typ av kod, så jag har svårt att avgöra var felet ligger.

Hej Gunnar,

Vilken version av os x och xcode kör ni? Jag testade precis på OS X 10.7.5, med xcode 4.5.2 och det fungerade utan problem.
Jag har installerat SDL och SDLimage i
/Library/Frameworks/SDL.framework
respektive:
/Library/Frameworks/SDL_image.framework
dvs ej i System/Library/Frameworks som ni nämner ovan.

Jag använder SDL version 1.2.15 från http://www.libsdl.org/download-1.2.php

Felmeddelandet "SDL.h not found" tyder på att er installation inte hittar SDL.framework.
Den filen skall synas i xcode-projektet under Frameworks->Linked Frameworks->SDL.framework->Headers->SDL.h

Det är möjligt att det är ngt problem som bara uppkommer i nyare versioner av OS X och/eller SDL. Om inget av ovanstående hjälper, så kontakta Carl-Johan direkt.

mvh

Jacob Munkberg

Offline Jacob Munkberg

  • Newbie
  • *
  • Posts: 22
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #12 on: 2013-09-17 20:10:39 »
Har prövat att göra som du säger, men får fortfarande problem (dock ett annat). Just nu klagar den på att "AvailabilityMacros.h file not found". Några idéer på vad som kan vara problemet?

Hello Gunnar,

I assume you are using OS X 10.8, as we have tested the code on several OS X 10.7 computers without any glitches. I helped a student with OSX 10.8.4 today that also had a similar problem (AvailabilityMacros.h missing), so it seems like a compatibility problem with SDL 1.2 in the latest version of os x.

To make it work, we did the following:
1. Installed SDL 1.2.15 from http://www.libsdl.org/download-1.2.php
2. Installed SDL image (1.2) from http://www.libsdl.org/projects/SDL_image/release-1.2.html
3. Both frameworks were placed in /Library/Frameworks/
4. Downloaded RenderChimp and opened the unmodified xcode project
5. In the build settings for the RenderChimpOSX target, we performed the following changes:
- Changed "Base SDK" to 10.7 (that fixed the AvailabilityMacros.h issue)
- Framework Search Paths: Added the path: /Library/Frameworks/
- Header Search Paths: Added two paths: /Library/Frameworks/SDL.framework/Headers/ and /Library/Frameworks/SDL_image.framework/Headers/

Let me know if this works!

/Jacob



 
« Last Edit: 2013-09-17 20:19:53 by Jacob Munkberg »

Offline Jacob Munkberg

  • Newbie
  • *
  • Posts: 22
Re: Lecture slides
« Reply #13 on: 2013-09-17 20:17:07 »
Welcome to the course!

I have now posted the slides from the third lecture (2013-09-17) at http://cs.lth.se/english/course/eda221-computer-graphics/lectures/

I modified the parameterization of the heigh field (slide 22-23) such that the normal direction now has a positive y-component. Thanks for pointing this out in the lecture!

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2013 HT1
« Reply #14 on: 2013-09-20 11:53:31 »
Two minor things I forgot to mention on yesterday's seminar:

About the facing of the circle rings. We talked about two ways to make the "flip-side" of the rings visible. One was adding another upside-down circle ring, and one was disabling backface culling. The problem with the second strategy is that the normals of the surface will of course still point in just one direction, so the backfacing side will be remain non-illuminated (possibly black, depending on the shader). Therefore, I recommend using another upside-down set of geometry. This won't be an issue with the sphere and the torus since they are geometrically closed.

Print-out of scene graph in the console. Open the RenderChimp console using F1 and then type /scene_tree to make a simple print-out of your scene graph. As far as I can see RenderChimp interprets buttons with a non-swedish mapping, so you might need to press dash ("–") to produce the slash ("/").

And a reminder: I (like Jacob) aim at posting updated seminar slides + assignment instructions on the web page the same day as the scheduled seminar. The content usually doesn't differ much from last year's, but make sure to use updated content once it's posted.
« Last Edit: 2013-09-20 12:02:40 by Carl Johan Gribel »

 

joke