Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have just started with C++ and would like to program and little with 3d objects. Now I could use C++ or Objective C it doesnt matter.
What books are good with 3d objects?
I want to load a 3d object/file created by a 3d application, and then manipulate the 3d object.
Move it on the screen, rotate it etc.
Where is a good place to start to learn this? A book, tutorials etc.
Lesson 31 on gamedev.net should get you started.
Here's a pretty nice site with 3d engine tutorials: http://www.spacesimulator.net/wiki/index.php/3d_Engine_Programming_Tutorials
I have just started with C++
Woah there, have you done any C programming? In order to get anywhere (besides stuck!) in OpenGL, you really need to know C well, since OpenGL is written in C. At the very least you need to know all about pointers, functions, and arrays.
I'd also suggest getting started with 2D objects, and then going to 3D. There really isn't any difference with OpenGL. To render a 2D object, you render the same exact way as a 3D object, but you give every object the same z (depth) value.
Although most of these are deprecated, I'd suggest starting by learning Immediate Mode, moving towards Display Lists, then Vertex Arrays, and finally Vertex Buffer Objects and Index Buffer Objects. These are all different methods of how the GPU gets your vertex/color/texture information, and they all vary in speed.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Hello fellow programmers. I've been to school and learned various things about graphics programming. But one thing we didn't learn, was which libraries were aviable. We mostly looked at OpenGL so that's what I've been doing the last weeks. Learning the modern version.
The thing is that I've come to think that OpenGL doesn't offer the easiest way of loading 3d animated models. And everything seem very, from the ground up... But I guess that is to expect, as OpenGL is a very low end library.
But I'm looking for a library that can load 3d models easily. As I've tried setting up my own, and it's not having the best of progress. And I'm willing to bet that someone else have already made an easy solution that beats my work by a long shot. I tried looking at the wiki page for 3d libraries. But there are so many to choose from... Any reccomandations?
You can use Lib3ds.
Also GLM can be used to load models.
My recommendation would be to use some scenegraph like OpenSceneGraph if you are looking for some serious application development in OpenGl. OpenSceneGraph supports wide array of formats through plugins.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a library I can use for C++ or MATLAB so that I can do some rigid-body and particle simulations which I can then render and view.
I'd like to be able to use a library to draw particles or rigid bodies and then programmatically specify rotation, translation, etc.
Additionally, I'd like for the library to have the smallest learning curve possible.
Thanks in advance for your help!
Use Open Scene Graph in c++:
http://www.openscenegraph.org/projects/osg
That library wraps openGL and allows great rendering and has some really good tutorials.
http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials
You will be able to define objects positions by their transform from the 0,0,0 frame allowing to to move objects easily in a physics emulation style.
Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am creating simulation that models how an gas behaves in a container. I have collision checking set up, however I would like to draw the data on screen to make sure it is working correctly
All I need is a simple way to draw simple shapes such as circles to the screen using c++. these shapes do not have to look great, just function.
I may want to move my simulation from 2D to 3D in the future as well - so a library that has 3D capabilities would be good.
Remember I will be looping through and drawing several hundred gas molecules, so fast would also be good.
I am fairly new to c++ as a language so go easy. My IDE/compiler is VS 2010 Professional.
I have already used google - but I can not find any good installation guide for installing the library. So an installation guide would be a big plus
Look at SDL with SDL_gfx. You can then switch to SDL/OpenGL to do 3D.
I would recommend OpenGL, it's easy to use for your task. Also it's cross-platform and you can easily switch to 3D.
OpenGL is one possibility, though there are also other libraries built on top of OpenGL that might be useful as well.
Edit: OpenGL itself is installed as part of the OS. Headers and libraries for OpenGL 1.1 are included with VS 2010, so if you don't need newer features, you're already set. If you want to use newer functions, you probably want to use GLEW or GLEE.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to draw a scientific graph (for example, a line or bar graph) and then render it in my application, which uses OpenGL for all display-related purposes.
What is the best way to do this?
Does anyone know of a plotting library for OpenGL?
I haven't been able to find one, and the best thing I've come up with so far is to use LibGD or PlPlot to render my image, save to PNG, and then load that same PNG as a texture for an OpenGL quad. Does anyone have any suggestions for a better way to to this, or know a library which could help with my task?
MathGL is cross-platform GPL plotting library which can use OpenGL for drawing (class mglGraphGL).
However it can produce a bitmap (or vector EPS/SVG) too. It is rather fast and don't require windows (can be run in console).
Rendering to PNG and using this as a texture is actually a reasonable way to solve your problem. If you need a "better" way, all depends on what you consider "better". If it's about scalable graphics, use the SVG output of PLPlot and render the vector shapes directly in OpenGL. If it's about avoiding intermediate files, you could extend PLPlot (LGPL licensed) to pass the data as a chunk in memory.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm pretty familiarity with c++. I'v made a few games like tetris and solitaire with it. But what I would really like is some nice textured graphics for those games :-p GDI just isn't doing it for me anymore.
Really, all I would need to know is:
DX scene initialization
making something simple like a round rectangle and basic shapes
ability to move those shapes in X and Y
add basic bitmap texture
dispose of the objects
anything that would cover these concepts would be really useful
Thanks
This is a good tutorial. I've started with it and it was helpful. That is not a book, but good enough tutorial with step-by-step explanations.
I've got a copy of Beginning DirectX 10 Game Programming. I haven't done much with it (lack of time, mostly), but it is well-written and covers the basic concepts step-by-step and has the complete code you need to accomplish the tasks in the chapters.
I created a small 2D game (Othello for a school project) using PNGs loaded at run-time, and I could not have done it without the book (I am a complete beginner in Windows and DirectX programming :D).
I would really suggest you to take a look at the DirectX SDK. There are tutorials on how to do all the basic stuff, like initializing a scene, simple primitives, transforming them and texturing them. Once you feel comfortable with that there's a LOT more to dig into, e.g. like how vertex, pixel and geometry shaders work.
Introduction to 3D Game Programming with Direct X 9.0c: A Shader Approach by Frank Luna is probably the best "intro" game programming book out there. Enough material to get something interesting on screen and start playing around. I can't recommend it enough.