Solved

DirectX simple pixel

Posted on 1997-08-29
9
358 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
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!

 
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 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