Author Topic: EDA221 - Introduction to 3D 2011 HT1  (Read 36431 times)

Offline MathiasHaage

  • Newbie
  • *
  • Posts: 33
EDA221 - Introduction to 3D 2011 HT1
« on: 2011-08-24 17:47:22 »
Welcome to the course discussion forum!

Offline Lennart

  • Newbie
  • *
  • Posts: 3
Seminar time
« Reply #1 on: 2011-08-30 13:34:58 »
The seminar time will not be changed. It remains Fridays 10-12.

Offline Annisukino

  • Newbie
  • *
  • Posts: 1
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #2 on: 2011-09-05 15:00:07 »
Hej,

Vi undrar var vi hittar texturerna och hur man lägger till dessa. När vi kör assignment 1 får vi upp följande felmeddelande: "Texture sunmap.jpg is broken. Using default texture".

Annie

Offline MathiasHaage

  • Newbie
  • *
  • Posts: 33
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #3 on: 2011-09-05 15:56:16 »
Assignment 1 - solarsystem. It seems a texture file has been removed from the handout zip that should not. The res/textures/solarsys/sunmap.jpg is missing. Look at the homepage under assignments for a zip containing the file.

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #4 on: 2011-09-06 17:17:19 »
Assignment 1 - solarsystem. It seems a texture file has been removed from the handout zip that should not. The res/textures/solarsys/sunmap.jpg is missing. Look at the homepage under assignments for a zip containing the file.

Yes, a folder had been mistakenly omitted, thanks Mathias!

I will give attention to this on Friday's seminar.

Offline marcomalley

  • Newbie
  • *
  • Posts: 4
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #5 on: 2011-09-09 12:21:23 »
Hi,
Has anyone been able to get RenderChimpOSX to work with Xcode (MAC OSX LION)?
I have installed the necessary libraries (SDL.frameworks and SDL_image.frameworks) and my program compiles but it seems that the libraries can't be linked.

I don't know if this is the right way but I changed all the include file directories for "SDL.h" to SDL/SDL.h and it seems that it could find the files. However, in SDL_image.h the include file referrers to "SDL.h" and not "SDL/SDL.h". Is there a setting in Xcode that I am not aware of that fix the include header files so that I don't have to change all the "SDL.h" directories?

/Marc

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #6 on: 2011-09-09 12:57:23 »
A few items of potential interest based on discussions after today's seminar:

Getting the circle ring to work in assignment 1
Make sure the inner radius is less than the outer radius (or the ring thickness will be zero).
Make sure the radial resolution is at least 2 and the angular resolution at least 4 (preferably 20+).

Mac compatibility
One source of error can be missing frameworks. Select the project icon in XCode, and check if any framework items are written in red.
The SDL_image framework, for instance, can be found here http://www.libsdl.org/projects/SDL_image/.
As for other issues regarding Mac, please post them here and hopefully someone can help.

Also, please note that the EDA221-version of RenderChimp is slightly different from the version referred to in the documentation (http://cs.lth.se/english/course/eda221/renderchimp/), primarily in terms of available examples and such.

Offline marcomalley

  • Newbie
  • *
  • Posts: 4
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #7 on: 2011-09-16 11:52:19 »
Help with RenderChimp on Mac OSX, Xcode.

Hi
I have now solved the problem with the framework SDL and SLD_image.
I downloaded the frame work as described at http://www.libsdl.org/projects/SDL_image/.

I put the SDL.framework at /Library/Framework/
I put the SDL_image at //System/Library/Framework

and everything went well.

The only problem I have now is that it cant load a shader file.

I get this:

Done
SceneGraph setup...
  Setting up resource lists
  Setting up node list
  Initiating default objects
    Setting up failure shader program
Warning: Couldn't load shader source for "../../res/shaders/gl20/Default.gl20.vs" (/Users/marcomalley86/Documents/Computer Graphics/Assignments/RC_EDA221_handout/osx/../src/RendererGL.cpp, loadShaderProgram, 1001)

Program ended with exit code: 1


I would appriciate if someone know how to solve this problem.

Best regards.

Marc

Offline MrAndersson

  • Full Member
  • ***
  • Posts: 142
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #8 on: 2011-09-16 12:01:50 »
Quote
I get this:

Done
SceneGraph setup...
  Setting up resource lists
  Setting up node list
  Initiating default objects
    Setting up failure shader program
Warning: Couldn't load shader source for "../../res/shaders/gl20/Default.gl20.vs" (/Users/marcomalley86/Documents/Computer Graphics/Assignments/RC_EDA221_handout/osx/../src/RendererGL.cpp, loadShaderProgram, 1001)

Program ended with exit code: 1


I would appriciate if someone know how to solve this problem.

It just sounds like a search path problem.
Inside RenderChimp.h, around row 125 or so, you can fiddle with that.
It's probably just the wrong number of ../


Very brave to release the Mac-build, guys :)

Offline dt08fk5

  • Newbie
  • *
  • Posts: 3
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #9 on: 2011-09-16 16:18:45 »
I got it to work on mac..

First you need to get the frameworks (SDL and SDL_image). You can grab them here:
http://www.libsdl.org/download-1.2.php
http://www.libsdl.org/projects/SDL_image/
then copy both of the .framework files to "Macintosh HD/Library/Frameworks/"

Delete the current references to SDL.framework and SDL_image.framework in your project settings and drag in the new ones that you downloaded.

Make sure your project has 'i386' as Valid Architectures. (I think it will only compile in 32-bits).

That's about it I guess... :)
« Last Edit: 2011-09-16 16:20:28 by dt08fk5 »

Offline marcomalley

  • Newbie
  • *
  • Posts: 4
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #10 on: 2011-09-18 20:27:02 »
Hi, Big thanks. I got it to work. It was the linker paths.
Best regards
Marc



Quote
I get this:

Done
SceneGraph setup...
  Setting up resource lists
  Setting up node list
  Initiating default objects
    Setting up failure shader program
Warning: Couldn't load shader source for "../../res/shaders/gl20/Default.gl20.vs" (/Users/marcomalley86/Documents/Computer Graphics/Assignments/RC_EDA221_handout/osx/../src/RendererGL.cpp, loadShaderProgram, 1001)

Program ended with exit code: 1


I would appriciate if someone know how to solve this problem.

It just sounds like a search path problem.
Inside RenderChimp.h, around row 125 or so, you can fiddle with that.
It's probably just the wrong number of ../


Very brave to release the Mac-build, guys :)

Offline dt07fg3

  • Newbie
  • *
  • Posts: 13
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #11 on: 2011-09-19 11:23:59 »
How do I remove the little black hole at the poles of the sphere in assignment 2? I have the same problem with the torus.

Offline victor.gpaje

  • Newbie
  • *
  • Posts: 1
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #12 on: 2011-09-19 11:28:57 »
How do I remove the little black hole at the poles of the sphere in assignment 2? I have the same problem with the torus.
I guess it depends on the resolution
I don´t get to set up the texture coordinates of the sphere and torus, i dont see the logic, anyone??

Offline dt07fg3

  • Newbie
  • *
  • Posts: 13
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #13 on: 2011-09-19 13:22:27 »
does anybody know how to multiply mat4f and vec3f? do I have to do it manually? It seems like c++ has no way of doing common mathematical operations.

Offline Carl Johan Gribel

  • Newbie
  • *
  • Posts: 49
Re: EDA221 - Introduction to 3D 2011 HT1
« Reply #14 on: 2011-09-19 22:19:18 »
How do I remove the little black hole at the poles of the sphere in assignment 2? I have the same problem with the torus.

You can either make a special case in your tessellation routine for parameters you know will yield zero-vectors and set the tangent/binormal/normal manually (straightforward in the sphere poles e.g.), or, as is mentioned in the seminar, you can simplify the expressions somewhat and avoid zero vectors to appear altogether.