fazerbox

Member
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

100 Neutral

About fazerbox

  • Rank
    Newbie
  1. Sprite Rotation

    Draw is not bugged. I have used many times, with Rotations, Translation and Scaling and it works well. You have to pay attention to sequence of trasformations... See Mout formula at [url="http://msdn.microsoft.com/en-us/library/bb205366(v=vs.85).aspx"]http://msdn.microsoft.com/en-us/library/bb205366(v=vs.85).aspx[/url] How you can see Traslation is last trasformation ( Mt ). Mout = (Msc)-1* (Msr)-1* Ms * Msr * Msc * (Mrc)-1* Mr * Mrc * Mt Remember that Scaling is before Rotation that is before Translation Regards, Max.
  2. Hi all, I have a very simple question. I have a Texture and I use ID3DXSprite.Draw() to draw it. I want apply transparency to texture but only at edge. I want to do that without changing source texture file, I mean I don't want modify texture including transparency edge. See image below. In there a simple way to do that? How? Is it possible use SetRenderState to do that, maybe using a second Texture Applied to first that has info about Edge Transparency? Thanks in advance. Max.
  3. Hi all, I have a stupid question, but vital for me :) . Can a loaded DLL set variable owned by EXE, where Exe is executable that loaded DLL? I think yes, but I have a little confusion about DLL are loaded. Example, suppose I have a program say Test.exe and a Dll Library.dll with an Exported function DoIT(). DoIT function ------------- DoIT() { int *pA = 0x12345678; *pA = 200; } ------------- Test.exe in PseudoCode. int A=100; //Suppose A Address is 0x12345678 hLib = ::LoadLibrary ( "Library.dll" ); pointerDoIT = GetProcAddress( hLib, "DoIT" ); //Not using cast for simplicity (*pointerDoIT)(); Question. Now A is 200? Library.dll is loaded in EXE address space so I can change Exe vars? Or Have I use ReadProcessMEmory and WriteProcessMemory? Thanks in advance, Max.
  4. Hi all, I have a little problem, I have developed a free Plugin for rFactor Game ( same plugin for GTR2 ) that shows Track and Cars. I use ID3DXLine to draw Track minimap and ID3DXSprite to show Cars (Circle with number inside) Here you can see some images http://www.rfactorcentral.com/detail.cfm?ID=Map%20Plugin I would like to see Car Sprite semitransparent to see TrackLine under cars. This is usefull at the beginning of race, because cars are very close and hide track line I Use this method to draw HRESULT Draw( LPDIRECT3DTEXTURE9 pTexture, CONST RECT * pSrcRect, CONST D3DXVECTOR3 * pCenter, CONST D3DXVECTOR3 * pPosition, D3DCOLOR Color ); with color D3DCOLOR_RGBA(255,255,255,125) now what append is that Cars are semitransarent with respect of 3D world, and I can see Trees, or other track object under cars, but cars are totally opaque respect Track Line, so I don't see Track Line under Cars. Can you help me? What parameter Have I change to see track line under Cars (Circle with number)? Regards, Max.