Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Back Buffer #134548
06/07/07 19:03
06/07/07 19:03
Joined: Jun 2007
Posts: 6
Puerto Rico
I
Itoman Offline OP
Newbie
Itoman  Offline OP
Newbie
I

Joined: Jun 2007
Posts: 6
Puerto Rico
Greetings,
I am pretty new at using 3D Game Studio and I am having trouble finding information on this specific thing so I've come here. My problem is basically that I have flickering text on screen. I have a model on screen and he is blinking every couple of seconds. I also have some text drawn on screen using draw_text. Each time he blinks, engine_frame is called to re-render or refresh everything on screen. And there lies the problem. The text is erased and then drawn again on screen. And thus I have a flickering effect. As I understand it, 3D Game Studio renders everything by drawing all models, entities,etc on a back buffer and from there draws it onto the front buffer. Problem is draw_text only draws on the screen so I was wondering if there was some way to also draw the text on the back buffer and get rid of the flickering. Thanks in advance for your time.

Re: Back Buffer [Re: Itoman] #134549
06/08/07 23:30
06/08/07 23:30
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
why not try to use .. ?

while(1)
{
draw_text("Hello There");
wait(1);
}

Re: Back Buffer [Re: ACKNEX007] #134550
06/09/07 05:40
06/09/07 05:40
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I don't recmmend using draw_text()...

Simply create a string and a text-panel


xXxGuitar511
- Programmer
Re: Back Buffer [Re: xXxGuitar511] #134551
06/09/07 11:47
06/09/07 11:47
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
I only use draw text for debugging, thats probably all i'd ever use it for if i were you

Re: Back Buffer [Re: lostclimate] #134552
06/12/07 14:51
06/12/07 14:51
Joined: Jun 2007
Posts: 6
Puerto Rico
I
Itoman Offline OP
Newbie
Itoman  Offline OP
Newbie
I

Joined: Jun 2007
Posts: 6
Puerto Rico
I've been looking over panels and they don't seem to be used normally for text displays however I also found a structure called text which should have come along in 3D Game Studio's libraries and header files. Every example of code using the text structure uses acknex.h header file but I can't find it anywhere among 3D Game Studio's files. Anyone know how or where to obtain this header file?

Re: Back Buffer [Re: Itoman] #134553
06/12/07 19:53
06/12/07 19:53
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Most elements like this are embedded I think so try the SDK or write to jcl.

Re: Back Buffer [Re: Nems] #134554
06/12/07 20:05
06/12/07 20:05
Joined: Jun 2007
Posts: 6
Puerto Rico
I
Itoman Offline OP
Newbie
Itoman  Offline OP
Newbie
I

Joined: Jun 2007
Posts: 6
Puerto Rico
For some reason I could not find it in any of 3D Game Studio's engine files even after reinstalling it. Ended up installing Lite-C just for fun and found in its engine files, acknex.h. Thanks for everyone's help.

Re: Back Buffer [Re: Itoman] #134555
06/12/07 20:37
06/12/07 20:37
Joined: Jun 2007
Posts: 6
Puerto Rico
I
Itoman Offline OP
Newbie
Itoman  Offline OP
Newbie
I

Joined: Jun 2007
Posts: 6
Puerto Rico
And now apparently using this header file which comes from lite-C needs some other header files like litec.h, and ends up redefining a bunch of macros and other things from adll.h and gives me a lot of errors. So much for text even though I saw it on C-script workshop tutorial.

Last edited by Itoman; 06/12/07 20:51.
Re: Back Buffer [Re: Itoman] #134556
06/13/07 05:07
06/13/07 05:07
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
The text structure is defined in
Ln 404, atypes.h, found in GStudio6\sdk_engine

As long as you are including the file in your project as the samples do, you should have no problem using and accessing the TEXT type from a DLL using the SDK. No lite-c required.

-Rhuarc


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: Back Buffer [Re: Rhuarc] #134557
06/13/07 13:22
06/13/07 13:22
Joined: Jun 2007
Posts: 6
Puerto Rico
I
Itoman Offline OP
Newbie
Itoman  Offline OP
Newbie
I

Joined: Jun 2007
Posts: 6
Puerto Rico
I found the structure in the header file you just mentioned. But Visual Studio could not find that TEXT structure. It only found something completely different also called TEXT but found in winnt.h. I could access panels and views from atypes.h but not text. I just renamed the structure for TEXT in atypes.h and Visual Studio finally found it. I guess it was being overwritten or something by whatever the winnt version of TEXT was. Thanks to everyone who helped on this matter.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1