• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Atemu

Members
  • Content count

    19
  • Joined

  • Last visited

Community Reputation

263 Neutral

About Atemu

  • Rank
    Member

Personal Information

  1. Alright, thanks for your answers :)
  2. Hey,   I'm following a tutorial about OpenGL 4 and the author always use glDrawArrays (with simple shape) but I'm wondering how he could draw complex shape without using any Index Buffer ?
  3. Thank you for your help, I'm using GLM and I didn't know I could use the glm::vec3 in a VBO so that's why I tried to generate a float array of points extracted from the glm::vec3 vector. Everything is now working :)
  4. Well I tried to find where the problem is by using your idea (which I should have thought lol). The probleem seems to be with: float *points = cube.getArrayOfPoints(); And the code of that method: float *Mesh::getArrayOfPoints() { const int size = points_.size() * 3; float *array = new float[size]; int j = 0; for (int i = 0; i < size; i++) { array[j++] = points_[i].x; array[j++] = points_[i].y; array[j++] = points_[i].z; } return array; } As you can see my class Cube is inheriting from the class Mesh.
  5. To be honest, I've no idea where the problem is :(
  6. Hey,   When I'm trying to execute my program, I get this error: "malloc: *** error for object 0x100d8b770: pointer being freed was not allocated". I used gdb to see the stacktrace: #0  0x00007fff8c260866 in __pthread_kill () #1  0x00007fff8bcf135c in pthread_kill () #2  0x00007fff8c217bba in abort () #3  0x00007fff8b468093 in free () #4  0x0000000100001aae in Render::renderLoop () #5  0x0000000100001470 in RenderWindow::show () #6  0x0000000100000fab in main () The problem seems to come from the methode renderLoop() of the class Render. Here is the code of that method: void Render::renderLoop(GLFWwindow* window) { Cube cube; float *points = cube.getArrayOfPoints(); unsigned int vertexArrayObject = 0; glGenVertexArrays(1, &vertexArrayObject); glBindVertexArray(vertexArrayObject); unsigned int vertexBufferObject = 0; glGenBuffers(1, &vertexBufferObject); glBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject); glBufferData(GL_ARRAY_BUFFER, cube.getSize() * 3 * sizeof(float), points, GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, 0); glEnableVertexAttribArray(0); glBindVertexArray(0); // Vertex Shader std::string vertex_shader_file = readShaderFile("shader/test_vs.glsl"); const char* vertex_shader = vertex_shader_file.c_str(); // Fragment Shader std::string fragment_shader_file = readShaderFile("shader/test_fs.glsl"); const char* fragment_shader = fragment_shader_file.c_str(); unsigned int vs = glCreateShader(GL_VERTEX_SHADER); glShaderSource(vs, 1, &vertex_shader, NULL); glCompileShader(vs); unsigned int fs = glCreateShader (GL_FRAGMENT_SHADER); glShaderSource(fs, 1, &fragment_shader, NULL); glCompileShader(fs); unsigned int shader_programme = glCreateProgram(); glAttachShader(shader_programme, fs); glAttachShader(shader_programme, vs); glLinkProgram(shader_programme); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); while (!glfwWindowShouldClose(window)) { // Wipe the drawing surface clear glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Viewport glViewport(0, 0, getWindowWidth(), getWindowHeight()); // Draw //draw(); glUseProgram(shader_programme); glBindVertexArray(vertexArrayObject); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); glBindVertexArray(0); // Update other events like input handling glfwPollEvents(); // Put the stuff we've been drawing onto the display glfwSwapBuffers(window); } } I don't see where my pointer points is being freed :/ Would you have any idea ? Thanks in advance !
  7. Thank you so much !!! I removed the -c option accidentally :) It's now compiling !
  8. Hey,   I'm working on a small OpenGL project and I would like to use C++11 however when I'm trying to compile I get errors :/ Those errors aren't happening when I'm using C++98. g++ -std=c++11 -Wall -I/opt/local/include -Iinclude src/main.cpp -o src/main.o Undefined symbols for architecture x86_64:   "RenderWindow::init(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int)", referenced from:       _main in ccLk05Ex.o   "RenderWindow::show()", referenced from:       _main in ccLk05Ex.o   "RenderWindow::shutdown()", referenced from:       _main in ccLk05Ex.o   "RenderWindow::instance_", referenced from:       RenderWindow::getInstance()       in ccLk05Ex.o   "RenderWindow::RenderWindow()", referenced from:       RenderWindow::getInstance()       in ccLk05Ex.o ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [src/main.o] Error 1 The content of my main.cpp: #include <iostream> #include "renderwindow.h" int main() {     RenderWindow *renderWindow = RenderWindow::getInstance();     renderWindow->init("OpenGL Framework", 640, 480);     renderWindow->show();     renderWindow->shutdown(); } My OS is Mac OS X 10.9 and I'm using GLEW, GLFW and GLM.   Would you have any idea why I got those errors ?   Thanks in advance !  
  9. Solution found for the D3D11_CREATE_DEVICE_DEBUG flag:
  10. No, that's Microsoft...
  11. Amazing... Look at the information of the update: http://support.microsoft.com/kb/2670838  
  12. I also installed the update yesterday :(
  13. Hello,   I have a huge problem. I can't run my program in Debug, I use the D3D11_CREATE_DEVICE_DEBUG when I want to initialize DX 11. However, it works in Release mode. I tried toreinstall the DirectX SDK but it's not successfull Yesterday everything was working fine and not today   The source code that initialize DX 11: UINT createDeviceFlags = 0; #if defined(DEBUG) || defined(_DEBUG) createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; #endif D3D_FEATURE_LEVEL featureLevel; HRESULT hr = D3D11CreateDevice( 0, // default adapter md3dDriverType, 0, // no software device createDeviceFlags, 0, 0, // default feature level array D3D11_SDK_VERSION, &md3dDevice, &featureLevel, &md3dImmediateContext); if( FAILED(hr) ) { MessageBox(0, L"D3D11CreateDevice Failed.", 0, 0); DXTrace( __FILE__, __LINE__, hr, DXGetErrorDescription(hr), FALSE ); return false; } These are the information I get: First-chance exception at 0x7751c41f in SpinningCube.exe: Microsoft C++ exception: _com_error at memory location 0x0031ec88.. An undetermined error occurred hr=E_FAIL (0x80004005) Thanks in advance !
  14. [quote name='Atemu' timestamp='1358180060' post='5021432'] Few month ago I purchased the book "Introduction to game programming with DirectX 11" by Frank D. Luna and I'm reading it. [/quote] Can I reuse some elements from the book (source code, architecture) ? For example there is a GameTimer class that I would like to reuse ofr my project.
  15. I remember trying to recover the textures with the Revit API and after some search on Google I learned that you can't get the textures \o/ \o/ And of course, I didn't have access to the Autodesk Developper Network (too expensive)... Thanks for your advice ;)