Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
72 user(s) are online (33 user(s) are browsing Forum)

Members: 0
Guests: 72

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: 55€
(last updated 04/2021)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 19 users playing Freelancer on 45 servers.
August. 16, 2022

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 ... 6 7 8 (9) 10 11 12 ... 23 »


Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3520
Offline
FL's limited by D3D8's own 8 lights cap, so it should never go beyond that. You can add dynamic lights to stuff but FL's buggy about that (w0d swore at it for months because of it).

Posted on: 2016/10/9 1:50
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
Re: OpenGL Rendering
Just popping in
Joined:
2016/10/8 21:37
Group:
Registered Users
Posts: 10
Offline
Cool beans, but what I meant was does the shadowing affect everything? Like if your in front of a planet, asteroid, other ships, jump gate, etc.

And what I meant by directional lighting was this:

Open in new window

I'm guessing there is some kind of atmospheric lighting causing everything in system to be lit up on all sides, like this: (picture is big, so I linked it)

http://indus3.org/wp-content/uploads/ ... eric-light-scattering.jpg

This was a good read, don't know if you would be interested:

http://indus3.org/atmospheric-effects-in-games/#.V_pxgfkrKM8

Posted on: 2016/10/9 17:38
Top
Re: OpenGL Rendering
Just popping in
Joined:
2016/10/8 21:37
Group:
Registered Users
Posts: 10
Offline
Does opengl allow you to bypass the 8 light limit cap as Friendlyfire said that there is? How taxing is opengl on the game engine? i.e. stuttering, fps, etc? As for post processing, what kind of impact will that apply to the engine. From what I have seen in newer games it lowers the fps i.e. Guild Wars 2. With it on, it lowers fps, off the fps increase. Granted GW2 is poorly opitmized.

On a different note, does anyone else get this message when they try to make a post:

Invalid submission. You could have exceeded session time. Please re-submit or make a backup of your post and login to resubmit if necessary.

Posted on: 2016/10/9 18:11
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3520
Offline
1) The light cap was caused by the fixed-function pipeline, so the programmable shader pipeline Schmack uses doesn't have that restriction. The game should attempt feeding the extra lights even if it couldn't technically render them - you could see that in vanilla by attaching a bunch of lights to stuff, they'd flicker in and out because they'd get sent in a different order and D3D8 would stop at the 8th.

Only thing I'm not sure is if it caps the static LightSource lights to 8, since I've never had 8 such entries at once.

2) Post-processing is very lightweight. Anything you add will incur a cost in terms of performance, but that's not where the big drain is.

3) You get that error message when you take too long to post.

EDIT: And to address your previous post (which btw, you should try to avoid double-posting, just edit the first post instead):

1) Unless Shmack did something weird (and I don't see why he would've), all objects should be affected equally, so going behind a planet will block light, and objects in front of a planet will cast shadows onto the surface.

2) Directional lighting is like the most primitive thing you can have, so it's pretty obviously going to be in. Now, since FL's systems have an odd scale, you typically want to use a point light to represent the sun rather than a directional light (the parallel ray assumption doesn't hold anymore).

3) The image you linked has what's called participating media, i.e. fog. That'll soften the scene and illuminate everything. It's not particularly realistic to have that in space though, outside of nebulae.

Posted on: 2016/10/9 18:50
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 599
Offline
Just thought I'll let you know that I did not stop working on this. But I did not have much time due to university stuff, so not much happened since the last time. I started again a few days ago and made a lot of progress reversing stuff with the help of adoxa, FriendlyFire and the guys from FTOW. So now we know what models are being rendered plus some other stuff which hopefully will save me a lot of time.

I also fixed some rendering bugs and thought it looks really nice know. Here are some screenshots:

Open in new window

Open in new window

I am still months away from a release, so hopefully the images make up for that

Posted on: 2017/3/13 1:24
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/9/11 15:55
From Somewhere at Moscow
Group:
Registered Users
FLServer Admins
$$$ Supporters $$$
Senior Members
Posts: 1779
Offline
It looks more classic. Love it
How about performance?

Posted on: 2017/3/16 7:00
Open Sirius Mod
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 599
Offline
Thanks! I am mostly way above 100fps, even with this quite instruction heavy shader. I did not use the optimized version of all the formulas yet, because I can only do that when the parameters are final. So I expect the worse cases to get better.

My only problem for now is dynamic asteroids, since the way FL renders them in d3d8 seems not to be OpenGL friendly (or I have a bug there somewhere). But since now I know when they are being rendered I plan to use instancing so you wont notice a fps hit. But you'd need a dx10 (and OpenGL 3.3) capable graphics card for that. So for the old ones I'll try a different optimization.

Posted on: 2017/3/16 10:40
Top
Re: OpenGL Rendering

Joined:
2016/3/29 21:54
From England
Group:
Registered Users
Trusted Speciality Developers
Posts: 45
Offline
This is really cool. This reminds me of what ichiru is doing. He is currently rewriting the entire of FL to use the OpenGL engine if I'm not mistaken.

https://github.com/CallumDev/Librelancer/

If I may, how does this actually work? I'm assuming that this is still basegame freelancer.

Posted on: 2017/3/16 11:26
Way too ambitious for his own good.
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 599
Offline
Yeah, I know what he is doing. But it is not so much comparable as he has way more work to do than I have (even though what I have to do is a lot).

Basically I create an own d3d8.dll which wraps every call from FL to d3d8 and translates it to OpenGL. I chose OpenGL because I am not a DirectX fan plus you don't have that restrictions of the specific DirectX version. I can just mix e.g. OpenGL 4.5 ( which is dx11 equivalent) with the old fixed function pipeline from the 90s and don't have to worry about the version. The graphics card only needs to support it. This saves me a lot of trouble.

There is also injecting own code into FL done to get the texture names, model names etc.

Posted on: 2017/3/16 11:56
Top
Re: OpenGL Rendering

Joined:
2016/3/29 21:54
From England
Group:
Registered Users
Trusted Speciality Developers
Posts: 45
Offline
Oh cool. So you're pretty much telling the game to change how it renders objects altogether?

Posted on: 2017/3/16 12:01
Way too ambitious for his own good.
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 599
Offline
Yes plus I am also adding new stuff which is being rendered. Otherwise you would not see a difference.

Posted on: 2017/3/16 12:16
Top
Re: OpenGL Rendering
Not too shy to talk
Joined:
2010/3/13 20:29
From Victoria, Canada
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 69
Offline
Very interesting project. Spectacular results so far as well applied to vanilla Freelancer. I'm not much of a graphics programmer but I would be very interested in it and its internals for a project I've had floating around the back of my head for a while, and I'm sure it would absolutely shine with something designed around it.

Posted on: 2017/3/16 22:17
FLHook programmer
Top
Re: OpenGL Rendering

Joined:
2009/7/21 20:08
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 33
Offline
Amazing work mate.

Besides the achievement this is going to be extremely useful for the freelancer community as compatibility issues keep arising with newer GPUs (like white textures/low LOD syndrome on AMD).


Posted on: 2017/3/17 8:02
Alley, DiscoveryGC Developer
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 599
Offline
Thanks! I don't know if you've read my reply, but I solved the latter last Sunday: http://the-starport.net/freelancer/fo ... t_id=62352#forumpost62352 From what I gathered it is a windows problem since I had the same low res textures with my wrapper. I added it to the Limit Breaking 101 wiki entry.

@Kazinsal: Not sure what you have in mind but not that you get any ideas: I won't have the time and I don't plan to write another wrapper Also it will only work with Freelancer (I don't translate every d3d8 call plus you need some hooks to get the textures etc.).

Posted on: 2017/3/17 9:41
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3520
Offline
I can tell you it's not a Windows problem because our D3D9 implementation doesn't have that issue. As far as I know, it's a weird interaction between AMD GPUs and D3D8 games.

Posted on: 2017/3/17 14:06
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
« 1 ... 6 7 8 (9) 10 11 12 ... 23 »