Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 rendering changes I'd love to see in Xonotic

#1
So there's this open-source project I'm interested in called GRIT. It's planned to be an engine for games like GTA (you play as various characters, drive cars, etc) and uses OGRE for rendering. A few days ago there were some updates to materials and the lighting system, so I updated SVN and checked them out. I saw some highly impressive graphics which I haven't seen in any open-source engine so far, but have in most modern games (3 years or more recent). I decided to make a comparison with it, about two render features I'd love to see in Xonotic and wish to know if they are possible.

The biggest feature that impressed me is how GRIT handles lighting on normal mapped surfaces. Light is culled by the texture's norm-map to a very visible extent, whereas in Xonotic this is only noticeable if you look very close at some surfaces (regardless of the angle of the light). What Xonotic might need is a cvar to adjust how much the deform of normal maps culls angled lighting, but this should also affect lightmaps.

[Image: vlso10x45suixf0z7xn_thumb.png] [Image: igakmaxcoghal9zjvxpi_thumb.png] [Image: q7nklym2qr8hdqsjkpps_thumb.png]

IMO that looks amazing, do want! I already looked for a cvar, but the only one I know of is a setting to adjust the intensity of parallax maps, not how they affect light.

Second effect I noticed in GRIT (and a lot of nice games) is metallic cubemap reflections. Xonotic has an issue here: It does support cubemaps (as well as the _reflect texture to mask them) but not a way to adjust their deformation so they give that bent metal feel. Yes, the normal map deform of a surface does affect cubemap reflections as well, but such cubemaps also need a separate deformation. In those engines, rotating the camera causes cubemaps to deform to a very large extent, giving the feeling that the surface is crushed / undulated metal, although the norm-map only deforms a few details on the surface (and does not necessarily contribute to that). In my opinion, Xonotic needs a way to optionally deform cubemaps using a different texture. Or maybe it can be done with the texture's normal map, but it needs to be much more visible.

[Image: j4wbd3cy0t9vev8yqr4d_thumb.jpg]

That's a screenshot from GRIT of the cubemap testing. If you look close at the leftmost two spheres, you can see the reflection gives an oil like feeling, because it's deformed despite the round surface. The second ball also uses a better blending technique... while in Xonotic they're usually additive which is rather unrealistic (might change that myself if possible). Also note that I already created cubemap reflections for the exX set, but the branch is awaiting merge for many months (as usual lol).

So... any way to achieve such graphics in Xonotic? That lighting at least would be killer, but I also keep my aim to cubemap all metal surfaces to look similar to the balls in that screenshot. Where would an engine change be needed, and would the lights on maps need to be changed as well?
Reply

#2
Wow, checking out that engine now... Looks great! Big Grin

(Talk to div or someone about this, I have no idea whether it can work or not..)
Reply

#3
(08-25-2012, 07:33 AM)rocknroll237 Wrote: Wow, checking out that engine now... Looks great! Big Grin

(Talk to div or someone about this, I have no idea whether it can work or not..)

Yes, it's a really awesome engine. If you're interested in it, feel free to join #gritengine on the gtanet IRC server, and see http://gritengine.com/ too. But yeah, I'd love to see features like this for us as well.
Reply

#4
Please stop using pics.nn, it's down right now and I can't see the shots :X
Reply

#5
hmm ... looks interesting ...

however ... I would also like to see working refraction without reflection (cause all I get is a flickering mess)
Reply

#6
(08-30-2012, 04:16 PM)hutty Wrote: hmm ... looks interesting ...

however ... I would also like to see working refraction without reflection (cause all I get is a flickering mess)

Already possible to have refractions without reflections. I forgot the code, I think it was dprefract or something. I already tried it out in the past and it worked fine.

Anyway, I spoke with divVerent about this. He doesn't see the cubemap deformation ever happening (not sure why). As for the self-illuminated bump maps, he mentioned they would require cone mapping (or something like that) in the engine, instead of the current system. Which would be very hard to do, and it's in doubt if anyone ever will code this in the engine Sad
Reply

#7
MirceaKitsune, you mean something like self-shadowing for normal maps?
To tell the truth these dynamic lighting/shadow tricks are quite rare anyway, you see them only with some guns and only for a fraction of second. Is there even a map that uses lights that switch on/off or rotate? Probably not because this would be seen only by people with real time world etc etc.
Reply

#8
the mapper can force individual real time lights to work even if the setting is turned off (glowplant near strength has a shadow one ... redplanet has a blinking one ... and techassault too)

to make a rlight "turn off" you would have to move a invisible shadow casting box in front of it ... (there is not way of telling them to just "turn off")
the issue is rlights that cast shadows usually lower fps alot ... especially if they are big ones ///
Reply

#9
So is it possible to make something alien-like, like a dark room with red light that "turns off" sometimes? Shadows would not matter because it would be pitch black anyway.
Reply

#10
the shadow casting is needed for the lights to "turn off" ... otherwise they will shine through the thing you move in front of them ...

flickering lights are diffrent though ... there is a setting for the rlights to set them up with a bunch of flicker patterns ... those don't need shadows ...
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Are there any changes for the Arc, Electro planned? Aguaumreal 1 2,227 09-21-2019, 04:31 PM
Last Post: BuddyFriendGuy
  Balance changes?! Mario 15 15,866 05-10-2015, 06:19 AM
Last Post: FruitieX
  Question and Rant on the LG and MG changes. GegoXAREN 5 5,943 11-26-2012, 04:16 PM
Last Post: hutty
Information [MUST SEE!] Using Pirate Pad to democratically decide on ideas Samual 4 9,827 11-06-2010, 06:12 PM
Last Post: Rage_ATWM
  Changes to weapon settings wanted? FruitieX 51 63,929 07-12-2010, 09:22 AM
Last Post: Flying Steel

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-