• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Royma

  • Rank

Personal Information

  • Interests
  1. Now I'm tring to implement a PBR lighting shader.I've learnt that I should calculate the BRDF, then multiply it with light color and cos theta according to the rendering equation.Now I need to ensure all the diffuse and specular are less than 1.A simple method is to calculate the specular brdf first,then the income of diffuse are only 1 - specular.But when I use the cook torrence model I can only calculate one specular ray in current direction, but there are a lot of rays are reflected in other directions at the same time.If I use 1- current specular ray, I can only ensure all the diffuse and this specular light are less than 1,but how can I ensure all the reflected rays and the diffuse light are less than 1?
  2. I'm using a plugin called Coherent UI for UE4 to present html pages in game.There's a problem that same html page presented in web browser and in the game is different.In that page there's a svg line. <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" y1="0" x2="200" y2="200" style="stroke:rgb(255,0,0);stroke-width:2"/> </svg> When I set the stroke-width at a larger value, 50,100... it's length also became larger. The first one, stroke-width=2. The second one, stroke-width=50. The third one, stroke-width=50 but in Chrome and Firefox. I need the edge align to the center of the circle.And I found that if I set the stroke-linecap at "square",the line in web browser is same as the second.So I tried to set stroke-linecap at "butt", then the line in browser became correct.But it doesn't take effect in the Coherent UI.Is it a bug in the plugin?How can I fix it? Thanks.
  3. @JoeJ Thank very much.What kind of BVH do you use?Is it good for me too?
  4. In Computer Graphics, there are two important data structures, The BSP Tree and the Octree.I want to use them to fast detect collisions.I mainly use it to get visible objects in a limited space from the whole scene,or to simulate physical motion,or to implement Ray-Traced renderer...Some people told me BSP is faster,and the other said Octree is faster.Who should I believe? Thanks
  5. I know that the BRDF can be used to calculate one ray casted from a specific incidence direction to a view direction. I also know that I can use the Monte Carlo method to integrate the BRDFs casted from all the incidence directions to one view direction in offline rendering. But as far as I know the Monte Carlo method is rather expensive in real time case, so I want to understand how the real time game engines such as unreal engine 4,unity 3d efficiently integrate the BRDFs?
  • Advertisement