Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Notices

Orbiter Visualization Project Orbiter external graphics development.

Reply
 
Thread Tools
Old 12-06-2010, 03:58 PM   #166
Tschachim
Beta Tester
 
Tschachim's Avatar


Default

Hi Jarmo,

Quote:
Most likely the MFD isn't a texture, it could be a plain surface that is blitted into the backbuffer or panel. The glass cockpit and DG's 2D Panel is using texture surfaces for MFDs.
My bad, I do know NASSP is using the old panel interface...

Thanks for the patches! Using again the Delta-glider/Cape Canaveral scenario, the MFDs on the panel directly after start are fine with both patches.

After switching around between panel, VC and glass cockpit view (F8), I got error message boxes with both patches after some F8 key presses. After that one or both MFDs are filled with "garbage" completely (no scaling error anymore), but not deterministically. Sometimes it's the 2nd F8 key press when switching to glass cockpit, sometimes I can press F8 about 30-40 times before the error pops up. To be honest I can't tell which patch is working better. There are some log files attached, please tell me if I shall do more or more specific tests.

Thanks for all your efforts!

Cheers
Tschachim
Attached Files
File Type: zip D3D9ClientLog.zip (63.1 KB, 5 views)
Tschachim is offline   Reply With Quote
Old 12-06-2010, 05:41 PM   #167
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Tschachim View Post
 After switching around between panel, VC and glass cockpit view (F8), I got error message boxes with both patches after some F8 key presses. After that one or both MFDs are filled with "garbage" completely (no scaling error anymore), but not deterministically.
The first error "CreateOffscreenPlainSurface"is about the system runing out of video memory and the errors beyond that are related into the first one. In the RC2 I have implemented a different kind of memory allocation logic that will prefer textures instead of plain surfaces. Enable this feature by setting "MemAllocLogic" parameter to 1 from D3D9Client.cfg

Quote:
Originally Posted by Tschachim View Post
 Sometimes it's the 2nd F8 key press when switching to glass cockpit, sometimes I can press F8 about 30-40 times before the error pops up. To be honest I can't tell which patch is working better. There are some log files attached, please tell me if I shall do more or more specific tests.
It is a memory issue. Exiting the launch pad before starting a new scenario could help.
I have been tracking down a memory leak issue without success. Pretty often when switching a panel one (Rendering Target Texture) surface remains unreleased. This will print an error message in the log "Texture Surface failed to release 1 instance(s) remains". I'll try to implement some kind of memory monitor in the next release. Also, there could already exist some development tools for that as well.
jarmonik is offline   Reply With Quote
Old 12-06-2010, 05:44 PM   #168
jarmonik
Beta Tester

Default Release Candidate 2

- The shadow bug should be fixed.
- MFD conflict with the backbuffer multisampling should be fixed.
- MFD scaling issue is fixed.

Last edited by jarmonik; 06-13-2011 at 01:03 PM.
jarmonik is offline   Reply With Quote
Old 12-06-2010, 08:48 PM   #169
Tschachim
Beta Tester
 
Tschachim's Avatar


Default

Hi Jarmo,

thanks for RC2!

Quote:
Originally Posted by jarmonik View Post
 Enable this feature by setting "MemAllocLogic" parameter to 1 from D3D9Client.cfg
With MemAllocLogic=0, the RC2 pretty much behaves like the patches, with MemAllocLogic=1 I wasn't able to produce any error at all yet. Keeping fingers crossed, I'll do more tests the next days!

Quote:
Originally Posted by jarmonik View Post
 Exiting the launch pad before starting a new scenario could help.
I always did that during all tests, sorry for not mentioning that.

Quote:
The shadow bug should be fixed.
Yep, it's fixed!

Cheers
Tschachim
Tschachim is offline   Reply With Quote
Old 12-07-2010, 10:34 AM   #170
FordPrefect
Donator
 
FordPrefect's Avatar

Default

Hello Jarmo,

just now as you have been looking closer into the atmospheric rendering, may I suggest you may take a look at the stunning work of Eric Bruneton? In my humble opinion, he's created the most realistic looking real-time atmospheric rendering I have ever seen:

http://www-evasion.imag.fr/Membres/Eric.Bruneton/

Scroll down to the chapter "Atmosphere" and click on the images and the links Publication, Video and Code, with the last one being especially interesting for you.
Also see this document of Eric Bruneton:
http://www-ljk.imag.fr/Publications/...69/article.pdf

For some absolutely awesome views, watch the videos Eric Bruneton posted on youtube (9 in total):



I hope this can be helpful for improving the atmospheric effects in your D3D9 Client?
FordPrefect is offline   Reply With Quote
Thanked by:
Old 12-07-2010, 02:15 PM   #171
deltawing777
Orbinaut
Default

Wow! Now that would be nice in orbiter. I saw the river pics and automaticaly thought of ksc on ascent.Its got every thing everybody wants. Terrain,water,clouds,vegitation. This, if it can be implemented would put orbiter right up there with the big boys such as FSX/X-Plane IMO
deltawing777 is offline   Reply With Quote
Old 12-07-2010, 04:13 PM   #172
Poscik
Addon Developer
 
Poscik's Avatar
Default

Quote:
Originally Posted by FordPrefect View Post
 Hello Jarmo,

just now as you have been looking closer into the atmospheric rendering, may I suggest you may take a look at the stunning work of Eric Bruneton? In my humble opinion, he's created the most realistic looking real-time atmospheric rendering I have ever seen:

http://www-evasion.imag.fr/Membres/Eric.Bruneton/

Scroll down to the chapter "Atmosphere" and click on the images and the links Publication, Video and Code, with the last one being especially interesting for you.
Also see this document of Eric Bruneton:
http://www-ljk.imag.fr/Publications/...69/article.pdf

For some absolutely awesome views, watch the videos Eric Bruneton posted on youtube (9 in total):

YouTube - Real-time planet rendering

I hope this can be helpful for improving the atmospheric effects in your D3D9 Client?
I was talking about it earlier and tried to implement it. But there is one problem. Eric did this in OpenGL unfortunately. I have source code of his application, but completely don't understand how it works :/
Poscik is offline   Reply With Quote
Old 12-07-2010, 08:51 PM   #173
jarmonik
Beta Tester

Default

Quote:
Originally Posted by FordPrefect View Post
 Hello Jarmo,

just now as you have been looking closer into the atmospheric rendering, may I suggest you may take a look at the stunning work of Eric Bruneton? In my humble opinion, he's created the most realistic looking real-time atmospheric rendering I have ever seen
Thanks for the links. The D3D9Client is in a pretty good shape from the other parts, so, it may be a good time to start working on this sector. However, it may take some time to get results.
jarmonik is offline   Reply With Quote
Old 12-08-2010, 12:46 PM   #174
Shokus
Orbinaut
 
Shokus's Avatar
Default

I'm pretty new to D3D9, but nonetheless, very good work here and thanks very much! It runs awesome on my computer. But there is a small issue which could be a problem on my part. When I run D3D9 RC2, the fuel bars look a bit funny in colour, and Map MFD TGT becomes unreadable, which can be seen from the screenshot.
Click image for larger version

Name:	Orbiter 2010 [D3D9Client].jpg
Views:	58
Size:	139.3 KB
ID:	6323
Shokus is offline   Reply With Quote
Thanked by:
Old 12-08-2010, 07:04 PM   #175
Frankynov
Orbinaut
Default

Good News !
Having a new atmoshperic haze will be a huge addition and make your client liftoff from the original Orbiter :-)

I also hope it's gonna be easy to fix the AMSO meshes.. This is THE addon I wish to fly with your client.
(EDIT) : As seen in another post, it seems to be a protection feature for the mesh to not be stolen.. It's a pitty the protection is enabled even with another graphical engine

Btw, have you got PayPal ? Christmas is coming very quickly ! ;-)

Last edited by Frankynov; 12-08-2010 at 07:35 PM.
Frankynov is offline   Reply With Quote
Old 12-09-2010, 06:34 PM   #176
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Frankynov View Post
 I also hope it's gonna be easy to fix the AMSO meshes.. This is THE addon I wish to fly with your client.
(EDIT) : As seen in another post, it seems to be a protection feature for the mesh to not be stolen.. It's a pitty the protection is enabled even with another graphical engine
I didn't know AMSO had such a protection system. It must be true since it is mentioned in the AMSO documentation as well. In this case you should talk to Alain about it. It will be he's call how to make the AMSO to work under D3D9Client or there will be no AMSO for it. Since, it is a protection system, my legal rights are limited.


Here is also a minor update. The color and menu issues reported above are fixed.

Last edited by jarmonik; 06-13-2011 at 01:03 PM.
jarmonik is offline   Reply With Quote
Old 12-09-2010, 10:34 PM   #177
FordPrefect
Donator
 
FordPrefect's Avatar

Default

Hello Jarmo,

I am not sure if it has been reported before (I don't think so), nor if it is only an issue on my end, but it seems the ambient light level is fixed to a minimum > 0. When I set the ambient light level to "0" in the launch pad, I still notice a dim ambient lighting level. I noticed this because I usually prefer "zero" ambient light level when playing Orbiter.
Would be cool if you could check this - whenever you've got time to do so! Thanks!
FordPrefect is offline   Reply With Quote
Old 12-11-2010, 06:32 AM   #178
luki1997a
Orbinaut
 
luki1997a's Avatar
Default

Hello.
You did a lot of good work. I think, that you should add anty-aliasing and anizotropic filterring to make your client better. Sun lens could be good. Thank you for your client
luki1997a is offline   Reply With Quote
Old 12-11-2010, 09:02 AM   #179
Wishbone
Clueless developer
 
Wishbone's Avatar
Default

While going inside the DG-Mk4 in Orbit scenario, I get this with RC3:
.\Mesh.cpp Line:863 Error:-2005532292 Grp[g]->pMesh->DrawSubset(0)

and a spate of other popups which I block out by killing the client.

Of interest: while in external view, I'm getting high FPS (320+), the instrument panel view gets FPS to 12. I suppose there is much mem-allocation/copying going on around this stage.
Wishbone is offline   Reply With Quote
Old 12-11-2010, 11:04 AM   #180
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Wishbone View Post
 While going inside the DG-Mk4 in Orbit scenario, I get this with RC3:
.\Mesh.cpp Line:863 Error:-2005532292 Grp[g]->pMesh->DrawSubset(0)

and a spate of other popups which I block out by killing the client.
Is this a RC3 specific issue or does this exist in RC2 as well ?
If it is a RC3 specific issue then what will happen if you switch the "MemAllocLogic" from D3D9Client.cfg to "0" ?

Quote:
Originally Posted by Wishbone View Post
 Of interest: while in external view, I'm getting high FPS (320+), the instrument panel view gets FPS to 12. I suppose there is much mem-allocation/copying going on around this stage.
Orbiter will do some memory allocation when switching panels but not when the panels are running. Nothing like that should be going on.

Just to be sure. Is this a RC3 specific issue or does this exist in RC2 as well ?
Are there any errors logged in the D3D9ClientLog.html ?

For the reference, with the stock deltaglider I got the following framerates:
Exterior 300fps
2DPanel 370fps
Virtual 210fps
Glass 360fps
jarmonik is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project

Tags
d3d9client, graphicsclient


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 07:17 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.