GithubHelp home page GithubHelp logo

kalebdark / opengl-tutorial-org Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 0 B

Automatically exported from code.google.com/p/opengl-tutorial-org

CMake 10.05% Makefile 0.04% C++ 85.16% Batchfile 0.04% Python 4.35% C 0.35%

opengl-tutorial-org's Introduction

KalebDark

Jekyll & Hide

opengl-tutorial-org's People

Watchers

 avatar

opengl-tutorial-org's Issues

Textures aren't displayed properly in Chapter 5 - A Textured Cube

I've built the sample using VS2010, running Win7 x64 with an Nvidia 9600GT.

I've attached a screenshot.

In the g_uv_buffer_data's initializer The V items in the (U, V) pairs have a 
"1.0f-" expression in front of them. Removing these produces the proper as 
shown in the second attachment.

Why was 1.0f- added?


Original issue reported on code.google.com by andrej.mitrovich on 3 Mar 2014 at 3:45

Attachments:

const issue on initial build

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 22 Dec 2013 at 1:45

Tutorial 11 is missing a call to glfwPollEvents

If you do a diff between Tutorial 10 and 11 you'll see that the call to 
glfwPollEvents() is missing. This causes the app in tutorial 11 to not catch 
the Escape key in order to exit.

Original issue reported on code.google.com by andrej.mitrovich on 4 Mar 2014 at 9:15

Syntax errors in tutorials 9 and 10

In tutorials 9 and 10 I get these errors in a recent version of Firefox (tested 
on IE too):

"Syntax Highlighter: Can't find brush for plain".

See the attachment.

Original issue reported on code.google.com by andrej.mitrovich on 4 Mar 2014 at 4:17

Attachments:

Can hide the mouse cursor and make controls handling a little simpler

Just a small suggestion for the tutorial:

If you call the following in your main routine (in the setup before rendering):

-----
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
-----

The mouse cursor will be hidden, which is nicer than to have it sit in the 
middle of the screen. Then you would have to change the 
computeMatricesFromInputs() function in the controls.cpp file:

-----
void computeMatricesFromInputs() {
    // ...

    // Reset mouse position for next frame
    glfwSetCursorPos(window, 0, 0);  // note: 0, 0

    // Compute new orientation (note: -= not +=)
    horizontalAngle -= mouseSpeed * (float)xpos;
    verticalAngle   -= mouseSpeed * (float)ypos;

    // ...
}
-----

Note how the code becomes simpler. Hope this helps, and thanks for the 
tutorials! :)

Original issue reported on code.google.com by andrej.mitrovich on 3 Mar 2014 at 5:50

Misc: Picking with a Physics Library Profile Error

In file misc05_picking/misc05_picking_BulletPhysics.cpp the (line 99) 
OPENGL_PROFILE is set with GLFW_OPENGL_COMPAT_PROFILE which later causes my 
window to become NULL (Printing an inaccurate error message. Other tutorials 
have it set to GLFW_OPENGL_CORE_PROFILE. When I changed it myself to the core 
profile, the error went away.

96:  glfwWindowHint(GLFW_SAMPLES, 4);
97:  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
98:  glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
99:  glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE);
100:
101: // Open a window and create its OpenGL context
102: window = glfwCreateWindow( 1024, 768, "Misc 05 - Bullet version", NULL, 
NULL);
103: if( window == NULL ){
104:         fprintf( stderr, "Failed to open GLFW window. If you have an Intel 
GPU, they are not 3.3 compatible. Try the 2.1 version of the tutorials.\n" );

So to fix: change line 99 to use GLFW_OPENGL_CORE_PROFILE.

My Information:
OS:        Ubuntu 14.04 64-bit
Processor: Intel Pentium CPU G860 @ 3.00GHz x 2
Graphics:  Gallium 0.4 on AMD CYPRESS

Original issue reported on code.google.com by [email protected] on 30 Oct 2014 at 6:40

use OpenGL 3.2 and later on Mac OS

I'm a newbie in OpenGL programming and i very like this tutorial.

I found that when you want to compile these on a mac os like lion, you should 
use glfw2 because of compatibility of OpenGL just as wrote in the src file. But 
in fact, GLFW_OPENGL_FORWARD_COMPAT wil repair this issue. here are detials:

OpenGL 3.2 and later on OS X

Support for OpenGL 3.2 and above was introduced with OS X 10.7 and even then 
only forward-compatible, core profile contexts are supported. Support for 
OpenGL 4.1 was introduced with OS X 10.9, also limited to forward-compatible, 
core profile contexts. There is also still no mechanism for requesting debug 
contexts. Versions of Mac OS X earlier than 10.7 support at most OpenGL version 
2.1.

Because of this, on OS X 10.7 and later, the GLFW_CONTEXT_VERSION_MAJOR and 
GLFW_CONTEXT_VERSION_MINOR hints will cause glfwCreateWindow to fail if given 
version 3.0 or 3.1, the GLFW_OPENGL_FORWARD_COMPAT hint must be set to non-zero 
and the GLFW_OPENGL_PROFILE hint must be set to GLFW_OPENGL_CORE_PROFILE when 
creating OpenGL 3.2 and later contexts and the GLFW_OPENGL_DEBUG_CONTEXT hint 
is ignored.

Also, on Mac OS X 10.6 and below, the GLFW_CONTEXT_VERSION_MAJOR and 
GLFW_CONTEXT_VERSION_MINOR hints will fail if given a version above 2.1, 
setting the GLFW_OPENGL_PROFILE or GLFW_OPENGL_FORWARD_COMPAT hints to a 
non-default value will cause glfwCreateWindow to fail and the 
GLFW_OPENGL_DEBUG_CONTEXT hint is ignored.  

Original issue reported on code.google.com by [email protected] on 5 Dec 2014 at 2:57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.