Post Your Irrlicht Screenshots / Render Here.

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by 804 »

BONG
Image
Image
Image
Image
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Granyte »

Radikalizm wrote:
ent1ty wrote:I think what he meant is, how will Granyte's implementation look from ground
Yeah, that's what I meant :D
I'm pretty familiar with atmospheric scattering implementations, having done some prototypes a while back, but although you can combine in-atmosphere (ie. rayleigh/mie on a skydome) and out-atmosphere effects a lot of people separate them, so that's why I asked

my implementation is sean o'neil implementation ported to hlsl so it works from any kind of angle originaly it required two diferent codes to implement in and out of the atmosphere but after looking a little i found that i could combine them with a single if statement
i also reworked the code a bit so that it suport more then one planet
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Radikalizm »

Granyte wrote:
Radikalizm wrote:
ent1ty wrote:I think what he meant is, how will Granyte's implementation look from ground
Yeah, that's what I meant :D
I'm pretty familiar with atmospheric scattering implementations, having done some prototypes a while back, but although you can combine in-atmosphere (ie. rayleigh/mie on a skydome) and out-atmosphere effects a lot of people separate them, so that's why I asked

my implementation is sean o'neil implementation ported to hlsl so it works from any kind of angle originaly it required two diferent codes to implement in and out of the atmosphere but after looking a little i found that i could combine them with a single if statement
i also reworked the code a bit so that it suport more then one planet
I think the 2 effects option would be better than the if-statement, imo flow control inside shaders should only be used if there's absolutely no other option
The GPU does not handle if-statements like the CPU does, the CPU can do efficient branch prediction which makes if-statements very cheap. The GPU as far as I know does not do this, which make flow control rather expensive
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Granyte »

honestly i tested it and irrlicht in it self is to slow for that speed los to mather i get 800 fps when i render the atmospheric scatering without anything else and the if else statement changed nothing

but i was also looking at an option to make the swich statement on the cpu and have the change null some value in the shaders cause anyway i admit that making a calculation 800(fps)*256(vertice per sphere) is FAR from optimised but that will be when i will go into the optimisation part of the project

an other thing is maybe my hardware is uncomon as i have an other shader that make use of more then 8 if else statement and yet it sill run over 250 fps with it (that one will get optimised for sure)


the main reason i went for an if else statement is that a single planet would require 10 diferent material just for the scaterring and it would require keeping track updating them
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by hendu »

Waiting for the stencil patch to be reviewed, I implemented the stencil optimization anyway:
Image

It works just fine, and eliminated one branch from the shader, but it's slower. No difference with one light, -5 fps with eight visible. So much for the "optimization" label ;)
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Mel »

Light Space Perspective Shadow Maps are finally working on Irrlicht too! :D

It has taken me long, quite long... since the times when Blindside told me about these kind of techniques for the first time, but it is finally working. Demo and source soon, i promise.

This is the first implementation, the one from the paper and it is combined with Variance Shadow Maps to soften (somehow...) the final result. . Though, i have to dig more on the LiSPSM internals to optimize more the parameters that allow this to work. And the sampled space isn't optimized at all, it is the viewing volume lean and mean, so it loses quite a lot of precision when you aim directly to the light. That is to be expected.

Image

Its quality can't rival to that of the CSM and PSSM because they are designed make use of the worst approach for shadowmaps (uniform shadow maps) on diferent view volumes, adapting to each position, but my current implementation is quite friendly to these techniques, so, it is in theory posible to combine them to produce an even better shadowmapping algorithm, because, like the CSM and PSSM, Uniform Shadow Maps are the worst case of the LiSPSM too.

But for a single pass shadowmap, this is pretty much the best you will ever have, no PSM singularities, no odd preprocessing, this is it.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by hendu »

No pic this time, just to say that optimizing (with the Forsyth method) the light spheres/cones gave +3% fps.
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Re: Post Your Irrlicht Screenshots / Render Here.

Post by ent1ty »

Well that's clearly a violation of rules in this topic. I vote you are forced to submit a screenshot right now :)
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Mel »

No, It is simpler than that...! :mrgreen: :mrgreen:

Image
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by hendu »

Image

Eh, fine ;)

The light geometry isn't exactly well tesselated, but still easing the vert load has a measurable effect.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Post Your Irrlicht Screenshots / Render Here.

Post by REDDemon »

omg Mel really impressive work ;-)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
fmx

Re: Post Your Irrlicht Screenshots / Render Here.

Post by fmx »

Congrats on getting it working Mel, looking forward to seeing how you use it
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Post Your Irrlicht Screenshots / Render Here.

Post by REDDemon »

282 FPS
Image

245 FPS
Image
my current terrain scene node. I worked it from scratch. it's almost 100% done by me. It is basically a LOD based system in wich the detail halves when distance from camera doubles. this grants that all the triangles are drawed almost with the same surface used on the screen. There are few parameters that can be tuned for fit the performance of every machine

-number of LODS (10 in the screen shot)
-minimum distance: disstance is multiplied by the FACTOR for find the next LOD distance.(for the demo is 16. In practice represents the terrain tiles density. A bigger value force the terrain manager to use more tiles in the same LOD)
-maximum distance: maximum distance of view (after that there is the far plane). actually 65536.. so 65 KM. Is not required that a Tile can fit the frustum view (so a tile can be bigger than frustum pyramid. if is smaller nearby tiles are loaded)
-FACTOR: currently is 2 (wich is the best logical approach). can work also with values near 1.41 without showing seams (under that value my algorithm is not able to guess neighbour size and seams starts showing). with Factor = 3 i go down to 80 FPS (same FPS for irrlicht terrain demo at this screen resolution on my machine). Factor = 4 just freeze the machine at 3-4 fps XD


actually i'm going to improve using mesh batchin on the fly (especially for farest terrain tiles wich change less often).
another issue i'm workin on is streaming from HD. I want every LOD editable from external editor. Missing LODS are generated from data of existing lod.
Good point is that many parameters (not all) can be changed in real time to increase/reduce rendering time when needed. Multithreadin is currently working. but I have no editor for such complex system O_O. So what I have done is just reading the same file from the disk wich gives this "nice" result (every file is scaled to fit current tile size.):

Image
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Re: Post Your Irrlicht Screenshots / Render Here.

Post by roelor »

That's very nice, I made something similar though since I'm pretty lazy and bad at programming I did it by rendering two terrains in two scenes and overlapping them (rendering the background scene, reset the Z buffer and render the foreground scene) :) Biggest terrain only has a colormap, and the small terrain has a splat map. (biggest terrain is rendered in the background, and the smaller on the foreground) This way I have a very easy LOD system where low detail objects just dont get rendered when they are near, and high detail objects dont get rendered when they are far.

I was planning on using a fog shader to make the transition less noticeable (instead of it going to a foggy color, it will just suddenly fade to transparency at the edges). Though I haven't worked on it for a while already.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Post Your Irrlicht Screenshots / Render Here.

Post by REDDemon »

interesting. actually I didn't implemented nothing serious for texturing terrain. My main task now is to get Zbrush working for each LOD. (I wanted to add that functionality to my editor but is probably better write a separate tool for that. is much more simple ). probably a different shader for each 1/2 LOD is needed if I want to get some good looking result.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply