Jump to content

SpiderPig

Developers
  • Posts

    2,277
  • Joined

  • Last visited

Posts posted by SpiderPig

  1. I can also see that all the origins for the tiles are different.  I'm not sure how your exporting but it might be the problem.  Make sure that each tile has the same origin (one of the corner perhaps) and then move that tile to the world origin before export as FBX.  That way the you can rotate the tiles in Leadwerks and they'll all rotate about the same point.

    BlenderTiles.thumb.png.20832e290a90bef71db021849cedc7d6.png

  2. Curious on the exact difference between HOOKID_TRANSFER and HOOKID_RENDER?  I mean they both call the same function type but I take it they call it at different times within Ultras rendering process?

  3. Yeah me too.  I think the thing that really makes the grass pop is the sort of ambient occlusion where I make the roots darker than the tips.  I'll post a before and after pic later.

  4. I'd like to try using these now.  Is this the way to use them? I found this here.

    //Load compute shader
    auto module = LoadShaderModule("Shaders/Compute/test.comp.spv");
    auto shader = CreateShader();
    shader->SetModule(module, SHADER_COMPUTE);
    
    //Create work group
    int workercount = 8;
    auto workgroup = CreateWorkgroup(shader, workercount, workercount, workercount);

    I couldn't find CreateWorkgroup() in the API though.

  5. Hmm, actually I don't think my normals are right... I'm multiplying the local vertex positions by a local matrix to rotate the blades but the normals are unchanged.  Can I rotate normals by multiplying by the same matrix as I do the vertices?

  6. Oh, that reminds me.  Inside that function in Lighting.glsl, RenderLight() was using the input vertexWorldPosition rather than the argument "position".

    RenderLight(lightIndex, material, materialInfo, vertexWorldPosition.xyz, normal, v, NdotV, f_diffuse, f_specular, renderprobes, ibldiffuse, iblspecular);

    I thought it should use the argument 'position' seeing as it is passed to it but not sure... I don't know if it's something the user could end up editing in the UserFunction?

×
×
  • Create New...