Questions tagged [geometry-instancing]

51 questions
0
votes
0 answers

drawElementsInstanced with OpenGL and Java

I'm trying to render one triangle 100 times on different locations with glDrawElementsInstanced(). I'm not getting it the right way. I tried different tutorials, but their all for c++ and not for java. The last one is this. Here is my example…
0
votes
1 answer

XNA Hardware Instancing - faces drawn in wrong order around icosphere

I'm trying to implement the InstancedModelSample code into my game, and it's worked perfectly except for one problem - The edges on my icospheres are being drawn between the wrong vertices and it's just drawing a garbled mess. When I used to draw…
0
votes
1 answer

XNA Hardware Instancing: Mesh not rendered completely

I have implemented basic Hardware model instancing method in XNA code by following this short tutorial: http://www.float4x4.net/index.php/2011/07/hardware-instancing-for-pc-in-xna-4-with-textures/ I have created the needed shader (without texture…
Eudaimonium
  • 93
  • 1
  • 6
0
votes
2 answers

DirectX9 Use Geometry Instancing for a Mesh with multiple materials

I am trying to have a flexible Geometry Instancing code able to handle meshes with multiple materials. For a mesh with one material everything is fine. I manage to render as many instances as I want with a single draw call. Things get a bit more…
Liemarzac
  • 1
  • 2
0
votes
1 answer

How do I instance in a geometry shader in DirectX11?

I know that in the vertex shader you do it like this: PixelInputType TextureVertexShader(VertexInputType input) { PixelInputType output; // Change the position vector to be 4 units for proper matrix calculations. input.position.w =…
Brail Brailov
  • 71
  • 1
  • 2
  • 5
-2
votes
1 answer

Maximum value of OpenGL attribute divisor

When drawing instanced in OpenGL, attribute divisor can be set only to 255 as maximum value, so to combine big mesh I have to separate into several instances. I need to understand more about divisor in OpenGL, does maximum limit depend on driver/GPU…
Manh
  • 1
  • 1
1 2 3
4