Jump to content

  • Log In with Google      Sign In   
  • Create Account

ATEFred

Member Since 19 Sep 2007
Offline Last Active Jul 23 2016 08:24 AM

Posts I've Made

In Topic: Deferred Decal Skinned Meshes

13 October 2015 - 10:22 AM

There are many options: you can generate the decal geometry in a GS, or on CPU, or you could render out the decal in texture space for your skinned mesh and apply it straight on the model depending on how your UVs are setup, etc. 


In Topic: What is the best indirect lighting technique for a game?

29 September 2015 - 04:08 PM

the best technique is highly dependent on your exact requirements. i.e. scene type, scale, amount of dynamic objects, lighting complexity, how many bounces you want, how many months or years you want to spend researching this, what your target HW is, etc. I think it is safe to say no GI technique is trivial to implement in a way that looks good in real life scenarios and runs fast (no light leaking, bugs, etc.) It's an area of active research, so you won't find ready made solutions.

Maybe it's best just to start by implementing some of the building blocks techniques, like basic RSM or lightmap baking, and taking it from there.
If you want to read up on modern approaches for dynamic GI, Remedy just released a paper going over their approach. Not miles apart is Ubi's solution used on Far Cry 3/4. Another trendy approach I have not seen used in commercial larger games yet is Voxel Cone Tracing. Google will lead you to a bunch of papers for all of these, but realistically this is not the type of thing where you just follow the paper and will get awesome results fast.


In Topic: 3d file format with skeletal animation and normal mapping

26 July 2015 - 12:05 PM

I use collada (dae) format models, I then wrote a converter that uses Assimp to read the data in and spit out my own optimized format. Collada is kind of a bloated format but I don't use the daes at runtime so it doesn't matter. Most people I know now use FBX, but I have not tried that so I can't comment on it.


In Topic: Terrain tesselation and collision

19 December 2014 - 06:46 AM

In some cases you might not be able to get the same level of detail on your physics terrain and tessellated terrain mesh (for reasons xyz). On one project I worked on some clever guys at NV came up with an approach which would evaluate height of the ground on GPU at the positions of the various character bones, and then offset the bones if needed, to make sure that there was no issues with the characters sinking into the ground. Overall it worked really well. (technically not correct since you would have cases were one leg would be shorter than the other for example, but not very noticeable in game)


In Topic: Inner edge detecting

22 November 2014 - 06:13 AM

 

A pretty effective and simple way can be analysing your depth buffer. Using a sobel filter is pretty common for that kind of operation. http://homepages.inf.ed.ac.uk/rbf/HIPR2/sobel.htm


I heard of it. I will try to get hang of the theory explained in your provided link.

 

That was just the first link I found on google. It's pretty simple in practice: sample your depth buffer for the point your are shading and the surrounding points, compute how much variance there is over the kernel, and this will tell you if you are on/close to an edge or not. You can then shade the point differently based on that. Kernel size will impact how wide your filter is. (though you can control the thickness in other, more performance friendly ways as well of course)


PARTNERS