Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

some delphiX functions

Posted on 2003-03-26
6
Medium Priority
?
258 Views
Last Modified: 2010-04-04
Hello!
I need some help on DelphiX. I write a game like stuff, and I don't know some functions' usage. These functions are: DXDraw.D3DRM.CreateWrap(...), DXDraw.Camera.SetOrientation(...), for example. I don't understand any of directions, and ups. Maybe I will need a 3D course, but I don't have much time for it, I just want to know, how to simply use these functions, and how can I set these functions' parameters, of course simply.
Thanks anybody for help!
0
Comment
Question by:Zed20
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
User137 earned 1000 total points
ID: 8217135
As much as i cannot recommend moving into unsupported and old graphics system, here is some instructions with original functions from DirectX.pas:

----------

function SetOrientation(lpRef: IDirect3DRMFrame; rvDx, rvDy, rvDz, rvUx, rvUy, rvUz: TD3DValue): HResult; stdcall;

plRef is Frame that sets the base rotation from which the camera is rotated based on vector and normal-vector.
If you want to look right in front, the values are
0,0,1, 0,1,0

----------

function CreateWrap(wraptype: TD3DRMWrapType; lpRef: IDirect3DRMFrame; ox, oy, oz, dx, dy, dz, ux, uy, uz, ou, ov, su, sv: TD3DValue; out lplpD3DRMWrap: Direct3DRMWrap): HResult; stdcall;

  D3DRMWRAP_FLAT
  D3DRMWRAP_CYLINDER
  D3DRMWRAP_SPHERE
  D3DRMWRAP_CHROME
  D3DRMWRAP_SHEET
  D3DRMWRAP_BOX

First parameter is one of TD3DRMWrapType values, then comes the frame (not sure what it was for), and then some mysterious x,y,z values and finally set the wrap variable.
0
 
LVL 1

Expert Comment

by:User137
ID: 8217182
More instructions can be found from DelphiX's own samples, which use these methods mentioned here.
0
 

Author Comment

by:Zed20
ID: 8219462
Thanks, User137, but in CreateWrap function, what are those mysterious x,y, and z values? Are they Sine or Cosine, etc. values, or what? So, I meant that. But thanks!
0
 

Expert Comment

by:CleanupPing
ID: 9316589
Zed20:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Loops Section Overview
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question