0
votes
0answers
37 views

OpenGL - using gluSphere

I have an OpenGL code that currently draws several spheres at different locations. I generate the vertex buffer data (and normal data) myself. However, to simplify the code and increase efficiency, I ...
1
vote
1answer
32 views

How should I handle a modelview stack with multiple shader programs involved?

I'm building a framework where each object has an associated program and each object has a 'draw' method. What is the best choice, to have a single modelview stack handled by a Renderer class or to ...
0
votes
2answers
88 views

Achieving a fixed frame-rate with varying scenes

I am working on an OpenGL 3D model viewer app for iOS. I have to load, view and navigate extra detailled 3D models on an iPad. I hardly achieve 2 fps, if i load and navigate a very complex model. I ...
1
vote
1answer
109 views

Most common format & good practice for 3D models for a placeholder in a PC game [closed]

I'm soon starting programming my first 3D game in OpenGL, C++, for PC. It's going to be a top-down space-based game. Early on I want to create basic placeholder 3D models for my objects, and then in ...
1
vote
1answer
134 views

Efficient way of loading wavefront models in openGL game

In my game, a RTS game, the units are all wavefront obj. all their animation frames are each seperate wavefront obj file. ie. without any skeletal animation; fully rigid models. So when many units are ...
2
votes
1answer
226 views

Assimp renders a partial amount of vertices

I'm building a 3D game, and i'm trying to load some assets with the nice Assimp library. The model should look like the one in the first picture, but instead, it takes the form of some kind of ...
0
votes
0answers
73 views

Rendering a model with transparent or translucent uv map applied doesn't work

Before I try to make anything transparent, the model renders nicely. When I change the uv layout so that one piece of the model will be transparent, it renders horribly. This is the result with a ...
0
votes
0answers
66 views

Where can I find free simple 3D models? [duplicate]

I'm learning OpenGL. Unfortunately can't create 3D models, but I would like to write some really simple games, to improve my programming skills. I need some really basic .obj file, which has one bmp, ...
0
votes
1answer
110 views

How to implement “model quality” in OpenGL

In many games, there is an option named: "Model Quality", which ranges from Low to High. Low model quality simply removes a lot of vertices from the model, to make it faster, while High preserves the ...
-1
votes
2answers
612 views

Need help drawing obj file! [closed]

I'm using GLFW and I want to draw a obj file. How are they drawn? I know how to draw 3D in OpenGL but when I open the obj file I see "v"s, "vn"s, "f"s, "vt"s, what are these? I don't know how to read ...
5
votes
3answers
5k views

Importing and Displaying .fbx files

I have a little problem with importing/displaying .fbx files. I checked the examples but the ones which I am intrested the most (animation and texture) are badly documented for understanding by ...
0
votes
1answer
455 views

Importing Models from Maya to OpenGL

I am looking for ways to import models to my game project. I am using Maya as modelling software, and GLUT for windowing of my game. I found this great parser, it imports all the textures and normal ...
0
votes
2answers
2k views

I have created character human in blender. How to use it in Java/Android

Title says it all pretty much. I can't find anything online which explains it in details. I have created a character model in Blender and I want to use it in Android app. I want to make it move. ...
0
votes
1answer
529 views

3DS Max exporting too many vertexes for model

I have a sample model of a cube and a buddha downloaded from internet in 3ds format which I can load correctly into my program and view them without problem, but wanted to try and create my own model. ...
1
vote
1answer
715 views

Child transforms problem when loading 3DS models using assimp

I'm trying to load a textured 3d model into my scene using assimp model loader. The problem is that child meshes are not situated correctly (they don't have the correct transformations). In brief: ...
3
votes
2answers
3k views

Issues glVertexAttribPointer last 2 parameters?

Introduction Hello I will start out by explaining my setup, showing samples as I go along explaining the situation. I'm using these tools: OpenGL 3.3 GLSL 330 C++ Problem The problem ...
5
votes
1answer
1k views

Problem with Assimp 3D model loader

In my game I have model loading functions for Assimp model loading library. I can load the model and render it, but the model displays incorrectly. The models load in as if they were using a seperate ...
0
votes
1answer
120 views

Problems in exporting terrain from autodesk 3ds

i am trying to make small counter strike sort of game and for the terrain part i have exported the terrain in 3ds format from Autodesk 3ds-max and imported the same in opengl using lib3ds. Its working ...
0
votes
2answers
484 views

How do I create the playing field for my game?

I want to create a game with playfield as shown in the video in OpenGL www.youtube.com/user/stanfordcs248 I have fair knowledge of OpenGL and I know this playfield can be rendered using several ...
10
votes
3answers
4k views

Animation in OpenGL using 3D Models

I have created a model in Blender. Now i want to read that 3D model in my c++ program. I figured that a model can be exported to various file formats e.g. .obj, .3ds or COLLADA and then can be read in ...
8
votes
2answers
6k views

Most common 3D model format for opengl

I'm a novice that is starting to play with OpenGL ES on Android devices. To practice OpenGL I wanted to create a small game engine and so I was wondering what the best 3D model file format would be. ...
7
votes
1answer
714 views

Do I really have to write my own optimized model format?

So I'm a brand new noob to the world of game dev and I'm starting off by trying to write my own game using C++ and openGL. I'm getting into loading models etc and while searching around for "the best ...
4
votes
1answer
778 views

Middleware to Bring 3D Meshes into OpenGL ES 2.0

Say I develop a game for mobile platform running OpenGL ES 2.0. I have done 2D part, and now I wish to import some 3D objects. The imported 3D objects must contain the following: Vertices positions ...
5
votes
4answers
3k views

Can't understand these UV texture coordinates (range is NOT 0.0 to 1.0)

Hey, hello guys, I am trying to draw a simple 3D object generated by Google SketchUp 8 Pro onto my WebGL app, the model is a simple cylinder. I opened the exported file and copied the vertices ...
3
votes
1answer
480 views

Problem with my model loader?

I'm trying to load MD2 models (stolen from Cube) and my loader seems to be loading the models fine, but I can't say the same for the drawing of the model. Here's my code: typedef float vec3_t[3]; ...
-3
votes
1answer
610 views

Why is this .obj loader not drawing anything but the included .obj?

I've been adapting a tutorial on .obj file loading on the windows system to glut. The thing's not drawing a thing except the "Foot.obj" file that the tutorial included and I'm going kinda nuts trying ...
3
votes
3answers
3k views

OpenGL and 3ds model loading: Path of least resistance?

Hey guys, im working on a final class project for a graphics class, and me and a teammate are making a simple 3d tower defense game. We're currently planning on using 3ds models and drawing them ...
4
votes
2answers
1k views

Lighting Objects with Textures - OpenGL

I'm trying to get lighting effects on a textured object; I'm using .obj and .mtl files to define them. No matter what I try my object is either invisible, unlit (plain texture), or completely white. ...
7
votes
1answer
2k views

Which c/c++ model animation library for OpenGL [closed]

I'm fairly new to game development, played around with xna before and just learning OpenGL & c now and I'm interested to know which c/c++ based model animation libraries are out there and which ...