Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


TheChubu

Member Since 13 Sep 2012
Offline Last Active Yesterday, 06:29 PM

Topics I've Started

Dark theme

08 May 2015 - 08:15 PM

HOW DO THEY WORK!?

 

I've seen IPBoard forums using skins from here (30 bucks per skin though).

 

In any case, any dark theme would be nice.


Skeletal animation issues

26 March 2015 - 04:50 AM

Well, look at this: 

 

I41MmgB.jpg

 

The wireframe is the actual geometry. I bake the bind pose on the vertices. The garbled polygons and pink pixels (NaNs) is the result of my awesome skeletal animation. Those garbled polygons should resemble the humanoid walking, but It kinda doesn't resembles that... at all.

 

My understanding is that each joint can be represented with a rotation matrix, and that rotating along the hierarchy of joints, you get the final position.

 

What I do is to have a two dimensional array Mat3f[][], first index is the joint, second you would index into a specific frame of that joint. The idea is to lerp between the frames, according to the animation timer and current delta, and multiply the resulting interpolated matrix by the parent bone (which it should be already an interpolated matrix of the current frames of the parent joint).

 

Now pardon my Java but this is my code to compute each joint:
Spoiler
 
Aaand this is the vertex shader: 
Spoiler
 
If you need more information just ask.

Graphic corruption

19 March 2015 - 07:28 PM

EobyVjA.jpg

 

There are three errors in that pic:

  1. Lights look weird (light volume doing stenciling on pixels in front of the volume).
  2. Black squares on stuff (no idea on that one).
  3. Normals are inverted (light is coming from above to the right, yet the walls look lit from below to the left).

 

That one is running on an ATi HD 4250 with most recent drivers available (legacy, 2013). This works fine on an HD5770, GTX 560 Ti and ION 2 (aka GeForce GT 210).

 

Its a deferred renderer, I use:

  • RGBA8 for rgb albedo and a for specular.
  • RG16F for encoded normals.
  • R11_G11_B10F for light accumulation buffer.
  • R11_G11_B10F using the x component now for storing shininess.

For the lighting pass I do a fullscreen pass for directional light, and two passes for point lights (one stencil marking pixels in front of the volume, then regular computing lighting from those marked pixels, using stencil increment operator in first one, stencil decrement on the second one).

 

 

I have no idea what is failing exactly but maybe some of you have seen these glitches and can point me in the right direction. I saw the black square errors on the GTX 560 Ti if I had a bloom pass enabled (downscale, blur, upscale, output hi pass + original), but it was much less pronounced, and that bloom pass is disabled in that picture.

 

I have debug output and I see no errors.

 

EDIT: Oh I'm using OpenGL 3.3 core by the way, I use two GLSL extensions:

 

GL_ARB_shading_language_420pack

GL_ARB_shading_language_packing

 

I put both as "require" and I'm actually only using the first one to define fixed UBO bindings.


Why delete the site clone thread?

17 March 2015 - 09:14 PM

That, why?


Journal entry view count doesn't works

27 February 2015 - 09:46 AM

Well that, like all of the newer journals right now have a view count of 0. Older journals seem fine though.


PARTNERS