Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 12 users playing Freelancer on
42 servers. | March. 30, 2023 |
Browsing this Thread:
1 Anonymous Users
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:
605
![]() |
@eigos: They just lie in a folder and if the texture from a mat file is being loaded has a file with the same filename in it (e.g. "STADTL1_256.tga.dds" ) this one is loaded. Same applies to normal and ambient occlusion maps plus any future maps I might add (each have an own folder). I don't know which material is being used, yet.
Actually I am quite surprised how well it looks now. Had some small ideas and the combination of them plus some rendering fixes really work well. E.g. I was not expecting how well it works here (apart from the rocks): http://www.flnu.net/downloads/fl1510.png Today I finally was able to fix the fake lights in nebulas (fog did not work), so here is a video: http://www.flnu.net/downloads/fl1510neb.mp4 There is still some work left, but we are getting closer ![]()
Posted on: 2017/10/15 17:30
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Just popping in
![]() ![]() Joined:
2017/6/11 22:48 Group:
Registered Users
Posts:
12
![]() |
Any new developments on the graphics?
Posted on: 2017/11/6 10:45
|
|||
|
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:
605
![]() |
Just boring stuff. Tested window management and OpenGL context creation with SDL2, but sadly the event processing breaks the controls. Plus it does not fix the wrong resolution in fullscreen mode (since FL manages the window, something seems to break there). Also I had to patch SDL2 to make it use an existing window with OpenGL.
I also did some further clean up and optimizations. On my NV 970m it is now nearly about 1,5 times faster as the original d3d8 renderer (with disabled shadows), but on my AMD RX480 the d3d8 renderer is faster. So either a driver problem or I am doing something wrong / something the driver does not like. Not much left I can do, though, since I have not that much control about how FL renders things. Sadly weapons fire also seems to impact FPS (on AMD). This is something I need to investigate further. I tested the newer OpenGL debug callback functionality, but neither on AMD nor on NV this helped. Shadows also seem to impact the FPS a lot, but not when generating the maps, but when using them in the shaders. So I'll have to investigate whether this is normal or not. Could be a fillrate problem, though. The scenes I am testing with have a lot of overdraw, since FL renders back to front and there a hundreds of objects. A z-prepass could help here. I also have been working on getting the TB vectors generated like presented here: http://crytek.com/cryengine/presentat ... tangent-space-calculation (there is existing c++ code but I need to adapt it to the UTF Editor code in c#). As you can see, nothing of interest for the normal user (who doesn't understand anything of the above anyway). I will post progress here when I have to show something new ![]()
Posted on: 2017/11/6 14:23
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Starport Admin
![]() ![]() Joined:
2008/2/26 20:36 From Germany
Group:
Webmasters Registered Users
Posts:
1791
![]() |
Quote:
Maybe you find this interesting: http://forge.the-starport.net/project ... diff/UTFEditor/UTFForm.cs (we also had to add tangent/binormal data for our normal maps etc. in Freeworlds) Or do you use the tangent data as provided by the UTF editor? Is it faulty?
Posted on: 2017/11/7 11:13
|
|||
aka chaosgrid http://www.freelancerserver.de https://www.moddb.com/mods/fwtow |
||||
|
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:
605
![]() |
Sry, I am again very busy due to university and my student job.
@Wodka: Yes, this implementation produces wrong TBN data. I have modified it locally and also added code so that new vertices can be inserted. Currently I recalculate all normals and duplicate vertices in case the angle between the normals is too large. But this is only a stopgap measure until I can convert the code I linked above, since there are still case where the TBN data is wrong. Plus everything looks very edged right now since the original normals were smoothed a lot. Maybe I also should have a look at your MAX plugin in case you have used a better algorithm there. I hope that I can get a public beta test running after I had some time off during the upcoming holidays, but no promises. It will only work on our New Universe server so you would have to check out our mod. I'll probably use the current ugly shadow implementation, but at least you could test it out. We will see...
Posted on: 2017/12/11 20:36
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Starport Admin
![]() ![]() Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
3520
![]() |
You'd have to detail what's wrong about it because it's been in use with FW for years now without any issue whatsoever.
Posted on: 2017/12/11 23:15
|
|||
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
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:
605
![]() |
You can read about that in the linked presentation. Also I only tested the UTF version. Wodka once wrote to me that you don't use that. As far as I remember there also was problem with references in the vector maths and thus wrong results. But since you don't use it anyway I never committed it.
Posted on: 2017/12/11 23:24
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Starport Admin
![]() ![]() Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
3520
![]() |
We've used both actually. New models use the 3ds Max exporter, but older ones were just upgraded through the UTF ed. I haven't noticed errors with either.
Posted on: 2017/12/12 18: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 |
||||
|
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:
605
![]() |
It highly depends on the model (vertices and texture coordinates). Unfortunately FL has a lot which don't go well with it
![]()
Posted on: 2017/12/12 18:31
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Just popping in
![]() ![]() Joined:
2017/6/11 22:48 Group:
Registered Users
Posts:
12
![]() |
So... how were your holidays?
Posted on: 2018/1/8 18:23
|
|||
|
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:
605
![]() |
I have skipped them and worked on my master thesis instead since it takes days of calculations to test all the parameters for the evaluation and thus needed to finish the code for every test I need to do as soon as possible. It is looking good right now, but you never know what is coming next
![]() Btw. you don't need to ask all the time. If I don't post I did not make enough progress (as I wrote before). I need to find the remaining bugs (e.g. fullscreen does not work correctly) and you never know how much time that will cost. I have done some small things (like using much better dds compression for the textures), but you won't see that in a video.
Posted on: 2018/1/9 11:07
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2012/8/10 14:03 Group:
Registered Users
Posts:
231
![]() |
Just dont forget to get some rest in between
Posted on: 2018/1/10 12:45
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Home away from home
![]() ![]() Joined:
2010/6/13 10:58 From France
Group:
Registered Users $$$ Supporters $$$ Senior Members
Posts:
505
![]() |
Hey ! I did a render in xNormal and I wish some feedbacks.
Here are some pictures : Attach file: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posted on: 2018/1/14 10:44
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Just can't stay away
![]() ![]() Joined:
2013/9/19 20:09 From Carbondale, IL
Group:
Registered Users $$$ Supporters $$$
Posts:
212
![]() |
My question is where so I pick up the software? Groups I worked with in the past (2008-9) fell flat trying to get a .dds DXT5 implementation into the FL engine for at least some normals mapping. And your renders look good. Can you change the lighting angle a bit more oblique to show the height variation a bit more? Also does it stand up w\ lod distances? I'd shoot someone to get normal mapped textures on my ships. Whatever you're doing is getting close. There are other people doing normals on other threads, but I think they're running down the same paths that dead ended when the output worked only on a certain class of graphics card.
So again, what software and where do I filch it? And is it on implemented in the modeler or through the graphics?
Posted on: 2018/1/14 14:48
|
|||
|
Re: OpenGL Rendering |
||||
---|---|---|---|---|
Starport Admin
![]() ![]() Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
3520
![]() |
There's no "software". Schmack created an OpenGL implementation himself, from scratch, which hooks into Freelancer and replaces the renderer in large part. All you do is feed the game the new textures it'll need and that's it, provided you have the renderer.
There are only two such implementations right now: his, and Freeworlds'. Neither are currently released for other modders to use, though Freeworlds is already out there to play with.
Posted on: 2018/1/14 15:10
|
|||
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|