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

Members: 0
Guests: 83

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

Current balance: -190€
(last updated 04/2017)

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 59 users playing Freelancer on 42 servers.
September. 24, 2017

Browsing this Thread:   2 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 ... 8 9 10 (11) 12 »


Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
So for those who enjoy my videos here are two with the current state:
http://www.flnu.net/downloads/fl0807.mp4
http://www.flnu.net/downloads/fl0807li.mp4

Lots of internal fixes, fixed pipeline is gone (all shader now), optimizations and real post processing. I also added ambient occlusion maps. Plus I decided to scale down the ambient light intensity, since it is quite high in standard FL.

Still some work left, though. Feedback is welcome!

As always the stutters come from running FL server and FL on the same machine.

Posted on: 7/8 18:56
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
Ow! Details and specualrity of textures are gorgeous. It's perfect! I love it!

I have and idea, for heightmaps, it should be nice to compil them to vectorial format to make them raw material for future improvements and also to be edited with ease.

Posted on: 7/11 11:45
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
Yeah I really like to look, too At certain places I am even surprised how good it looks now. I am still working on improving it, though. I decided to ignore point lights since it is really expensive to cast shadows for those (and I have not implemented them). Here is a video from NY without the point light at the planet: http://www.flnu.net/downloads/fl1007.mp4

Skotty and I think it is still ok. Other places look even better, because the missing shadows made it look strange.

I plan to automatically do some stuff for planets anyway so it should not be needed and also look better later on.

Regarding the heightmaps: You're right, vector format is always better. I'll see what I can do.

Also two nice screenshot I took while testing:
Open in new window
Open in new window

Posted on: 7/12 21:16
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
Wow nice! It would be an awesome thing to make vector format be readable by FL. Like that it would be saved as the graphics would never be outdated and there should be only diffuse maps to change. I'm waiting your mod so hard!

And did you changed specularity for each texture or for each model and what does it make if you totally remove specularity from the texture or model? Just to see if Nomad ships and stations and also asteroid could use heightmaps without having a metallic look.

Posted on: 7/12 22:21
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
Hehe, I know I am teasing you, but here are two more videos where I really liked the look:
http://www.flnu.net/downloads/fl12072.mp4
Here this model is not modified, meaning only diffuse maps:
http://www.flnu.net/downloads/fl1207.mp4

Regarding the specularity: Since this is partially a PBR renderer, you have a BRDF and thus a roughness and metalness parameter for each material (also there will be some more like specular intensity for the environment maps). Currently I only know which model and texture is being rendered, so until we reverse more there will be a file where you can set all these values for each texture name (the names are taken from the .mat etc. utf nodes). I will try to make it not a pain to edit and preview those values

Posted on: 7/12 23:37
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
Nice renders! They are really beautiful. Shadows? Are you kidding? No? Or I don't remember well? @_@

Thanks for the explanations . It's nice to see that things become nicer and nicer over the time.

How did you implement these "sliders" to change metallic look, will it be editable ingame, via utfeditor or with a third party software.

Roughness map?... =_= I thought I knew every thing about rendering maps but here, it's totally new! Thanks to have allowed us to have a better knowledge in computer rendering.

Posted on: 7/13 11:41
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
There is quite a lot material out there e.g. https://learnopengl.com/#!PBR/Theory in the end there are some maps mentioned (I don't have implemented all of them and there are a lot more possible maps). Currently I calculate the roughness from the luminance of the diffuse map in the shader, if there is no existing roughness map. You're probably not interested in the math part, but there is also other interesting stuff in the article.

Keep in mind that there is not "the" rendering technique. My solution is also a variation of different techniques combined, which is not unusual.

Regarding the material values: I think that I can create a program with a preview ( I already have a renderer which can load the cmp and mat files etc.). But its possible that I postpone that for after the release of the wrapper.

Btw. shadows have been there quite early and it is also one of the last things on my list: I want to exchange them for a better shadow rendering technique.

Posted on: 7/13 15:25
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
Ok! I have take a short look at your link, that was exactly what I thought about PBR. I already watched a podcast on Youtube about this were they said that each real life material has its virtual clone made by technicians, engineers and artists. Nice to see that finally asteroid, planets and Nomad structures will benefit of all modern techniques and carry some consistency, the game would become really photorealistic.

As for maths, give me a link, please? I could understand it.

I know that there is not only ONE technique. you have not to use every maps because if you already use height maps to make the relief what is the need to use bump and normal maps? Height maps are far more powerful than bump and nrm maps! Are height maps more resource demanding than bump or nrm maps?

Thanks for creating the material viewer, it will be very useful for us.

I was talking about model shadows where you can see the shadow of your [ship] at Kusari Battleship hull, it's quite nice, I like it!

Edit : Is there a way to have emissive maps, it could improve lighting.

Edit 2 : [ ] = edition

Posted on: 7/14 10:18

Edited by Freestalker.fr on 2017/7/14 10:35:10
Edited by Freestalker.fr on 2017/7/14 13:04:52
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
Ah I see, but it's just from the normal shadow rendering. So nothing new here The new technique should only create sharper edges and a larger shadowed area (it's quite limited right now).

I was referring to the math in the same article, but if you are familiar with all those expressions here is a nice article which goes into more detail: http://renderwonk.com/publications/s2 ... ading_hoffman_a_notes.pdf

Regarding the maps: The names are a little bit problematic because often e.g. the name bump map is used for a normal map but there are also the old dot3 bump maps (which are greyscale). So to prevent misunderstandings you always have to make sure what map the author exactly is meaning with the name. Glossiness and roughness map can also be the same because 1-roughness is usually glossiness. But there also is specularity, which can be converted to glossiness etc., which again depends on your lighting formula. So you really have to pay attention.

It makes sense to mix height and normal maps because then you can put all the fine details onto the normal map and the real visible height difference go into the height map. (This is how I do it plus the normal maps are a variation of valve's ssbump maps so that they have self shadowing baked in using the appropriate height map). I will explain all the maps I use when the wrapper gets released (there might still be changes until then).

Usually I test the specific map and if the benefit is not high enough I don't use it. But I am open for suggestions, even after the release.

Posted on: 7/14 11:35
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
Edited last post.

It's more physic than maths. It looks like my CPGE cours (Cours Préparatoire aux Grandes Ecoles to become an engineer via an engineer school not via a master, if I had 1 or 2 years more to learn what I had to learn it should have been better but I can't redo the past... ) but here it's optic and I like this so it shouldn't be too hard to read.

I know the difference between bump and nrm, I already noticed that there is some misconception about these terms.
I walked around textures in games DS1 and Nexus TJI and every time alpha channel was used for a specific map and I tried to extract those alpha channel and that was not so difficult to do via Paint.net and its channel mixer.
So we can use every maps for a different task that they were intended to be used. e.g. in DS1 they use the "normal map" to make alter color appearance.

I've an idea! Mix nrm and height maps in one file and use the alpha channel to mix them, like this it should drastically reduce the files number and also reduce the amount of space used by the wrapper.

Posted on: 7/14 13:41
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
Actually, I already compress the normal maps with ATI2N format and the height maps have ATI1N. So it is the smallest it can get. But you're right you could use maps for different purpose, as long as the texture compression doesn't stand in the way.

I see that you have some knowledge about the topic and especially the mathematic background (which is good). Of course it is more physics, but the used tool is mathematics Maybe once it is released you can try to experiment with the shader code of the wrapper to test different lighting models out, if you are into that stuff. There might be even a better looking one than I use now.

Also there are emissive maps: FL uses them, so they are availlable.

Posted on: 7/14 18:06
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
I've begun to read the cours about light.

To summary the more homogeneous in refraction a medium is, the less it scatter. Also the more complex light transmission is, the more absorption is. (a+jb : 0+100j = 100 (cos90° + j sin90°) = 100 (cos(pi/2) + j sin(pi/2)) = full absorbtion of a wavlenght?) There is also integrals to do with an interval from 400 to 700 nm I think.
The less rough a surface is, the more it's reflective and the more rough a surface is, the less it's reflective and it become as dull as diffuse map.

[Edited grammar and translation mistakes]

Posted on: 7/16 17:05

Edited by Freestalker.fr on 2017/7/16 17:10:41
Edited by Freestalker.fr on 2017/7/16 17:12:28
Edited by Freestalker.fr on 2017/7/17 0:18:14
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
We should talk about it via PM, it could be better and it would not flood the topic. If I did not understand something it would be better to do it.

I haven't finished to read your documents so I should have been wrong with some concepts.

Posted on: 7/18 16:30
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2008/7/8 21:15
From Germany
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 490
Offline
Yeah, pm is better. I am currently learning for an exam next week so not much time either.

Posted on: 7/18 19:44
Top
Re: OpenGL Rendering
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 433
Offline
Ah! Understood! Good luck! The fight will be so long that brains will go on fire!

Posted on: 7/19 19:57
Top
« 1 ... 8 9 10 (11) 12 »