Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


nhatkthanh

Member Since 25 Feb 2004
Offline Last Active Apr 02 2014 10:18 AM

Topics I've Started

ID3DXSprite SetTransform

13 April 2010 - 07:20 AM

I couldn't find any more information or docs regarding how DirectX implementing ID3DXSprite SetTransform, so if someone can shed some light on this, I would greatly appreciated. Consider this example where you have a large number of sprites, each with their own transformation. When it's time to draw, you set transform for each and draw for each then finally flush. for each sprite do sprite->SetTransform( ... ); sprite->Draw ( ... ); end sprite->Flush( ... ); ID3DXSprite batch all this sprite draw up and make the DIP call when you flush, but what I'm wondering is how SetTransform work, does it transform the sprite on the CPU at the time SetTransform and Draw are called? That way all vertices are transformed by the time it's send to the GPU. Is my assumption on this correct? If not can someone gives more details on how the SetTransform gets batch up? Thanks.

Multitexturing with vertex buffer object

15 August 2008 - 10:40 AM

Hi, I'm trying to do multi texture with vbo, but I ran into this and I'm not sure how to go about it. let say my vertex is: struct Vertex { float x, y, z; DWORD specularColor; float nx, ny, nz; float tu, tv; float tu2, tv2; }; the problem comes when I need to specify the array pointers as well as enable/disable clientstate. glVertexPointer(3, GL_FLOAT, stride, BUFFER_OFFSET(0)); glSecondaryColorPointer(4, GL_UNSIGNED_BYTE, stride, BUFFER_OFFSET(12)); glNormalPointer(GL_FLOAT, stride, BUFFER_OFFSET(16)); glTexCoordPointer(2, GL_FLOAT, stride, BUFFER_OFFSET(28)); then I'm not sure how to specify for the last set of texture coordinate. The same goes for enable client state: glEnableClientState(GL_VERTEX_ARRAY); glEnableClientState(GL_SECONDARY_COLOR_ARRAY_EXT); glEnableClientState(GL_NORMAL_ARRAY); glEnableClientState(GL_TEXTURE_COORD_ARRAY); I'm just not sure what I need to set for the last set of texture coordinate. Appreciate any help and info on this. Thanks.

create your own custom build in vs.net 2003

26 October 2005 - 10:44 AM

I'm wondering how to create a custom build configuration (debug, release) with vs.net 2003, the only way I know how is to add new configuration that you want to the project file. Are there tools or easier way to do this? Thanks.

communication between 2 running programs

29 July 2005 - 11:56 AM

Suppose I have program A execute and run, then another program B started. B is like a monitor that watches A. I suppose my question is similar to how a debugger work, that is a debugger is program B that interact with program A. Some info on this would be great, or some keyword that I can start a search to find out more. Thanks.

UML diagram software.

29 July 2005 - 06:16 AM

Anyone know of a small, free, simple UML tool that would allow me to draw UML diagrams for drawing up high level architecture design? Thanks.

PARTNERS