Peer-to-Peer Forum

1 of 2
1

Login Register    
VP in a window
Posted: 27 January 2009 12:51 PM  
Newbie
Rank
Total Posts:  24
Joined  2009-01-16

I’m working on an app in Visual Studio 8.
The concept goes something like this, there are some GUI controls on the window, above them there needs to be a view using Vega Prime.

This sounds simple, but all the tutorials and code that I’ve been given just shows how to make a window that is just Vega Prime, and nothing else.

Did I miss something simple?
Any help would be great.

 
Posted: 28 January 2009 11:39 AM   [ # 1 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

hi,
you’ll need the handle to the Windows window that you want vega prime to draw in ... then do the attachment before you config() ...
cya
chas

File Attachments 
DrawInWindow.c  (File Size: 1KB - Downloads: 343)
 
Posted: 29 January 2009 04:44 AM   [ # 2 ]  
Newbie
Rank
Total Posts:  14
Joined  2008-12-23

hmmm, i ve never tried this…but u might want 2 look into classes like vsGUIButton, vsGUICompass, vsGUIContainer, vsGUIFrame, and vsGUILabel.

Go to HTML reference of Vega Prime to know them in detail…


Thanks and Regards,
Rohith.H.N

 
Posted: 08 April 2009 03:32 AM   [ # 3 ]  
Newbie
Rank
Total Posts:  23
Joined  2007-11-07

“... u might want 2 look into classes like vsGUIButton, vsGUICompass, vsGUIContainer, vsGUIFrame, and vsGUILabel.

Go to HTML reference of Vega Prime to know them in detail…”

Hi

These would bereally useful for me as I have a similar requirement, but where do I find them?

I have the standard Vega Prime 2.2.1 but I searched through all the SDK,  tutorials and the HTML reference of Vega Prime as you suggest, but I don’t seem to have them.There seems to be no mention of these classes.

Are they part of an additional resource thats not in the standard installation?

 
Posted: 28 September 2010 01:36 PM   [ # 4 ]  
Newbie
Rank
Total Posts:  24
Joined  2009-01-16

whitleychas:

I have been using the code you posted in DrawInWindow.c
Worked wonderfully. However, we have recently upgraded to Vega Prime 3 and Visual Studio 2008 (VC9) and now that same code causes a debug assertion

Expression: vector iterator not dereferencable

Help!

 
Posted: 07 October 2010 08:07 AM   [ # 5 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

send me an email asap ... .(JavaScript must be enabled to view this email address)

 
Posted: 07 October 2010 01:37 PM   [ # 6 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

anyone else interested in VP in a window with startup splash screen   let me know ... I have updated the winmain.cpp.  converts your console app to a windows app ... console can be enabled for debugging.

chas

 
Posted: 12 October 2010 09:46 AM   [ # 7 ]  
Member
RankRankRank
Total Posts:  78
Joined  2009-01-15
Rohithzhere - 29 January 2009 04:44 AM

hmmm, i ve never tried this…but u might want 2 look into classes like vsGUIButton, vsGUICompass, vsGUIContainer, vsGUIFrame, and vsGUILabel.

Go to HTML reference of Vega Prime to know them in detail…
Thanks and Regards,
Rohith.H.N

I thought I’d seen every inch of Vega Prime’s SDK but I hadn’t seen these classes.  Are they depreciated or worse yet pulled out of Vega Prime and put into VAPSXT?  We are using VP 3.0.  We have VP 4.0 but I haven’t gone over it much yet.  That is next year’s project to convert our code base over to 4.0.  Are they in VP 4.0?

The reason I am so curious is because I just spent a lot of time writing my own gui (HUD) classes. :(

EDIT: Nice and simple code to transfer the handle to a Win32 app, whitleychas.  We don’ t need it in a window but I like the idea of a splash screen.  I’ve got on my list of todos the need to fix Vega Primes startup.  I don’t like that you watch the scene being built during startup.  I like the FlightGear (and other app’s) approach of showing a splash screen with a progress bar or text of some sort while the scene is loading.  Then when the scene is done (EVENT_SOMETHING_OR_OTHER_COMPLETE) fade into the scene.  If you’re doing a splash screen I’d be interested.

Steve

 
Posted: 12 October 2010 11:17 AM   [ # 8 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

email me at .(JavaScript must be enabled to view this email address)

I’ll send you a project

 
Posted: 26 October 2010 06:39 AM   [ # 9 ]  
Newbie
Rank
Total Posts:  27
Joined  2008-12-12

Thanks for the code chas, works a treat. Very useful.

 
Posted: 28 October 2010 09:13 AM   [ # 10 ]  
Newbie
Rank
Total Posts:  27
Joined  2008-12-12

Chas,

Before I implement it into my system, just wondered whether you have tried this with Distributed Rendering and if so, does it work ok?

Thanks

Rob

 
Posted: 01 November 2010 07:54 AM   [ # 11 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

yes,
I’m currently running a distributed rendering environment.  No (stinkin’ ;) acf’s and no agents!  I also use static .exe’s ... now I do not need to load vp on my runtime systems…..ever!!!  Updating and changing versions is a simple drag and drop of my exe for my customers.  Hugh reduction in Cold Start procedure also.

Anyone that wants to learn how to do this ... let me know

chas

 
Posted: 01 November 2010 08:48 AM   [ # 12 ]  
Newbie
Rank
Total Posts:  27
Joined  2008-12-12

Chas,

I would love to know how to do this as I am about to upgrade all 3 of my sims (36 pc’s) to VP 4 and any reduction in the number of files that I have to put on each pc will be very much appreciated!

Rob

 
Posted: 01 November 2010 09:40 AM   [ # 13 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

send me an email ... we’ll go from there

 
Posted: 04 November 2010 06:45 AM   [ # 14 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

890 Views! 

890 view on this topic! 

I should be giving a lecture on how to do this at I/ITSEC ...

We’ll add the sample to the bonus pack ... vp_chas.cpp!!!

robhrw ... I got your email.  Been busy, I’ll get to you soon.  Any one else want in, send me an email

* vp in a windows window
* no acf
* distributed rendering
* no agents
* tiled openflight or metaflight database

 
Posted: 04 November 2010 06:56 AM   [ # 15 ]  
Member
RankRankRank
Total Posts:  79
Joined  2007-07-23

Oh ... I forgot two other features

* static executable
* no vega prime installation on your runtime systems ... except one license utility install.

chas

 



1 of 2
1