July 17, 2019, 08:36:29 PM

Author Topic: "caves 3d" (explore caves, avoid harmful things, find the exit)  (Read 4362 times)

Offline RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #30 on: March 04, 2018, 06:27:29 PM »
Quote
It would look better if the stalagmites and tights were better merged with the floor / ceiling - might just be the normals though.
this is because the stalagtites / stalagmites are not merged with the floor or the ceiling, however, you just gave me an idea on how to "fake it" (by adding more vertices at the base, with the normals pointing downward (for stalagtites) or upward (for stalagmites)), i will try...


About the structure of surfaces, for this game is use "shared vertices shading", what you use in your polymaniacs game is "flat shading" if i remember correctly. (i have also another procedure to rebuild a surface in what i call "realistic shading" where new vertices are created if the angle between 2 triangles is more than +89 or less than -89). Each his own tastes / preferences...
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 Rooster

  • Sr. Member
  • ****
  • Posts: 358
  • I don't know what this does...
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #31 on: March 04, 2018, 10:27:30 PM »
Looking good RemiD. :)

Offline Naughty Alien

  • Hero Member
  • *****
  • Posts: 596
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #32 on: March 05, 2018, 05:01:25 AM »
..so far looks very nice..i like it..ill keep my eye on this :)

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1958
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #33 on: March 05, 2018, 06:03:13 AM »
Today i have added crystals (as lightsources), and stalagtites stalagmites.



I have not coded the vertices lighting shading procedures yet, so it is still too "bright" for the ambiance that i want, but nice nonetheless...

Looks kinda eerie :o - Nice nice nice :)
Until the next time...

Offline Derron

  • Hero Member
  • *****
  • Posts: 2206
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #34 on: March 05, 2018, 07:15:10 AM »
I vote too for improving the way the stalagmites/-tites "come out" from the wall - they should more look like "growing". So ground must slowly morph into these objects to avoid "sudden changes" (just look at the lighting of the stalagmites in the front right)). Maybe that changes when texturing them by hand (painting a bit darker here and there) but just keep an eye on it.


@ glowing crystals
They seem a bit "unified" in their length, maybe make them here and there a bt shorter - and also some should be thicker. maybe it is the scaling which hides that.


@ narrowness
make either sure that you can walk on all areas (just look at the screen's left) or that you cannot move into areas making you either see clipping errors or to get "stuck" needing exact maneuvres to get out of there.

bye
Ron

Offline RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #35 on: March 05, 2018, 07:26:49 AM »
What is interesting to note, is that, apparently, from the comments that you wrote, it is possible to create a nice scene without using "detail textures". (in this scene there is only one material using one 8w8h texture per kind of shape (one for the floorswallsceilings and stalagtites+stalagmites, one for each crystal)

This means that the modeling of shapes and the UVmapping is greatly simplified.

What makes the environments looks nice, is mostly because of irregularities and the different shades produced by vertices lighting shading.

I already talked about this approach, basically, instead of spending time UVmapping precisely and texturing, you create one 128w8h texture (or something similar) and you put several 8w8h colored rects on it, one for each color you want in your mesh, and then you model the different parts using different colors so that you can select the triangles of a part and UVmap all the vertices at the center of a 8w8h rect on the texture.

I plan to create all the models for this game, using this approach, and rely on the shades produced by vertices lighting shading, to make it look nice. We'll see...
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 RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #36 on: March 05, 2018, 07:44:04 AM »
@Derron>>i will focus on little details and variety later, i focus on the essential for the moment.

About narrow passages, all is ready for nodes, links, path calculation, path following, no worries...
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 RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #37 on: March 06, 2018, 07:52:12 AM »
I was searching on the interweb for infos about things which compose / are in caves, and i found this :


So beautiful and surprising isn't it ? Lightsources in caves !
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 Rick Nasher

  • Hero Member
  • *****
  • Posts: 722
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #38 on: March 06, 2018, 07:24:43 PM »
Breathtaking. Perhaps was the inspiration for the Avatar forest?
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1837
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #39 on: March 06, 2018, 07:54:02 PM »
Quote
..so far looks very nice..i like it..ill keep my eye on this :)

Agreed.  Keep experimenting...
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #40 on: March 08, 2018, 09:50:31 PM »
A few updates :
->i have replaced the pointy stalagmites by roundy stalagmites
->i have removed the luminous crystals, and added luminous worms on the ceiling
->i have started to code a new procedure especially for this game, for the vertices lighting shading
After some thinking about how to produce a nice lighting shading, similar to the "glow worms" in the videos, i have decided to use this approach :
each light source (each luminous worm) (up to 30 per area), will emitt 2 kinds of light, an intense light with a short range, and a weak light with a far range. This way there will be nice intense colors on the surfaces near the lightsources, but the surfaces which are far from lightsources will be lighted only slightly, just to discern them, but i want to keep a dark ambiance, similar to what we can see in the movies "the descent".
I plan to maybe update the lighting shading in real time, depending on on fast it is to do that...

Here is a screenshot of the first step of the vertices lighting shading system :

you can see the lightsources of different colors, and a distance attenuation, and a blending between different colors when they overlap.

Next step : add an angle attenuation (depending on the angle between light->vertex vector and vertex normal vector)

Then add the intense lighting shading of near vertices, and the weak lighting shading of far vertices.

Then add a glow effect on the luminous worms.

(Then maybe add a custom cone light, to reproduce how a torchlight lights)

Then i don't know, maybe work on the gameplay ;D
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 Rick Nasher

  • Hero Member
  • *****
  • Posts: 722
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #41 on: March 08, 2018, 10:31:48 PM »
Looking really good. Vid/gif? Can't wait to see this in action.
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #42 on: March 09, 2018, 07:48:23 AM »
Quote
Looking really good.
this is a debugging render, ;) , (to check if the distance attenuation is calculated correctly, and if the different colors blend properly) but glad that you like it


After a new look at the "glow worms" videos, i think that to reproduce this kind of lighting shading it would be simpler to have lightsources which produce an intense light with a very short range, and then an ambient light on all surfaces, and a circular flare on each lightsource...
Not sure which method i will end up using, but what i have just explained would be really fast to update/render compared to the previous method.
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 Rick Nasher

  • Hero Member
  • *****
  • Posts: 722
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #43 on: March 09, 2018, 05:49:08 PM »
Looks uniquely different. Unlike so many things looking all the same.
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline RemiD

  • Hero Member
  • *****
  • Posts: 809
Re: "caves 3d" (explore caves, avoid harmful things, find the exit)
« Reply #44 on: March 09, 2018, 06:31:28 PM »
Quote
Looks uniquely different.
indeed, that's because the method / formulas i use for this lighting shading system, is unique, unlike most others devs who use the built in lights which have the exact same method / formulas for lighting shading... ( except Gabor  :D ) ( impressive screenshots about lighting shading and shadows, on the nuclear glory forum )

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