Orbiter-Forum  

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

Orbiter Visualization Project Orbiter external graphics development.

Reply
 
Thread Tools
Old 04-19-2018, 09:40 PM   #4486
kuddel
Donator
Default

Hi Jarmo,
nice you found some time

I've checked to see what differences there are and found some (minor) issue.

The local light is not "brighter than the sun", so your vessel still casts a shadow into the lit area.
That looked strange when hovering with the sun in the back...(see attachment)
Maybe a different render order would already fix that.

Not a big issue, but since you are there, you might have an easy solution at hand.
Attached Thumbnails
Local lights and sun shadow.jpg  

Last edited by kuddel; 04-19-2018 at 10:40 PM.
kuddel is online now   Reply With Quote
Old 04-20-2018, 08:14 AM   #4487
4throck
Enthusiast !
 
4throck's Avatar
Default

It works! Thank you for adding it.


But the effect is too sharp.
The inline client has a more natural light dropoff on the edges.

Here's what I get with downward facing Altair landing lights on:



Not complaining, just thinking about for consistency.
I know these things take time to get right!

Last edited by 4throck; 04-20-2018 at 11:44 AM.
4throck is offline   Reply With Quote
Old 04-20-2018, 01:39 PM   #4488
jarmonik
Beta Tester

Default

Quote:
Originally Posted by 4throck View Post
 But the effect is too sharp.
The inline client has a more natural light dropoff on the edges.
I double checked the math and couldn't find anything wrong.

What values of Penumbra and Umbra are used in your code for the spotlight ?

---------- Post added at 16:39 ---------- Previous post was at 16:36 ----------

Quote:
Originally Posted by kuddel View Post
 I've checked to see what differences there are and found some (minor) issue.
Sadly it isn't a rendering order issue so it gets a bit more complicated but I'll look into it.
jarmonik is offline   Reply With Quote
Thanked by:
Old 04-20-2018, 05:41 PM   #4489
kuddel
Donator
Default

Quote:
Originally Posted by jarmonik View Post
 Sadly it isn't a rendering order issue so it gets a bit more complicated but I'll look into it.
...no pressure
kuddel is online now   Reply With Quote
Old 04-21-2018, 09:57 PM   #4490
4throck
Enthusiast !
 
4throck's Avatar
Default

My mistake.

I was under the impression that the inline client had soft edges.
But it's an illusion generated by lower resolution terrain rendering:


But really there's no difference!
4throck is offline   Reply With Quote
Thanked by:
Old 04-24-2018, 01:07 AM   #4491
Abloheet
Addon Developer
 
Abloheet's Avatar
Default

Can a build of this version of the d3d9 client be also made for the latest orbiter 2016 beta revision?
Abloheet is offline   Reply With Quote
Old 04-30-2018, 03:23 AM   #4492
1987VCRProductions
Orbinaut
 
1987VCRProductions's Avatar
Default

I posted this in a different thread but on second thought I figured that it would fit better here, but I seem to have some issues with the sky glitching in Orbiter 2010 P1 running D3D9:

I'm having an issue which has only just recently popped up, and it only seems to happen with Orbiter 2010 P1 running with the D3D9 Client (R16.5 Build). Basically, Earth's atmosphere occasionally has this pixelated film that gradually disappears as you leave the atmosphere, going away completely at around 81km in altitude. I've been using 2010 and the D3D9 client on my Windows 10 laptop for months now and this issue is just now showing up. Any ideas on a fix would be greatly appreciated.









I was running a previous version (I think it was R15) and I upgraded to 16.5 in an attempt to fix the problem. It's kind of made things worse because the GDI compatibility check box doesn't seem to do anything anymore (no airspeed/altitude for shuttle landings etc).
1987VCRProductions is offline   Reply With Quote
Old 05-01-2018, 07:04 AM   #4493
1987VCRProductions
Orbinaut
 
1987VCRProductions's Avatar
Default

Disregard this. I found what was causing the issue. If you set Discord to recognize your install of Orbiter with D3D9 installed, it causes this glitch.

I still have issues with the latest version of D3D9 for Orbiter 2010 P1 (R16.5), I'm not seeing the altitude and airspeed readings for Shuttle Fleet vessels in the glass cockpit view when I deploy the air data probes. I have verified that GDI Compatibility is checked in the Video tab.
1987VCRProductions is offline   Reply With Quote
Thanked by:
Old 05-08-2018, 01:39 PM   #4494
jarmonik
Beta Tester

Default D3D9Client2016 R3 (Shadow Update)

Here's a new bigger update once in a while. The long waited feature of vessel self shadowing has arrived. Currently the shadowing is limited to focus vessel and any other vessel in close proximity. Shadows received by planet's surface and surface base buildings can be glitchy in some conditions, (Stock Atlantis and launchpad for an example), so these shadows are disabled by default. But there is a plan to fix that so no worries.

Shadow map size can be altered from D3D9Client.cfg (valid sizes 1024, 2048, 4096) default is 2048.
Attached Files
File Type: zip D3D9Client2016-R3.zip (1.69 MB, 44 views)

Last edited by jarmonik; 05-08-2018 at 01:41 PM.
jarmonik is offline   Reply With Quote
Old 05-08-2018, 02:04 PM   #4495
jarmonik
Beta Tester

Default

Kuddel

I was just thinking that we probably should convert the surface base meshes "structure_as" to a visuals (derived from vObject) so that we could add them to a visual object list and iterate through them in the main rendering loop in the Scene.cpp

PHP Code:
for (pv vobjFirstpvpv pv->next) {
    if (!
pv->vobj->IsActive()) continue;
    if (!
pv->vobj->IsVisible()) continue;
    if (
pv->type == OBJTP_VESSEL) {
        
pv->vobj->Render();
            
    }

Then we could deal with the buildings just like we do with the vessels. But it could also create some bugs. Those visuals wouldn't have OBJHANDLE available. Any thoughts ?

Also an other problem that has appeared is that we have reached the maximum number of flow control booleans in a shaders. I had to remove some non essentials booleans to get the new features to work. There's no easy solution to that.
jarmonik is offline   Reply With Quote
Old 05-08-2018, 07:53 PM   #4496
kuddel
Donator
Default

Hi Jarmo,

thanks for the shadow feature! I maneuvered around the ISS a bit and it looks very nice.

I found one little issue (sorry).
Could it be that some property of the ISS main solar panel texture is preventing it to "get" a shadow?
As seen in the attachments, the Shuttle casts a perfect shadow onto the "darker" central panels, but fails to do so onto the P6 (or was it S6) truss' panels...

The other way around however it works like advertised

Regarding the "unification" of Vessels and Base-Objects having a common Render() API, I like the idea.
I have not yet looked into that in any detail however

/Kuddel
Attached Thumbnails
shadow.jpg   no-shadow.jpg  
kuddel is online now   Reply With Quote
Thanked by:
Old 05-08-2018, 08:14 PM   #4497
kuddel
Donator
Default

Sorry, I forgot to add the test scenarios (for easier reproduction)

_shadow_test(1).scn : Shuttle above ISS' main solar panels
_shadow_test(2).scn : Shuttle above ISS' central (smaller) solar panels
_shadow_test(3).scn : Shuttle below ISS' main solar panels

...and I also forgot to express how much "wow" the self-shadowing adds to the sim!
Attached Files
File Type: zip Shadow_test_scenarios.zip (2.5 KB, 13 views)

Last edited by kuddel; 05-08-2018 at 08:25 PM.
kuddel is online now   Reply With Quote
Old 05-09-2018, 04:34 AM   #4498
jarmonik
Beta Tester

Default

Quote:
Originally Posted by kuddel View Post
 Could it be that some property of the ISS main solar panel texture is preventing it to "get" a shadow?
Yes, that appears to be the case. It's the translucency map that will sent the panels to Advanced shader and it doesn't have the shadow code. I forgot it. Not sure if a simple copy-paste works due to a flow control problem. The shader is broken and the translucency isn't working as it's supposed to, anyways. So, might be better to just disable the loading of translucency maps until the issues with the shader are fixed.

A hot fix is to delete the "issbso_*" translucency maps.
jarmonik is offline   Reply With Quote
Old 05-09-2018, 02:39 PM   #4499
4throck
Enthusiast !
 
4throck's Avatar
Default

Just tried the shadow update and it seems to work quite well.
A great improvement!
4throck is offline   Reply With Quote
Old 05-09-2018, 03:25 PM   #4500
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by 4throck View Post
 Just tried the shadow update and it seems to work quite well.
A great improvement!
Yes, very nice. Plays very well, even with a high detail model such as the SSU orbiter: https://www.dropbox.com/s/mu0vvzulh2...dowed.jpg?dl=0
DaveS is online now   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 12:48 PM.

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.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.