[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

DirectX simple pixel

Posted on 1997-08-29
9
Medium Priority
?
365 Views
Last Modified: 2010-04-06
Hi,
I'm new to Delphi and got Delphi 3.0 profesional edition for me to learn, I wanna create a fast graphics program under Win95. I need to put a lot of pixels in whole screen within 1-10 milisecond, so since it won't possible in normal Win95 API, I guess I should use DirectX, but the problem is I dun know how to start with and how to create it ??
Please anyone know how exactly to create a simple pixel uses directX help me...
Please tell me detailed what I really need and what should I do since I'm newbies :) if allowed please create a ready to compile sample source pleaseeeee....
- AnaKecil -
0
Comment
Question by:anakecil
[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
  • 5
  • 3
9 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1342984
I often use standard api call's and this is quite fast, but tell me what  size is for you'r screen so i test if this work in 1-10ms.
0
 

Author Comment

by:anakecil
ID: 1342985
Hi Mirek,

I thought there's a misunderstanding about my question, what I really mean is how to fill the whole screen for example 640*480 16 million color with pixels which each pixels color and coordinate calculated lately, but the important thing is that I need pixels can fill whole screen only within 1ms, so each 1ms the screen change into another pixels fill if possible without flickers :) thanks for your comment and help I hope you can help me a lot
- AnaKecil -
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1342986
I can do this with SetDIBits and BitBlt (640x480) in 8,8ms so I think this can't help you?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Expert Comment

by:mirek071497
ID: 1342987
This time depend on hardware. I have 486 with 160Mhz and S3Trio VGA card with 2MB RAM. If you have Pentium 100 with better VGA i think so this can work faster.
Mayby you need learnig DirectX not fast writing to screen ?
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1342988
Sorry ! Sorry!

I made error on my routine for calculating time
I fill Screen with 88ms.
0
 

Author Comment

by:anakecil
ID: 1342989
Thanks for your help mirek,
If you sez that 8ms for filling the screen, I thought that's enough for me, but if it was 88ms, I thought it's too long and I need better refresh then that because I need to accurately update the graphics each 1ms if possible because the result of the graphics is used for controlling other purpose, this displaying it self not yet computed so I hope to get a very fast filling methode, because before fills I need to calculate each pixels location and color to determine the process later...
You're right about hardware dependencies, I need to run it on 486-100 processor with only 16Mb RAM and win95, so I hope that you can help me determine which way the best I do with it in Delphi.
If possible please teach me DirectX way of it, also tell me is it still possible in DirectX ??
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1342990
I saw some SVGA cards with special drivers (MATROX ...) which can do this very fast but i think so in standard SVGA card (as my S3Trio) DirectX can't do this in needed time.

I don't have any directX template but i write any example to you later (1-2 day ).

Mayby in this time another expert write any code for you.

Regards
Mirek
0
 

Author Comment

by:anakecil
ID: 1342991
Hi mirek,
Thanks a lot for your help so far, I do hope that you can make me a way to learn directX way of putting pixels or bitmap or whatever needed not need 3D since I just need a 2D way to representing graphics. I really appreciate if you can help me on it thanks.
- Anastasia Kecil -
0
 

Accepted Solution

by:
kimfriis earned 200 total points
ID: 1342992
If I were you I would first go to Blake Stones homepage.
http://www.dkw.com/bstone/
And then maybe try Delphi Game Creater homepage:
http://www.users.dircon.co.uk/~zeus/
These are 2 good sites!!!! Because learning Delphi AND DirectX can't be descriped on such a site like this!!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

650 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