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.

DarkBASIC Professional Discussion / Set Display Mode - Animation Commands Stop Working!!

Author
Message
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 19th Mar 2005 06:31
After using the Set Display Mode command. All animations are deleted and none of the animation commands work! Is it just me with this problem or is this a bug?

[center]
Worship Me OR DIE - http://www.ibse.r8.org
Storm 6000
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location:
Posted: 19th Mar 2005 07:50
I dont know for sure if this will solve the problem but i read that in darkbasic professional you arnt sposed to use that command you are sposed to set it using the project settings and not use that command unless really needed

Thanks
Adam
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 19th Mar 2005 07:56
Storm 6000 is partially right...

Set display mode can be usefull sometimes, but after calling it all data will be deleted (images / animations / etc)

re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 19th Mar 2005 08:38
no this is a bug
in addition to animation commands not working in fsex 32 bit mode.
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 19th Mar 2005 08:48
great...

[center]
Worship Me OR DIE - http://www.ibse.r8.org
Cryptoman
21
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 19th Mar 2005 08:51
No, its not a bug, A new instance of Directx is created to resize the display. So directx deletes its media. Resizing the window just scales the instance. Set Display Mode Calculates a new Pixel Format so all the previous media is useless. Just hit your loading routine again.


Clueless
21
Years of Service
User Offline
Joined: 16th Feb 2004
Location: Corbin, KY, USA
Posted: 19th Mar 2005 15:18 Edited at: 19th Mar 2005 15:22
I've only 2 years of DBP experience, but enough to say you should do your SET DISPLAY MODE setting before anything else. I learned the hard way with lighting -- if you create lights and then do the display mode setting, it deletes them all.

I would bet grandma's pension that similar problems occur with other things you do before the setting.

[EDIT] A bug was mentioned earlier... there was (is?) a bug involving SET DISPLAY MODE in conjunction with the Advanced Terrain. Others in the forum will be able to tell you if that's been resolved or not. But I must agree with TRS 80, I'm fairly certain that the behavior we're seeing is a part of DirectX, not a DBP bug.
Mike P
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: England
Posted: 19th Mar 2005 17:27
Well there is also a problem with the set window size. I'm trying to create an optional "full screen" for an application I'm making. It needs to change from windowed to full screen when the user tells it to. I've decided just to make it execute a seperate "full screen" version of the program. This solves the problems!

[center]
Worship Me OR DIE - http://www.ibse.r8.org
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Mar 2005 19:52
Yes that is correct, setting a new display mode empties video memory, therefore losing all textures / lights ect. It's all DirectX's fault. But one I can live with.

1800+ XP - GeforceFX 5600 - 256MbDDR - 60Gb Hdd - XP Pro (SP2)

Login to post a reply

Server time is: 2025-06-09 04:24:56
Your offset time is: 2025-06-09 04:24:56