S
S
s2sk13372017-11-13 12:09:38
3D
s2sk1337, 2017-11-13 12:09:38

Editing 3d objects in real time?

Hello. Started learning DirectX 11
a month ago . Today I wrote my own format of objects and their reading. Now you need to make an editor for these objects in the engine. (yes, a bicycle, yes, there is already an obj and 3ds max format, I'm just not interested in making a game in programs already created by someone) And there was a difficulty with changing vertices in real time and their indices. It turns out that you need to create a buffer for vertices and indices every time? Isn't it too costly? After all, the buffer is created for some time and there will be lags when editing.
d3dDevice->CreateBuffer
One more question. How can you automate the creation of indexes for vertices? After all, the editor should have such functions as joining two vertices into one (if they are too close), splitting the object into two parts, into three, etc. In this case, indices also need to be changed somehow.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kormishin, 2017-11-13
@coremission

You wrote about some problems, but it is not clear what problem you are solving at all.
Are you trying to write a 3d editor?
About buffers - create a larger buffer with a margin. Both for vertex and for index.
After all, when you draw, you pass the parameter to the drawing command how much to draw.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question