Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 18 Nov 2005
Offline Last Active Yesterday, 10:41 PM

#5134236 I feel like a Noob C++ GL 4.1 and GLSL 3.3 help please!

Posted by dpadam450 on 24 February 2014 - 04:49 PM

Is your quad rendered with the shader on? Are you able to output a debug red color to verify the shader is on?

Are you binding the texture and sending the uniform to the shader?

#5128919 Assassin's Creed IV: Black Flag Ocean Technology Talk

Posted by dpadam450 on 04 February 2014 - 10:27 PM

Take a look at this. There is a demo and a paper somewhere. Most realistic water I've seen.

#5128087 OpenGL Alpha problem.

Posted by dpadam450 on 01 February 2014 - 09:40 PM

This is how blending of any object in 3d rendering or the real world works. What are you specifically trying to do? What effect?

#5127990 z-buffer discontinuity in shaders

Posted by dpadam450 on 01 February 2014 - 12:25 PM

If you are using an edge detection algorithm, why not just use the dot product. If dot product of (normal,viewvec) < .01 or something, you can make the pixel black.

#5124856 Hypothesizing a new lighting method.

Posted by dpadam450 on 19 January 2014 - 11:54 AM

"This means that you get the speed of a deferred renderer (render time = light count + mesh count) with a drastically reduced memory footprint."


The speed of a deferred renderer has nothing to do with your algorithm at all. The speed in deferred comes in the fact that you run the pixel shader once for every pixel on the screen. You make pixel shader overdraw = 0. In your algorithm you would still draw an object with a pixel shader and then another object can come along and redraw over that pixel and have to run a pixel shader again (2x for the same pixel).

The algorithm itself doesnt make much sense to me. Why is it a cube map again? What does a mesh use to find the correct light in the cubemap? Why wouldnt it just be a 2D texture of the lights? How exactly does the light get mapped into the cubemap?(its not a 3d Array, its simply 6 faces that designate up down left righ bottom top.

Yes, you don't have the experience enough to finalize your algorithm. I'm planning to do something similar to this, however you have some holes to get to the end and you are in no way related to deferred rendering by this approach.

#5121555 2D Lighting with Shaders

Posted by dpadam450 on 05 January 2014 - 10:40 PM


How do I mix the frag color with light color AND ambient color so that ambient color is applied consistently throughout the frame while the light color only has an effect within the lights' attenuation range?


Really? You couldn't figure this out? How about lightingCalculation + ambient..............

#5082406 Smooth OpenGL mouse look

Posted by dpadam450 on 02 August 2013 - 12:38 AM

yaw += (diff/8)*speed;
if (yaw > 360)
yaw = 0;


yaw = yaw - 360;

if yaw is 380, the end result would be 20 degrees past 360 or 20 degrees. (380 - 360).

Not a solution but a bug in your code.


#5080183 Reading the depth buffer

Posted by dpadam450 on 24 July 2013 - 12:06 PM

Welcome to graphics. Look around for shadow map white and you will get hundred of talks about this. The depth buffer is essentially completely white for every shadow map. Print screen, go into photoshop/gimp and change the brightness/contrast till you see an image outline. This works best if the object is close to the camera.

Also GL_UNSIGNED_INT should be GL_FLOAT, GL_DOUBLE, or potentially GL_DEPTH_COMPONENT as well. INT will not work that is for sure, everything in that case would be 1.0 depth for all pixels.

#5076615 OpenGL

Posted by dpadam450 on 10 July 2013 - 08:56 AM

If it wasn't taught (which is most likely a lie). Wouldn't it have made more sense to not wait till the last 3 days? You could have learned how to do this in a couple days, or spread out over a month.

#5076501 Forcing early Z, which extension to use?

Posted by dpadam450 on 09 July 2013 - 09:14 PM


Does not load like image_load_store has anything to do with early depth test. So no, you should use the conservative depth.

#5072071 Is there a Game Programming school that you would suggest?

Posted by dpadam450 on 22 June 2013 - 02:32 PM

I can say that at one point Full-Sail students were not getting accepted at EA sports Orlando for certain teams (not sure if it was the whole studio). They just weren't interviewing very well. I work there, my Lead went to Full-Sail and hes been the lead on 2 of my teams, when I came in there were 2 other fulltime and 1 contractor from FullSail, we just hired someone else that came from DigiPen recently as well. I came in a a "try them out" contractor, me and another guy from Full-Sail were the only 2 / 5 contractors to get full-time after that due to good performance.

People can graduate from any school and suck. I had people from DigiPen that I don't think were very smart get through. What I can say though is that DigiPen does teach CS and I don't get where anyone is coming from on this. I worked in the medical field on software. Software is software. You might not learn the most web technologies and you certainly aren't going to just be a Java guy, but I think the really good people coming out of DigiPen are way smarter than a traditional CS degree.

My friend from DigiPen went to a couple places and both places now are like "why the F did we never look at graduates from this school". My current problem with DigiPen, way too expensive. CS though is the one degree there are resources everywhere to boost your growth. You can learn so much stuff in your personal time.

I would suggest against DigiPen only due to the cost of tuition there nowadays. It's insane. If you go to traditional CS, just stay up on C++ and make some games in your own time. Your own ambition will get you somewhere.

#5072054 Environment reflection & fresnel correct ?

Posted by dpadam450 on 22 June 2013 - 12:37 PM

Just listen to the real world:

Smooth and Wet Rocks

Medium Rough Rocks
Very Rough Rocks
Very Rough Rocks

If you still want to keep it then at the very least, remove the specular from one side of the rock.

#5071948 Environment reflection & fresnel correct ?

Posted by dpadam450 on 22 June 2013 - 12:51 AM

Well I'm looking directly down my white painted walls matched right down line of sight and there is not noticeable fresnel from either light. I've never seen a rock ever perform mirror like specular, ever.

What is right is what looks good. Take a rock outside pt it in direct sunlight, move around it and observe and determine what is happening. That is how you should determine what to do. Or bring a rock inside and move a light around the rock and observe the same point/edges around that rock to see if it reflects that way.

#5071897 Environment reflection & fresnel correct ?

Posted by dpadam450 on 21 June 2013 - 05:13 PM

I looked at the rock and knew immediately it didnt look right. Why would your rock have any specular let alone fresnel reflection....

It looks wrong yes. If it is supposed to be wet, the specular would be more white and a higher specular exponent power.

#5071190 Rotation based on normal vector

Posted by dpadam450 on 19 June 2013 - 12:33 PM

You are essentially making the cars up axis, the terrain's up axis at a given point.  So if your car is exported with the up-axis directly up (Y-Axis), you can figure out two angles needed to rotate that car (or just think of its up axis), to rotate and match the terrains up axis.  Rotating the car on the Y-axis would only spin it and not manipulate the direction that "up" is. So you need to rotate some degrees on the x or z, then some on the y and your cars up will match the terrains up.

If you view down the z-axis (2d), your two vectors can drop the z-component so that you make it a 2d problem and you can dot product and find the angle with it by using the vectors (0,1,0) and (normal.x,normal.y, 0) , then spin it by that angle on the z-axis. You have to visualize it this way and you will understand.  You then view the vectors top down from the y-axis. Use your new rotated vector, take the dot product between that vector and your normal vector dropping the y-components since you are viewing top down and don't care about the height. You then find the rotation to use on the y-axis to match your normal.