Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 May 2010
Offline Last Active Mar 11 2013 11:21 AM

Posts I've Made

In Topic: DX9 Wired Texture Effect

20 February 2013 - 11:57 AM

oh the texture is fine, because I can render it with a quad on screen coordinate, just when I use world coordinate to describe the quad, the texture go crazy. 

In Topic: Multi inheritance and pure virtual

27 January 2013 - 05:21 PM

1. That has nothing to do with virtual inheritance. Its to leave the possibility open that programmers make a class hierarchy with more than 2 steps where they continuously add common functionality first and later more specialized. If you try to make a BorderedWindow or WindowWithMenu you will see the compiler guards against this because its an abstract class like Window.
2. Should be the same if it both compiles.

Btw., you should always add a virtual destructor to any baseclass with a virtual method to prevent errors when you only have a pointer or reference to a baseclass which you initialized with an object of the derived class.

ok so for pure virtual functions, you dont necessarily have to implement the pure function in the NEXT level derived class. As long as in the hierarchy, derived class(that could be instantiated) has implemented all pure virtual functions from his "higher level base classes" no matter how many levels it derives?


That code was just for demostrating the problem. Thanks for heads up tho. 

In Topic: What Does This Mean "$modelViewProj"

04 December 2012 - 12:11 PM

modelViewProj is the global input

But I did not write any input named modelViewProj, or it is just default input written by program?

The people who wrote the system decided that when the same name comes from both sources

What do both sources mean here? global input and parameter?
What if I put uniform float4x4 modelViewProj out of the funcion as an global input, I would only need "modelViewProj"?

In Topic: Namespaces good for anything else?

04 December 2012 - 10:36 AM

1. You can easily add anything into any namespace except std without looking into that namespace
2. Not quite sure about this one but I think it is worthy to mention tho. Looking up machanism, if your caller's parameter is in a namespace the compiler will first try to find the most matched function in that namespace then globle space.

In Topic: 3D Math problems... No idea what to ask from Google.

10 September 2012 - 02:42 PM

Picking or ray tracing is what you need to learn from this. Maybe frustum culling as well.