November 21, 2019, 09:37:00 AM

Author Topic: 3 views of blood sewer  (Read 1938 times)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1400
3 views of blood sewer
« on: April 02, 2018, 11:52:48 AM »
Here's 3 views of the same position from blood sewer.
This is a great example of the new lighting systems in full operation giving glowing blood-red fluid.

first is the normal view:


Next we have the inhabit view - think Dungeon master


And finally the overhead view - where you can see much more of the table and tiles:

Offline Derron

  • Hero Member
  • *****
  • Posts: 2584
Re: 3 views of blood sewer
« Reply #1 on: April 02, 2018, 12:00:27 PM »
Last picture looks best - as it does not expose that "2d pixel"-drawings that much. So the whole thing - imho - looks better fitting together.

bye
Ron

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1014
Re: 3 views of blood sewer
« Reply #2 on: April 03, 2018, 07:42:47 AM »
Nice ambiance, but the light flares looks weird imo.

Also, maybe try to create a low tris 3D characters to replace your flat 2D drawing, it will probably look better if you like to play with lighting shading.

You can use these low tris 3D characters (similar style) just for testing :
nuloen.com/wk.html
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline Derron

  • Hero Member
  • *****
  • Posts: 2584
Re: 3 views of blood sewer
« Reply #3 on: April 03, 2018, 07:51:50 AM »
First two screens expose that the red glowing lava is not lighting the area right on top of it. The stones in the red stuff get darker and darker from top to bottom while they should get lit a bit. Or do I assume something wrong?

bye
Ron

Offline Derron

  • Hero Member
  • *****
  • Posts: 2584
Re: 3 views of blood sewer
« Reply #4 on: April 03, 2018, 07:56:36 AM »
You should be able to "fake" the lighting by adding some kind of "glow" quad some pixels higher (z-wise) than the flowing-red-something.

bye
Ron

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1014
Re: 3 views of blood sewer
« Reply #5 on: April 03, 2018, 10:18:46 AM »
if the lighting comes from the lava, yes there is something wrong : the top of the beams should not be lighted !

This is not necessarily a problem with your lighting shading procedures but maybe a problem with how your surfaces are structured (the smoothing groups) some vertices may be shared between triangles when they should not be (depending on the angle between the 2 triangles normals)
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1400
Re: 3 views of blood sewer
« Reply #6 on: April 03, 2018, 11:30:27 AM »
Thanks for the replies guys.
The lighting works completely different from any other lighting systems. the lighting is calculated on the cpu then fed into the gpu per frame allowing for automatic shadows as a tradeoff. the other thing is it is solid in the vertical - there is no falloff.

So there is no actual problem with shading groups - there aren't any! But your quite right in that I should add some form of falloff for the lighting that will compensate for the top of the beams. I'll have a look into that :)



Offline RemiD

  • Hero Member
  • *****
  • Posts: 1014
Re: 3 views of blood sewer
« Reply #7 on: April 03, 2018, 12:18:17 PM »
So your lighting shading system does not take into account the angle between lightsource vector -> vertex normal vector ? only the distance between lightsource -> surfacescreenpixel / surfacetexel ?
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1400
Re: 3 views of blood sewer
« Reply #8 on: April 03, 2018, 12:42:14 PM »
yes (and no). it uses both, but in different ratios.
There is a single global light source to allow for bump mapping. the actual lighting itself uses this plus the incoming lightmap.
The lightmap is pixel based so there is no actual source - just the light itself.

But...
for every 3d object. there is a color morphed with a texture plus a lightmap plus global lighting plus bump mapping and finally some highlighting.
These are controlled per frame and per object, so all or any input can be changed. in practice this is done in the tile editor, where color/texture/bump is available via a slider for simplicity

Here's a shot with a pillar object

- all 3 pillars have the same base color - they could be different
- the first has no texture and no bump/highlight
- the second has just bump/highlight added at full
- the third has just texture added at full

All of these are mixed to get the required 'look'

Texturing and bump mapping come from a single uber texture. there is only one texture used for EVERYTHING. All models get their textures from this single image. It is currently rgb, but could be just a single channel with the 2 other channels used for other information if required.

Base bump mapping comes from a single normal map for everything with only one texture.

Everything (model data and texture data) is send to the GPU at startup and then kept there.
the only data that is sent to the GPU each frame is what object are wanted, where, and their surface information - several floats per object. NO 3d data or texture data is ever sent (it's already there)

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1014
Re: 3 views of blood sewer
« Reply #9 on: April 03, 2018, 07:42:33 PM »
for per pixel lighting shading, even with my limited understanding, i think that the vertices normals are considered. (=the parts of the surface facing the opposite side of the lightsource, should not be lighted)
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1400
Re: 3 views of blood sewer
« Reply #10 on: April 04, 2018, 06:15:05 AM »
You're missing the point. THERE ARE NO LIGHT SOURCES. I AM NOT USING ANY 3D LIGHTING!!!

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1014
Re: 3 views of blood sewer
« Reply #11 on: April 04, 2018, 07:40:56 AM »
Ok, that's why it looks weird ;)
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1400
Re: 3 views of blood sewer
« Reply #12 on: April 04, 2018, 10:46:14 AM »
REMID I AM NOT USIONG ANY LIGHTING OR INPUTTED NORMALS

HOW MANY TIMES... THERE ARE NO 3D LIGHTS BEING USED!!!!!!!!!

I AM NOT USING ANY 3D LIGHTING

EL LIGHT NADA MORTE

PLINKO EN LIGHTAMA TU NADA ES

NO LIGHTS HERE

........!!!!!!!!

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1014
Re: 3 views of blood sewer
« Reply #13 on: April 04, 2018, 06:07:22 PM »
ok ok ok
youtube.com/watch?v=oy5TJ0s2HJs
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline Naughty Alien

  • Hero Member
  • *****
  • Posts: 664
Re: 3 views of blood sewer
« Reply #14 on: April 05, 2018, 02:36:52 AM »
 ;D why so seerious  ;D