How do you get vertex buffer of mesh? [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How to get vertex information of mesh?

If you mean from an ID3DXMesh then its just a matter of calling GetVertexBuffer and GetIndexBuffer. To get additional information, such as the vertex structure, you can call GetDescription. Finally to get the information about how the mesh should be rendered (such as which verts use the same material) the information can be obtained by calling GetAttributeTable. You do, though, need to know which attribute id maps to which texture.

Related

Construct wireframe model of a face image [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to write a program that will construct a wire-frame model of a face image and display it as 3d. Can any body help me about how to do this ?
I have some knowledge about opencv and opengl

Is performance affected if multiple threads use the same object? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
The object in this case is a dictionary with some search methods. Only reading operations.
Quick answer: No.
Quite the opposite, it will speed up your program, especially if you have an object that needs to load a lot of data into memory.
Just make sure nothing can write to the object while the threads run.

Water particle model [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to design a physical particle system in order to model/simulate a flowing water on a terrain. I want to use C (maybe C++) in order to do that. Do you guys know any good examples or a good starting point to do this?Thank you!
maybe can be useful Fluid simulation library

Draw image from text file using OpenGL [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have a text file containing the vertices of a triangle. I would like to draw this triangle in an OpenGL window; however, I am quite new to OpenGL and am not sure where to get started.
Can anyone point me in the right direction or provide a general outline as to how I might get started with this problem? Thanks in advance for any help.
This should help you.

C++ "infinite" length text [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
my task is to make a program that can store arbitrary long text in c++.
I have no idea how to solve this.
Also, you cannot use STL.
someone please help
allocate initial buffer (malloc())
store data into buffer until full (strcpy(), strcat(), memcpy()...)
reallocate to a bigger buffer (realloc())
goto 2