Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / [GDK] D3D plugin

Author
Message
draknir_
17
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 15th Apr 2008 22:58
Hi all,
unlike my previous post here, I did some searching before posting this time . The problem is i'm trying to use Cloggy's D3D text functions in the GDK and all im getting is this:



in DBPro I get this nicely anti aliased and unclipped text:



with practically identical code.

the GDK code is taken from this thread: http://forum.thegamecreators.com/?m=forum_view&t=57964&b=22

so I was wondering, did I miss an update for the GDK D3D text? How can I fix this ugly clipping + aliasing?

regards
draknir
draknir_
17
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 17th Apr 2008 06:04
any ideas? someone must have working anti aliased text, right!?
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 17th Apr 2008 07:52
it works with me.try change font type and put it normal.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 18th Apr 2008 00:44
@draknir_
Make sure you draw nothing except text between the begin and end text commands

draknir_
17
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 19th Apr 2008 21:17 Edited at: 19th Apr 2008 21:19
Here is the exact code:



and here is the result:



other fonts give similar aliasing, and using italics always cuts off the sides of the characters. I cant possibly imagine this being a hardware problem, it MUST be a software problem, and IMHO its the source code of text.h and text.cpp from 3 years ago. Surely a newer version is available?
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 21st Apr 2008 18:55
How does that work? I mean, can I use that stuff to draw anti-aliased text onto a memblock image? (Make memblock from Image) or something?

draknir_
17
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Netherlands
Posted: 24th Apr 2008 12:09
Well its just an include file based on cloggys d3d plugin for dbp. but it doesnt seem to be working for me and nobody has any suggestions
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Apr 2008 22:43
Sorry about that. I cheat. I get stuff I want into images. (Because I don't know how to get reall AA in Dark Either... though I think its probably EZ if you know how. I have a sneaking suspicion its a simple DirectX thing of choosing a font, size, and telling DirectX where to draw it, and the pointer to the "Surface" (your DarkGDK display.)

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Apr 2008 22:44
Oh.. possibly different directx sdk's behind the scenes is why results one way in dbpro and another in DarkGDK... MAYBE

Login to post a reply

Server time is: 2024-09-29 19:20:41
Your offset time is: 2024-09-29 19:20:41