Author Topic: Relief Mapping  (Read 8241 times)

0 Members and 1 Guest are viewing this topic.

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Thanks to taylor, we've had normal mapping since the Xt builds. Along with it, we've had support for reading height maps for a while but the shaders never did anything with them.

So I'm pleased to finally announce some formal height mapping support in Freespace. I've coded relief mapping which will finally allow our models to have raised/depressed occluding surfaces not part of the mesh.

Screenies:

Axem's Rahu:


Axem's Rahu (Without Relief Mapping for comparison):


Height Maps Are Cool:




Win32 Test Build:
https://drive.google.com/open?id=1lcLeNWAk5flAiO90XeiynfAEY0Wl7FpY

Win64 Test Build:
https://drive.google.com/open?id=1bdZ1MmaHjWktoeZo5OKDDRLya7xg5LzJ

WIP Source:
https://github.com/SamuelCho/fs2open.github.com/tree/relief_mapping

No test data included but maybe Axem can post the test models he gave me here (Or give me permission to share them)

 

Offline Oddgrim

  • 29
  • I like building stuff.
    • Art Thumblr
ooooh... moar shinys! *grabs build*  :D
[GhostOfMjn: I can provide hi res vasudan ass]
[Hades]: we have so much in common we should bang.
My models page:
http://p3d.in/u/Oddgrim

 

Offline niffiwan

  • 211
  • Eluder Class
oooh oooh oooh, very nice sir, thank you!  :yes:
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Does that mean that damage decals can now cause depressions in a target's hull?
The Trivial Psychic Strikes Again!

 

Offline Luis Dias

  • 211
is dis some form of geomod

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Does that mean that damage decals can now cause depressions in a target's hull?

m!m's screenspace decals write diffuse and normals into the gBuffer, no height data. Getting the same occlusion effect in there might be a bit trickier so that's something I'd have to get back to you on.
« Last Edit: January 12, 2018, 11:10:15 am by Swifty »

 

Offline Axem

  • 211
No test data included but maybe Axem can post the test models he gave me here (Or give me permission to share them)

I hereby give Swifty S. Swifterson permission to release the test models. (Note to people checking out the Rahu, that isn't quite the final model yet. I have a few small things to change still!)

 

Offline Nyctaeus

  • The Slavic Engineer
  • 212
  • My "FS Ships" folder is 582gb.
    • Minecraft
    • Exile
Yes! Freaking yes! Finally! I was waiting for this since I bought Substance Painter :D. Great job guys!

Some of my newer models like Anteros or Schrodinger have heightmaps if anyone is looking for some test subjects.
Exile | Shadow Genesis | Inferno | Series Resurrecta  | DA Profile | P3D Profile

Proud owner of NyctiShipyards. Remember - Nyx will fix it!

All of my assets including models, textures, skyboxes, effects may be used under standard CC BY-NC 4.0 license.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Next up: I hope it will be displacement mapping and tessellation. And real-time environment PBR mapping and lighting.
« Last Edit: February 16, 2018, 10:18:44 am by Bryan See »
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Someone's trying really hard to win Buzzword Bingo today...
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 
Could we get non-AVX2 build for win64?  ;)

 
Anything become of this? There is quite a bunch of ships having Height maps prepared by now...

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
I've always had heightmaps available but that's just because I've used them to generate dumb normalmaps with a GIMP plugin.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 
There was some discussion on Discord (#SCP) today.