» 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

~11h ago

~3d ago

joreg: Two #vvvv workshops this week in #berlin: Friday: Physical Computing, Saturday: Computer Vision. Tickets: upcoming-full-day-vvvv-gamma-workshops-in-berlin

~3d ago

joreg: @cznickesz also feel free to join our chat for such questions: chat

~3d ago

cznickesz: @joreg: Yeah, I´ll give it a try! Thx

~3d ago

joreg: @cznickesz: we're hoping this week. but depends on feedback. please test your project and let us know if it works.

~3d ago

cznickesz: @joreg: I should stop asking my questions so cryptic ;-) So right away: is final Beta39 hours, days or weeks away?

~3d ago

joreg: @cznickesz: the idea of an RC is exactly to make sure your projects will work with it. your last chance to report problems with b39.

~3d ago

cznickesz: So how "RC" is the "RC3"? I have to update an old project soon and I´m wondering if I should wait and directly update to Beta39

~4d ago

joreg: @takuma, the "one frame" issue was fixed in RC3 for beta39, see: beta39-release-candidate

~4d ago

Takuma: @joreg thank!! Ill try this. Are there a way to send video texture from vvvv to vl? fromimage node in vl somehow only sends 1 frame