Solved

DirectX simple pixel

Posted on 1997-08-29
9
354 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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 100 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 74
PHP preg_replace code convert to Delphi 14 68
RESTRequest Parameter 4 43
DBCtrlGrid, Delphi, Scroll 8 38
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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

827 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