Tagged: C++ Toggle Comment Threads | Keyboard Shortcuts

  • frankiezafe 20:34 on 2017-03-11 Permalink | Reply
    Tags: , C++, , , ,   

    flat network (no Z)

    slight Z curvature

    strong Z curvature

    strong Z curvature

    strong Z curvature

    After a bit of struggle with the management of a 3d grid, the advantage is there: it’s now easy to generate a road network in 3D, with automatic connection of the streets while generating them. It’s a simple brute force & unsupervised generation algorithm, but it is memory efficient and error less.

    Just to explain a bit the images above: the cubes are the cells of the road grid. Only the required one are created during road generation. There are connected to each other to speed up the proximity tests once a now road segment is added. I’ll measure the generation time soon, but it’s already quite fast regarding to the first test made several days ago in processing.

  • frankiezafe 17:45 on 2017-03-11 Permalink | Reply
    Tags: , C++, ,   

    Generation of a 3d grid of cells, each one of the cells knows who are the surrounding ones. This to speed up searching around the current cell.

    To generate a unique id for each one of the surrounding cell, and quickly find the current cell in the surrounding cell, i used a python that generates a list of enum and a map of opposition. Therefore, when I create a new cell in the grid, its very fast to register it into all the existing ones.

  • frankiezafe 22:39 on 2017-02-10 Permalink | Reply
    Tags: , C++, , , ,   

    I’ve learned something really important today: an OpenGL context can be accessed by one and ONLY one thread! See Under what circumstances would glGenBuffers/glGenBuffersARB fail?.

    And this is the first time I feel annoyed by the singleton approach of Ogre3D. In my asset converter util, I use Ogre object, the MeshManager mainly, to convert xml files to .mesh files. Due to the limitation of OpenGL and the singleton pattern, I can’t declare a new OpenGL context in my conversion thread by using the Ogre managers…

    I struggled for several hours with that before find the post on stackoverflow.

    This implies a freeze during mesh conversion, wich prevent me to animate a progress bar and keeping the conversion strickly in background.

    I’ll work on the loading and display of the processed meshes next week.

  • eurydice 11:23 on 2017-01-17 Permalink | Reply
    Tags: C++, ,   



    First little game without pretention done while learning Openframeworks and C++ during my traineeship !

  • frankiezafe 21:32 on 2016-09-27 Permalink | Reply
    Tags: C++, , guidelines   

    Superb presentation about “Common C++ Performance Mistakes in Games” by Pete Isensee at GDC 4

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc