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 / A little info needed on multiple windows... PLEASE

Author
Message
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 15th Nov 2012 15:49 Edited at: 15th Nov 2012 15:59
If anyone's edited and designed custom content using the Dragon Ageā„¢ toolset - I want to know, and even if I have to get schooled hard and dirty... How to create multiple windows with direct x - as the DAO toolset did.

I'm on limited income and have nothing better to do than go on a coding excursion and teach myself something new... and now I'm stuck trying to figure this out.

I know a few things. 1) I could make multiple apps and share memory, use a plugin (that right now I can't afford) or write a plugin myself... something I have no clue how to do... but can see myself doing if I understand what I need to prior.

In what I've created so far using the 2.055 version of HGUI (formally blue gui) I have several tabs that would hold various 3D aspects, such as models, weapons, characters and creatures, levels (interior and exterior) and cutscenes. Through a long and tedious amount of time, I already have formed a scripting language for how what is created is used in my game engine... but I would prefer creating ONE app, with multiple windows.... so my question is...

How do I do this...

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Nov 2012 19:21
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 15th Nov 2012 20:05
Brendy, When is that map editor ready?

Matrix1Utils may do some things that STYX does for multiple windows and messages between them, and Brendy boys multi render looks awesome!

Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 15th Nov 2012 20:06 Edited at: 15th Nov 2012 20:26
Brendy Boy... I could kiss you...

EDIT
By any chance, did you ever make the help files? I'm happy to experiment just wondering though

If not, along my travels I may write a bunch of help files and hand them to you if you're okay with that ;P

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Nov 2012 20:43
Quote: "Brendy, When is that map editor ready?"

i'm currently to busy with life so it won't be done anytime soon

Quote: "Brendy Boy... I could kiss you..."



Quote: "By any chance, did you ever make the help files? I'm happy to experiment just wondering though"

no, i haven't, but it has only a few commands and an example so help files aren't really needed

Quote: "If not, along my travels I may write a bunch of help files and hand them to you if you're okay with that ;P"

i'm perfectly okay with that

Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 15th Nov 2012 20:49
I recieved an error - it would seem that the start BBB commands at teh very top of the example(s) don't run /arent recognized... ill keep messing around but does this need to be called or has that command been removed... or changed or something (mer na mer???)

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Nov 2012 20:52
Quote: "it would seem that the start BBB commands at teh very top of the example(s) don't run /arent recognized"

you need BBB Gui plugin aswell, i forgot to mention that, sorry

Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 16th Nov 2012 09:18
Before I make a copy of the compiler folder, do any of your commands conflict with bluegui/hgui (humanoids remake)

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 16th Nov 2012 09:41 Edited at: 16th Nov 2012 09:45
Okay one double post.... You state at the top that you cannot set the display mode or sync.... elaborate for me if you don't mind... How does one apply a higher resolution then?

- It would also appear that the names of your commands are different now (BBB GUI) - I'm going down the example but some of these commands don't exist anymore or have changed so much that I can't find the relevant commands.

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 16th Nov 2012 21:11
Quote: "do any of your commands conflict with bluegui/hgui (humanoids remake)"

i don't know

Quote: "Okay one double post.... You state at the top that you cannot set the display mode or sync.... elaborate for me if you don't mind... How does one apply a higher resolution then?"

resolution of additional windows if determined by the window size

SET DISPLAY MODE is only used for the default dbpro window but if you want to render it you can't use that command, set it's resolution inside IDE settings. SET DISPLAY MODE doesn't have an effect on additional windows

Quote: "It would also appear that the names of your commands are different now (BBB GUI)"

it seems so

here's an updated example



Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 16th Nov 2012 21:47
Would you care to experiment with Humanoid's HGUI - if so there may be a turn around

The issue I do have is that the commands from Blue Gui/HGUI conflict with BBB Gui. Since this DLL requires the BBB GUI - I need to relearn and rewrite about 4100 lines of code... Which I can do, but it's time and effort.

If the call to the BBB GUI dll is purely for requirement of resource and not of initialization of environment, could it be feasible to suggest the multiple rendering DLL could be utilized by Blue GUI / Hgui? That is to say, could one make the DLL stand alone and utilize it freely with any GUI (windows API)?

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 16th Nov 2012 22:29
Quote: "Would you care to experiment with Humanoid's HGUI - if so there may be a turn around

The issue I do have is that the commands from Blue Gui/HGUI conflict with BBB Gui. Since this DLL requires the BBB GUI - I need to relearn and rewrite about 4100 lines of code... Which I can do, but it's time and effort.

If the call to the BBB GUI dll is purely for requirement of resource and not of initialization of environment, could it be feasible to suggest the multiple rendering DLL could be utilized by Blue GUI / Hgui? That is to say, could one make the DLL stand alone and utilize it freely with any GUI (windows API)?"


all you need is the handle of the window inside which you want to render your camera. I believe the command for that is called getGangetHandle or something like that

Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 16th Nov 2012 23:07
well i need to ask around - i get a message stating "dbpro could not make exe" with no real explanation as to why - no windows are made, - the compiler compiles 100% - > then instantaneously error is reported back to the dbpro editor. Removing either the BBB GUI dll or blue Gui's DLL solved the problem - which means there is a conflict.

If I can look into it with your permission, I'd like to try and make a stand alone DLL based off the rendering one. I will not distribute it and will hand it to you freely if you'd like one to give to members, as it is initially your work... but I can't just simply through away years, and I mean years of understanding simply because there is an incompatibility with what I am using and what you've provided. There are always work arounds.

I see a lil' byte, its 1/4th a dword, Double float, Double float - but it doesnt beat a Global. Very very frightning, integers dividing me! Look a constant oh a constant. Oh-oh I just want the byte!
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 16th Nov 2012 23:30
you don't need any of the BBB GUI plugin parts

in this line:
pSChain1=BBB Swapchain_Create(640,480,w2)
pSChain2=BBB Swapchain_Create(640,480,w3)

w2 and w3 are child windows where rendering occurs, just create them with blue gui and get their handles

Login to post a reply

Server time is: 2026-07-10 16:22:12
Your offset time is: 2026-07-10 16:22:12