|
-
Jul 31st, 2005, 03:46 PM
#1
Re: DoomSharp
Since the map files will be read into the 3d engine directly I think that is entirely up to you, use whatever format suits your code , I am concerned only with graphics at the moment. I have started work on distance darkening (DD), and it works great, depending upon how fast I can generate color matrices we can get some good effects here. If its too slow to generate them on the fly then I'll have to have a buffer of colormatrices and select an appropriate one.
I think I can save some time by optimising the surfaces I'm are drawing to. Use a few SetStyles() to drop some default options. May increase rendering speed a bit.
I have tried fiddling with Bitmap.LockBits(WriteOnly) but it seems to prevent drawing rather than accelerate it. MSDN is no help on this subject.
I'll be back to coding it the main graphics engine again tomorow, I'll take my DD code to work and incorporate it into the engine.
-
Jul 31st, 2005, 04:58 PM
#2
Fanatic Member
Re: DoomSharp
 Originally Posted by wossname
I have tried fiddling with Bitmap.LockBits(WriteOnly) but it seems to prevent drawing rather than accelerate it. MSDN is no help on this subject.
I found this to be a very usefull article.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Aug 1st, 2005, 02:17 AM
#3
Re: DoomSharp
 Originally Posted by grilkip
I found this to be a very usefull article.
Hmm...if that is wraps around the GetPixel and SetPixel API, then they are bound to be REALLY slow. IF they are wraps around some of the DIB interfaces or something, then it might be interesting. wØØsy?
-
Aug 1st, 2005, 02:20 AM
#4
Re: DoomSharp
 Originally Posted by wossname
Since the map files will be read into the 3d engine directly I think that is entirely up to you, use whatever format suits your code  ,
But if I do it the way I stated in one of my first posts here, then you won't get your round corners...and BTW I just remembered that I have no idea how to read or write to a file in C#.. ...I think I need to start there now..
- ØØ -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|