» Trying to extend GetVertexData (DX11.GeomFX) by TexCoord1...
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Trying to extend GetVertexData (DX11.GeomFX) by TexCoord1...

Hi evvvverybody,
after four years i'm giving it another try:
Tampering meshes with two UV-sets in DX11 including reading/writing to disk. I hope we can figure this ut this time.
I started adapting GetVertexData and it's geometry shaders, but obviously the expansion does not work as expected.
Link to a new forum thread might follow ;)

blausand, Tuesday, Jan 22nd 2019 Digg | Tweet | Delicious 1 comments  
blausand 22/01/2019 - 12:19

This is the adaption of the geometryShader for UV1:

RWStructuredBuffer<float2> RWValueBuffer : BACKBUFFER;
ByteAddressBuffer vData;
uint buffersize;
 
[numthreads(256,1,1)]
void CS(uint3 dtid : SV_DispatchThreadID)
{
    if (dtid.x > buffersize) { return; }
    RWValueBuffer[dtid.x] = float2(asfloat(vData.Load(dtid.x * 40 + 32)),asfloat(vData.Load(dtid.x * 40 + 36)));
}
 
 
 
 
technique11 UV1
{
    pass P0
    {
        SetComputeShader( CompileShader( cs_5_0, CS() ) );
    }
}

See the hard-wired stride size of 40? I changed this from 32 for all four shaders but somehow i doubt that is correct.

  • 1

anonymous user login

Shoutbox

~18d ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~1mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~1mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~2mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~2mth ago

~2mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~2mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~2mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~2mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~2mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/