Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Anddos

Member Since 01 Nov 2002
Offline Last Active Yesterday, 04:58 PM

Posts I've Made

In Topic: how to create gui buttons with DirectX 11?

28 November 2014 - 03:48 AM

 

A button is usually nothing more than a virtual rectangle that exists within the client area of a window. As the user moves the mouse just test whether the mouse is inside of each rectangle (perhaps using PtInRect). Now this doesn't help the user much, so you would also have to render some quads on the screen in the same positions using some kind of button texture - perhaps a 'normal' one and a 'mouse over' one. Something like

 

Yeh i understand you render 2 triangles to make a quad, but can you just specify screencoords for the vertexbuffer and it will understand the vertices are pretransform through the pipeline?


In Topic: view frustum culling particle effects?

18 November 2014 - 08:32 AM

thats the problem if there points how would you calculate there bounding volume


In Topic: view frustum culling particle effects?

18 November 2014 - 05:51 AM

so i need to put a box or sphere around the emiter world position correct?

what if the fire particle moves tho like its spreading, you cant really set a radius for that so how would you block them from rendering if there out of view?


In Topic: using coldet collison library on d3d9 3d models

23 October 2014 - 12:07 PM

Nevermind i have it working, it was something todo with the way i was creating the sphere, a quick test in a new application

 

http://i.imgur.com/tcOct06.png?1


In Topic: using coldet collison library on d3d9 3d models

23 October 2014 - 08:55 AM

yeh ive compiled the colder library in debug now and debugged the application it seems its crashing on the mesh locking vertexbuffer and i dont know why, i am using this function in another class to retrieve the vertices of the weapon without any issues,

 

LoadXFile("ak47.x", &mMesh, mMtrl, mTex);
 LockMesh();

 

i am  also checking if the mesh object is not null

 

 

if (Sphere != NULL)
{
       MessageBox(NULL, "Sphere", "", 0); //this shows
}

 

i am baffeled at this point

 

screenshot of where debugging stops

 

http://i.imgur.com/UEC4EJa.png?1


PARTNERS