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 (22 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: -165€
(last updated 12/2018)

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 40 users playing Freelancer on 29 servers.
December. 11, 2018

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 ... 10 11 12 (13) 14 15 16 ... 19 »


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: 546
Offline
@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
Top
Re: OpenGL Rendering
Just popping in
Joined:
2017/6/11 22:48
Group:
Registered Users
Posts: 9
Offline
Any new developments on the graphics?

Posted on: 2017/11/6 10:45
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: 546
Offline
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
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1753
Offline
Quote:

Schmackbolzen wrote:

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


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
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: 546
Offline
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: 12/11 20:36
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3509
Offline
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: 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
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: 546
Offline
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: 12/11 23:24
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3509
Offline
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: 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
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: 546
Offline
It highly depends on the model (vertices and texture coordinates). Unfortunately FL has a lot which don't go well with it

Posted on: 12/12 18:31
Top
Re: OpenGL Rendering
Just popping in
Joined:
2017/6/11 22:48
Group:
Registered Users
Posts: 9
Offline
So... how were your holidays?

Posted on: 1/8 18:23
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: 546
Offline
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: 1/9 11:07
Top
Re: OpenGL Rendering
Quite a regular
Joined:
2012/8/10 14:03
Group:
Registered Users
Posts: 180
Offline
Just dont forget to get some rest in between

Posted on: 1/10 12:45
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
$$$ Supporters $$$
Senior Members
Posts: 480
Offline
Hey ! I did a render in xNormal and I wish some feedbacks.

Here are some pictures :

Attach file:



jpg  {3509857D-1472-4505-9D78-FEA7023349E1}.jpg (212.55 KB)
5161_5a5b342c706ab.jpg 1920X1080 px

jpg  {F5CB3C0A-314B-40FB-AF18-EB0E96A82A9F}.jpg (214.28 KB)
5161_5a5b34c24dd91.jpg 1920X1080 px

jpg  {91FFAFFA-DE9A-4A66-AD48-811ACBA4731A}.jpg (220.45 KB)
5161_5a5b34d2dfff9.jpg 1920X1080 px

jpg  {E9B39718-DB62-48D5-B415-4B245B560819}.jpg (239.09 KB)
5161_5a5b34e43a66e.jpg 1920X1080 px

jpg  {38341B40-5E6F-404F-B98C-AF42241BA445}.jpg (206.75 KB)
5161_5a5b34ef57cd6.jpg 1920X1080 px

Posted on: 1/14 10:44
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2013/9/19 20:09
From Carbondale, IL
Group:
Registered Users
$$$ Supporters $$$
Posts: 212
Offline
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: 1/14 14:48
Top
Re: OpenGL Rendering
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3509
Offline
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: 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
Top
« 1 ... 10 11 12 (13) 14 15 16 ... 19 »