The Starport
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord
  • Register
  • Login

New Renderer (OpenGL 3.3)

Scheduled Pinned Locked Moved Programming & Tools
349 Posts 41 Posters 234.6k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by,
    #4

    I am not sure I understand the question. In the pictures there is no normal mapping yet. Just standard normals, which are 32bit per dimension. I was surprised how good it looked without it (hence the pictures). Guess it is the lighting model I choose, which is not Phong (obviously). I experimented a lot with such models some time ago.

    And yes, of course it works with OpenGL (wine runs it too, like many other games), the problem is getting there. For which you have to know your stuff, even looked at the wine sources for some things so that I don’t reinvent the wheel.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    Freestalker.fr Historic Supporter
    wrote on global:last_edited_by,
    #5

    Lighting isn’t bad at all.

    What lighting type do you use?

    1 Reply Last reply
    0
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by,
    #6

    I found some papers and implemented some of their solutions. Basically it is a mixture of different models. There even is a color shift of the reflection depending on the viewing angle. If you read up on it you can quite easily mix the equations and build one to your liking. There are also papers which compare different lighting models. And as always I am not quite satisfied with the results yet 😉

    There also is still a problem with dark spots in combination with compression artifacts and the resulting reflective color. So it is not finished yet. The shader is taken from my own 3d engine.

    The next step is getting the name of the texture which is currently active. Lets hope I somehow get it 😉 Without it it gets quite hard to do more.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    Freestalker.fr Historic Supporter
    wrote on global:last_edited_by,
    #7

    Do I have a lot to read about lighting?

    1 Reply Last reply
    0
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by,
    #8

    Depends on how good your math understanding is. It’s nothing too complicated, although you should be able to read/understand the formulas and convert them to shader code.

    P.S.: I got the texture names now, so that is out of the way.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    lybxlpsv
    wrote on global:last_edited_by,
    #9

    Just putted every lights as dynamic light and DX9 hook from FW TOW.



    However I can’t get proper cone headlight, how to make a cone headlight? The light seems didn’t show up if lightsource_cone below 180.

    1 Reply Last reply
    0
  • SkottyS Offline
    SkottyS Offline
    Skotty Wiki Contributor
    wrote on global:last_edited_by,
    #10

    lybxlpsv wrote:
    However I can’t get proper cone headlight, how to make a cone headlight? The light seems didn’t show up if lightsource_cone below 180.

    Probably because it’s not made for such lights? Or probably it’s not implemented yet.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by, Schmackbolzen
    #11

    Some corrections + normal- and parallaxmapping. Still WIP.




    What do you guys think? This site could still use better image handling (so right click on the image and select “view image” or smth like that) 😉

    1 Reply Last reply
    0
  • F Offline
    F Offline
    Freestalker.fr Historic Supporter
    wrote on global:last_edited_by,
    #12

    WOW! Phenomenal!!! really awesome! It looks chrome-plated though.

    1 Reply Last reply
    0
  • D Offline
    D Offline
    DirtyLittleGirl
    wrote on global:last_edited_by,
    #13

    Yea, extremely good, but could be better 😜

    1 Reply Last reply
    0
  • SkottyS Offline
    SkottyS Offline
    Skotty Wiki Contributor
    wrote on global:last_edited_by,
    #14

    DirtyLittleGirl wrote:
    Yea, extremely good, but could be better 😜

    I guess you have to tell exactly WHAT could be better, otherwise he doesn’t know it.

    1 Reply Last reply
    0
  • D Offline
    D Offline
    DirtyLittleGirl
    wrote on global:last_edited_by,
    #15

    Skotty., hey, dont be so angry. I thought it’s obvious.
    For better result vanilla texrures must be redrawn a bit and normals must not smooth panel details so much (to avoid ‘chrome’ photoshop-filter-like effect). This is very easy, but result will look bit better.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by, Schmackbolzen
    #16

    Yeah, the base textures are not easy to work with, also the heightmaps are not ideal. I don’t have the time for proper textures 😉

    Also the material settings matter a lot and maybe I will change the lighting model again. Here is an example how easily 2 values change the look:


    I think it looks better than before, though.

    1 Reply Last reply
    0
  • T Offline
    T Offline
    Timmy51m Historic Supporter
    wrote on global:last_edited_by,
    #17

    Looks like plastic wrap from photoshop!

    1 Reply Last reply
    0
  • D Offline
    D Offline
    DirtyLittleGirl
    wrote on global:last_edited_by,
    #18

    Timmy51m wrote:
    Looks like plastic wrap from photoshop!

    Thats the only trouble i think

    1 Reply Last reply
    0
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by, Schmackbolzen
    #19

    Plastic I can do 😉

    Note: Plastic doesn’t have a reflectance with the own material color. It’s usual plane white.

    The problem mostly is, that gray still results in a white reflectance color. Maybe that is an issue of the lighting model. An issue I will have to look at later.

    1 Reply Last reply
    0
  • H Offline
    H Offline
    Huor
    wrote on global:last_edited_by,
    #20

    guess metal should look like metal, unless its more an alien raw material. i would remove those hightmaps. Bases and ship hulls looking like “Streuselkuchen” dont really look nice and i dont think menkind would ever produce something like this ;D

    But so far the approach of something like this on your engine is good.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    Schmackbolzen
    wrote on global:last_edited_by,
    #21

    Hehe, that is a decision of the texture artist, not mine. I just choose vanilla textures as an example, because everybody knows them.

    P.S.: It is not an engine, just a wrapper from d3d8 to OpenGL plus some changes. I plan to release it for everyone as soon as I think it is polished enough (which will take some time, since as always I have other projects in parallel + university stuff).

    P.P.S.: I am not finished implementing rendering techniques. Parallax mapping etc was just the start 😉

    1 Reply Last reply
    0
  • D Offline
    D Offline
    DirtyLittleGirl
    wrote on global:last_edited_by,
    #22

    Yes, all is just perfect except this glossy blured look. Try to normalize only plates’ edges

    1 Reply Last reply
    0
  • T Offline
    T Offline
    Timmy51m Historic Supporter
    wrote on global:last_edited_by,
    #23

    Initially I was really looking forward to FW:TOW dx9 being released for vanilla just because of the normal mapping, but after having a tinker with a few vanilla models in their old demo I wasn’t so keen anymore, I think the textures are too small and don’t lend themselves to normal maps very well either. No doubt someone with a lot of time on their hands and some good skills can do better than I did, but would be a lot of effort so good luck to you!

    I tried using models from X3 and spaceforce however, and the results were awesome, so as with FW:TOW itself, with the right material it’s all good 🙂

    If anyone has actually managed to make any of the vanilla models look good with normal maps etc I’d love to see some pics.

    1 Reply Last reply
    0

  • Story Mission level requirement
    C
    CommanderArgelo
    0
    11
    52

  • Crash Offsets
    J
    josbyte
    0
    231
    251.4k

  • Capital ships shield collision detection
    C
    CommanderArgelo
    0
    3
    17

  • Dropping a phantomloot cargo from an NPC
    C
    CommanderArgelo
    0
    5
    26

  • Incorrect Shield Value on HUD
    C
    CommanderArgelo
    0
    4
    19

  • @Adoxa - Wheel Scroll plugin improvements
    AingarA
    Aingar
    0
    3
    20

  • Release: Advanced Renderer v. 1.1 beta 1
    S
    SWAT_OP-R8R
    3
    50
    428

  • German Mod Tutorials? 2024 Mod Tutorial?
    S
    SWAT_OP-R8R
    0
    18
    66
  • First post
    Last post
0
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord