Search found 5 matches

by Roman
Tue Dec 28, 2010 3:21 pm
Forum: Game Programming
Topic: DirectX 9 ID3DXEFFECT for PB
Replies: 5
Views: 3081

Re: DirectX 9 ID3DXEFFECT for PB

Thanks for answers!!!
I have understood.

In this code all OK:
mat_World_View_Proj. D3DXMATRIX
D3DXMatrixIdentity (mat_World_View_Proj)
hr = *effect\SetMatrix (*effect\GetParameterByName (0, “mat_World_View_Proj”), mat_World_View_Proj)

*effect\GetParameterByName (0, “mat_World_View_Proj”); we ...
by Roman
Mon Dec 27, 2010 5:48 pm
Forum: Game Programming
Topic: DirectX 9 ID3DXEFFECT for PB
Replies: 5
Views: 3081

Re: DirectX 9 ID3DXEFFECT for PB

Here a code:
*effect. ID3DXEffect
D3DXCreateEffectFromFile (*D3DDevice, "ald_Parallax_Mapping.fx", 0,0,0,0, *effect, 0)

; Render_Effect
mat_World_View_Proj. D3DXMATRIX
D3DXMatrixIdentity (mat_World_View_Proj)
hr =*effect \SetMatrix (mat_World_View_Proj, mat_World_View_Proj)
At this stage an error ...
by Roman
Mon Dec 27, 2010 3:10 pm
Forum: Game Programming
Topic: DirectX 9 ID3DXEFFECT for PB
Replies: 5
Views: 3081

DirectX 9 ID3DXEFFECT for PB

Greetings to all!
Please help, I can understand with ID3DXEFFECT.

*Effect \SetMatrix ("mat_World_View_Proj",mat_World_View_Proj)
Here an error: “mat_World_View_Proj” the line is inadmissible, if mat_World_View_Proj that the result is not present.
Prompt how to resolve this problem.

P.S.
Excuse for ...
by Roman
Fri Oct 08, 2010 4:13 pm
Forum: Game Programming
Topic: Making the camera in DirectX9
Replies: 0
Views: 1190

Making the camera in DirectX9

Hi everyone.
Help, who can, what control the camera (rotate, move, zoom).
There is only this:

View.D3DMATRIX

CameraPoint.D3DXVector3

CameraPoint\x = 0
CameraPoint\y = 0
CameraPoint\z = 1100

LookAt.D3DXVector3
LookAt\x = 0
LookAt\y = 0
LookAt\z = 0

UpVector.D3DXVector3
UpVector\x ...
by Roman
Sun Sep 19, 2010 12:46 pm
Forum: Game Programming
Topic: DirectX9 SDK
Replies: 1
Views: 1830

DirectX9 SDK

Hi everyone.
Help, what load mesh with several textures?
Here is my code, which loads the first texture on the whole mesh:

Global *mesh.ID3DXMesh=0
Global NMat.w=0
Global *Textures.IDirect3DTexture9
Global *ABuffer.ID3DXBuffer=0
Global *MBuffer.ID3DXBuffer=0
Procedure Load_Mesh(file.s)

If ...