Jump to content

  • Log In with Google      Sign In   
  • Create Account


Black Knight

Member Since 01 Jan 2002
Offline Last Active Mar 01 2014 10:38 PM

Posts I've Made

In Topic: Planar projection shader

26 February 2013 - 08:06 AM

After a while I realized that it ends up being the same thing :

 

0.5 * (output.position.w + output.position.x);

0.5 * output.position.w + 0.5 * output.position.x
 

 

Then in the pixel shader :

 

(0.5 * output.position.w + 0.5 * output.position.x) / output.position.w

(0.5 * output.position.w)/output.position.w + (0.5 * output.position.x) / output.position.w
 

 

The first part becomes 0.5 :

 

0.5 + 0.5 * ( output.position.x / output.position.w)
 

 

This is equal to :

 

(output.position.x / output.position.w) / 2 + 0.5
 

 

I believe moving this calculation to the vertex shader is more efficient so I will just leave it there.


In Topic: ActionScript 3 Local Timer Object Event Handler

05 May 2011 - 08:32 AM

I will try it with the usual timer event and set repeat count to 5 and then run it and see if they are GC'ed after the run 5 times. I will try it without removeEventListener first then with removeEventListener.

In Topic: D3DXCreateLine - Need help rendering faster

28 March 2011 - 06:07 PM

Yes in DX they are called vertex buffers. VBO is vertex buffer object so they are pretty much the same thing.

In Topic: D3DXCreateLine - Need help rendering faster

28 March 2011 - 03:38 PM

Store all the data in a VBO and the draw it in one call. Should increase speed a lot.

In Topic: Crashing on switch to fullscreen

27 March 2011 - 04:13 PM

If I remember correctly it is done with the following function and using the correct styles :

http://msdn.microsoft.com/en-us/library/ms644898%28v=vs.85%29.aspx

You might also have to call ChangeDisplaySettings method to change the resolution to the fullscreen resolution you want to use:

http://msdn.microsoft.com/en-us/library/dd183411%28VS.85%29.aspx

PARTNERS