Shaders Operational

Development directions, tasks, and features being actively implemented or pursued by the development team.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

chuck: that was only one of the bump maps---also your conversion technique must have some small bug in it... it doesn't look right in engine because the images must be rotated so they face northerly
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

hellcatv wrote:chuck: that was only one of the bump maps---also your conversion technique must have some small bug in it... it doesn't look right in engine because the images must be rotated so they face northerly
Fixed (I hope) back in the same link. Not sure what other bump maps you refer to; I only saw one in the link Phlogios posted.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

Everybody is so busy checking out the ship details nobody is looking at the scenery :lol: so to make up for that here's a fun one :shock:

Image

Where's Space Ghost :?:

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

which system is that in...
probably more textures that need to be reverted until safemode has some idea of why certain textures appear to be white
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Rings could use a 1D, radial texture; unless you want them braided. What could never happen in a trillion years is having two ring systems at an angle.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

Beyond that is the fact that part of the rings are showing up in front of the planet.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

well that could be fixed by subdividing the ring mesh more---it's an option in the system file...
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

The system is Agea i was on my way to the War jump point and the rings caught my eye forgot to target it for max info sorry.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
rigelan
Confed Special Operative
Confed Special Operative
Posts: 291
Joined: Sat Jan 28, 2006 2:58 am
Location: Des Moines, Iowa

Post by rigelan »

I found one of those in Everett, I think. Pretty exciting! Lots of little issues in that one.

Image
Phlogios
Confed Special Operative
Confed Special Operative
Posts: 298
Joined: Sun Jul 30, 2006 1:38 pm
Location: Sweden
Contact:

Post by Phlogios »

I have finished a bump map for the Ancestor ship. It is up on my ftp at: http://uku.hansaworld.net/~gustav/Ships/VS/bumpmaps/

I guess you don't have to post screenshots, because HellcatV is making a Mac build for me :D, but if you want to (I know you just have to, klauss) please do. I'm not implying anything :P

Does anyone mind me making a bump for the Schroedinger?
"Enjoy the Choice" - A very wise man from Ottawa.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

Does anyone mind me making a bump for the Schroedinger?
Well someone has to do it :wink: and you are setup for it after all lots of other ships to do enough for all 8)
Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Just an idea, chuck - what about adding some low-frequency noise to the panels in the bumpmap?
I bet that would look a lot better than a flat bumpmap, and you can easily try it in the engine now ;)
Just an idea of something that could be standardized, instead of flat bumpmaps.
BTW: low-frequency as in spots the size of panels, or comparable if smaller.

BTW: Daniel, after seeing this bumpmap, the new shaders do respect the standard ;) - so no change needed.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Good idea.
Here we go (hope it's not too much):

Image

Image

Try this one, too:

Image

I compressed the angles by cranking up the blue channel and renormalizing.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Cool - I'll try them when I get home today, however my idea was an even lower frequency. As in large scale panel shape irregularities - they look really nice, from my experience.
I would try myself but I can't build the gimp-normalmap plugin, my GTK is all messed up, and I'm a bit afraid to try to fix it right now (I tried once and messed up a lot of other stuff, and right now I need a functional system).
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

chuck: have you experimented with crazybump

http://www.crazybump.com/

it apparently makes bump maps from shader pictures or something

I can't get it running--maybe since you have so much trouble with everything else it could work
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

I tried the bumpmap and the noise still has too much high-frequency content. IT looks like stone. I'd make it much smoother, very very smooth. Or, better yet, do it directly on the normalmap, and not the bumpmap - that way you'll get smoother results. The shader renormalizes after all, so you don't have to worry about those things like normalization and such.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Image

Try that. If it doesn't work, give me the mesh, and I'll load it into blender, make a high poly subsurf version, then make a normalmap from the two with xNormal. Not only I get excellent smoothing doing that, but in addition, subsurf creates some beneficial artifacts, little undulations here and there that look like soft wrinkles on the metal from stress. I can feed the bumpmap to xNormal at the same time, and it uses it too.
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Here's an example of what using the xNormal method will do. I just re-did the Demon normalmap, after turning the UV layout so that the ship's nose points up in the textures. So, I exporte the mesh to a demon_low.obj file. Then I subdivided the mesh using sub-surf x4, and exported that as demon_high.obj. I fired up xNormal and fed it the two meshes and my bumpmap texture, 50% blending, and let it rip. Then in Gimp I loaded up the generated normalmap, doubled the contrast of the red and green channels, lowered the brighness of the blue channel by 25%, and used the nvidia plugin: Filters -> Map -> Normalmap -> Normalize Only, and VOILA:

http://deeplayer.com/temp/demon_normalmap.png

Check it out in detail; you'll see lots of features all over the place, in that normalmap. It nowhere "sits quiet"; except in the background, between UV map islands, of course.

When applied, not only it makes the guraud shading artifacts disappear, but it also adds some artifacts of subsurf that look like subtle wrinkles here and there, that make the mesh look more believable, if not realistic. This shot is from Blender's renderer:

Image

Perfect place to spot the difference:
The exhausts at the back produced too many errors in xNormal, so I removed them from the meshes, and you can see the results.
The muzze parts (chalk white, a bit hot inside) look very polygonal in spite of smooth shading. That's what the rest of the ship would look like.

Image

Can you spot a polygon anywhere else in the ship? No? That's what the xNormal method does for you; plus it adds all those beneficial artifacts...
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Here's a bottom pic from Render Monkey with my current shader, --to ease back into the topic :D

Image

Notice in particular the elipsoids at the front, how smooth they look. If you go back and look at the normalmap in the previous post (first link), you'll find a lot going on at those ellipsoids. At the current level of subdivision (which you can tell from their outlines) I would have had tons of guraud shading artifacts that the xNormal generated corrections smoothed over.

You can see how much simpler and boring the exhausts look:

Image

The reason the rivets look funny, I reason, is the lack of specular self-occlusion.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

Chuck... did you try xNormal maps on the engine?
The shaders right now don't take a tangenspace, they make it up, and so baked normalmaps could be broke. Could, I'm not sure, and it'd be very important to find out.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

Ya chuck--it's definitely critical to be working with the engine and make sure all your theory translates into "fact"

as for the low framerate on your computer... does that occur with other openGL games...I've asked you to try Defcon, quake3...and I'll ask you to try vanilla Privateer Remake 1.2 as well (since you claimed that one used to work for you)

let us know if the framerate is acceptable for ANY of those games

My uninformed guess will be: "no"
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

klauss wrote:Chuck... did you try xNormal maps on the engine?
The shaders right now don't take a tangenspace, they make it up, and so baked normalmaps could be broke. Could, I'm not sure, and it'd be very important to find out.
Is there something more to it, besides the nose of the ship pointing up in the texture?

@Hellcat: Okay, I just verified my framerate is as smooth as silk with PR1.2.
I'll try Quake 3 next...
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

Post by chuck_starchaser »

Okay, Defcon played just fine; in fact, I played it all evening.. :oops:

Quake 3 Arena crashes. Even on a clean reboot, it crashes. That's after initializing the screen and leaving it so bright I can hardly see to reboot.
The message always is that the instruction at address x tried to access address x, but the memory there is not writable", paraphrasing. The address of the instruction is always the address it supposedly tried to write to. But each time it crashes it's a different address.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Post by klauss »

chuck_starchaser wrote:
klauss wrote:Chuck... did you try xNormal maps on the engine?
The shaders right now don't take a tangenspace, they make it up, and so baked normalmaps could be broke. Could, I'm not sure, and it'd be very important to find out.
Is there something more to it, besides the nose of the ship pointing up in the texture?
Ha! you bet!
Normalmaps ain't said to be in "tangentspace" vs "objectspace" for nothing. First of all, nose pointing up is quite inconsequential, if you ask me. When you create the bump, the effect of rotating is a swizzle on output colors, and it's the swizzle all that's important. The swizzle, IIRC, is to make red be left-right (since red=tangent, and the shader makes up tangents to be in the general direction of left), and green front-back (since green is binormal, and with a left-handed tangent, and an upwards normal, you get a front-facing binormal - three-finger rule). Ok... so, that's what the front goes up rule is for.
Now... you get the point now?
In case you didn't notice, let me get your attention to it.
I wrote:(since red=tangent, and the shader makes up tangents to be in the general direction of left), and green front-back (since green is binormal, and with a left-handed tangent, and an upwards normal, you get a front-facing binormal - three-finger rule)
See?
What happens on the bottom of the ship? The normal goes down.
Three-finger rule again, and where does the binormal point to?
Oops - back.
But the tangent still goes towards the left (it's hardcoded that way). So... what? Well, when you interpolate tangentspace through a face which rotates the normal, tangenspace also rotates in a way incompatible with what bakers expect (bakers expect the tangent pointing towards the +s direction - the direction in which s-coordinates increase, which in this case would be left, not right). So, when your baker's tangentspace and the shader's tangentspace don't match, you get - inconsistencies. Some big, some small. Or, maybe, if you're lucky in the way you textured your ship, maybe none noticeable. That's what I'd like to find out.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply