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
37 user(s) are online (19 user(s) are browsing Forum)

Members: 0
Guests: 37

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

Current balance: 60€
(last updated 03/2020)

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

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 113 users playing Freelancer on 45 servers.
May. 24, 2020

Browsing this Thread:   2 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 2 3 (4) 5 6 7 ... 22 »


Re: Effects showroom!
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1783
Offline
Quote:

Schmackbolzen wrote:

I am not going the deferred rendering way like Freeworlds did, so think of it like an upgrade of graphics for not so fast machines (since deferred rendering takes a lot memory and memory bandwidth).


You're saving yourselve a lot of headaches, that's for sure. But even without deferred, you can do lots of awesome stuff as you already did, but I doubt the newest features of graphic cards are really needed (geometry shaders etc..).
FL doesn't even use programmable shaders so that's already a huge step forward.

Good job!

Posted on: 2013/7/18 15:35
aka chaosgrid
http://www.freelancerserver.de
https://www.moddb.com/mods/fwtow
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: 586
Offline
Thanks! Yeah, I know that it is way more work and thus decided that more lights are not worth the hassle. With the shader power of modern hardware it should be possible to render more than the old 8 lights maximum anyway (FL only uses 2 in space!). Plus only newer graphics cards have enough memory and memory bandwidth to not take a large performance hit.

Geometry shader etc only would be for optimizations, I have seen some techniques using them for further speedup. So this again would be optional (on some older cards they even make it slower...).

Thanks also for separating the posts into two threads, with the number growing it really was necessary.

Posted on: 2013/7/19 13:18
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2009/8/30 8:36
From Bay Area, CA, USA
Group:
Registered Users
Senior Members
Posts: 379
Offline

Posted on: 2013/9/9 1:04
"Before I start, I'd like to apologize from all my heart in front of everybody for all the bad things I've done before posting this thread. (Sizer, I'll ALWAYS hate you)" - TheDVDMan
Top
Re: OpenGL Rendering
Home away from home
Joined:
2008/2/17 23:28
From new jersey usa
Group:
Registered Users
Senior Members
Posts: 905
Offline
this looks good would like to play this mod and see it up close.

Posted on: 2013/9/9 15:26
Open in new window
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: 586
Offline
Nice video, but wrong topic Unless you magically switched to OpenGL

Posted on: 2013/9/9 16:17
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: 586
Offline
I know it has been some time (quite a lot actually), but I had some other stuff to do plus I put it aside for some time to get new ideas (which I got plenty of now).

Here are the newest screens where I tested the new automatically upscaled + filtered textures. I also changed the normalmaps so that it doesn't look too much like plastic.

Open in new window

Open in new window

Open in new window


There is still some testing, bug fixing and optimization to do, but at least I got some ideas how to get around some problems. For now it runs on my AMD graphics chips and on my Intel hd4000 (which has one more bug I need to find).

Posted on: 2015/1/16 14:17
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2009/4/8 11:06
From USA
Group:
Registered Users
Senior Members
Posts: 276
Offline
Looks great Schmackbolzen. +1 Sizer, you guys continue to always impress. +1

Posted on: 2015/1/17 19:09
Open in new window
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: 586
Offline
Just to keep you guys updated: I am still working from time to time on this. Thanks to FF and the FTOW guys I now know what is being rendered (well, besides which lod level) and thus could include some basic shadow rending (although there are still some bugs).

Here is a screenshot:
Open in new window

And here a short video:
Link

Keep in mind that there is still work to be done. Ideally I don't use simple filtered shadow maps so that the edges of the shadows don't get so blurry. But before I use more complicated algorithms the rest has to work well enough

Edit:
I got a request for a video with a larger player ship:
Link

Posted on: 2016/8/6 20:03
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3520
Offline
You can actually fairly easily work around the LOD issue by giving Freelancer the wrong render information and adding a correction matrix to all SetTransform calls involving the world transform. The correction matrix would simply move the view from the player ship to the light.

The downside to this technique is that FL's occlusion culling will prevent stuff behind the camera from rendering, so you have to render twice with rotated views and a ~180 deg FOV. This can get a bit expensive with cascaded shadow maps like Freeworlds uses.

Posted on: 2016/8/7 2:07
"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: 586
Offline
Well, my approach does not involve letting FL render for now. I keep a list on what is being rendered and update the positions before I render the list for shadows. Everything which is too far away is not added, so at least I will not get the lower LOD levels added. I also filter vertex and index data which is streamed. I hooked the function which is called when a CObject is destroyed to remove it from my list. And of course when index and vertex buffers get deleted these entries also get removed. There are still some glitches though, so for now it is not working 100%. And I will have to think about the streamed data, because planets etc. are missing for now. With this approach asteroids etc. also don't cast any shadows (because I don't get the CObjects from them). But at least the shadow rendering is very fast.

The problem regarding the matrices I asked you about was, that I had to multiply the modelview matrix from FL with a
Code:

1 0 0 0
0 1 0 0
0 0 -1 0
0 0 0 1

matrix. After that I could get it to work.

Posted on: 2016/8/7 10:27
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: 586
Offline
So I got most of the glitches fixes, looking good so far. Here is a short video: Link

The short stutters come from running FL and the server on the same machine. The shadow flickering is due to a state change I did not find yet, but will be fixed at some point.

I think I am nearly ready to test some of the advanced shadow rendering techniques.

Posted on: 2016/8/8 16:48
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: 1761
Offline
Super! Even with turret animation
Now it is more atmospheric with shadows, etc.!

Posted on: 2016/8/8 18:58
Open Sirius Mod
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 203
Offline
very well done

Posted on: 2016/8/8 19:12
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1783
Offline
Great job! Do you use cascaded shadow maps or only one shadow map?

Posted on: 2016/8/8 21:12
aka chaosgrid
http://www.freelancerserver.de
https://www.moddb.com/mods/fwtow
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: 586
Offline
Thanks all!

@HeIIoween: The turret shadows actually were a bit tricky since FL renders them as part of the stations. But I guess since you noticed them the effort was worth it Currently the only problem is, that their shadows vanish when the turrets are out of sight.

@w0dk4: For now it is one PCF filtered shadow map. But since most of it works now the next step is exchanging it with a better technique. If I get PSSM shadows to work nicely I plan to use them.

Also planets still don't cast shadows. I am not sure if this is so bad that I should invest time trying to solve it.

Posted on: 2016/8/8 22:46
Top
« 1 2 3 (4) 5 6 7 ... 22 »