Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Custome Modal Theroy

$
0
0

@Mattlekim wrote:

Hello everyone. first of I need to make my own modal class. Load Modals from the pipeline is not an option within my games as then need to be loaded / generated in realtime.

So Iv been trying to workout a few things about how to do things.

So far I have This.

I have 2 arrays one for the originalVertexs and one the renderVertexs.
The originalVertexs contains all the vertex of the modal.
The renderVertexs applys rotation, adds the modals position in the real world, and will add any animation to them. I will do this for every vertex.

I also think that I will have to calculate the normal for all the rendervertexs each draw.

Now this seems like a hell of a lot of processing to be done on the CPU and its got me worried that my approce is completely wrong. Using Vector3.Transfarm 100s in not 1000s of times each draw seems that it will kill my game.

So my question is I'm I approcing this wrong, Is there anyway to offload this to the GPU I.e send all the Vertexs to GPU with a matrix and get it calculated on GPU?

Sorry if that's a stupid question almost all my expertise in gaming is with 2D games not 3D

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles