?
Solved

some delphiX functions

Posted on 2003-03-26
6
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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