Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Why is this object shader taking so long to activate?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Xenofied   Members   -  Reputation: 128

Like
0Likes
Like

Posted 28 August 2014 - 05:03 PM

I came across something interesting while playing the game Unmechanical.  I am not sure if the issue is a development one or simply my computer sucks.  Any help would be awesome because I am trying to understand the dev behind many games I play.

 

To see the actual issue please watch this video from minutes 9:15 to 11:20.

 

 

Any help would be greatly appreciated.



Sponsor:

#2 TheChubu   Crossbones+   -  Reputation: 5540

Like
0Likes
Like

Posted 28 August 2014 - 05:47 PM

I doubt anyone here is the developer of Unmechanical. So no clue. Ask the developer.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#3 Servant of the Lord   Crossbones+   -  Reputation: 22716

Like
2Likes
Like

Posted 28 August 2014 - 06:14 PM

Guessing it was intending to glow green, from whatever it was being dipped into, but that the shader effect for the glowing green was broken (or that your videocard had a problem with it), so it appeared pure black.

Then, when you dip it in water, it "washed off" the green glow, setting the regular shader back on it.

 

This is completely guesswork on my part - ask the developer!


It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#4 L. Spiro   Crossbones+   -  Reputation: 16241

Like
2Likes
Like

Posted 28 August 2014 - 08:25 PM

At no point did it become completely black.  There was always a faint hint of lighting on it if you looked closely enough, especially after the first green dip, just before you dipped it back into the water.  It was already being light-shaded before it hit the water.

 

Look more closely.

 

 

L. Spiro


It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#5 Servant of the Lord   Crossbones+   -  Reputation: 22716

Like
2Likes
Like

Posted 28 August 2014 - 09:14 PM

Hmm, you're right. Even when it is almost black, it still seems to be receiving some lighting at various points - at one point green lighting is being cast on the almost-black object. Also my theory doesn't work for why it turned black when dragged into the shadowed corner.


It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#6 tonemgub   Members   -  Reputation: 1430

Like
2Likes
Like

Posted 29 August 2014 - 01:15 AM

Although it doesn't look like it, my guess is the game uses some kind of lightmap (maybe a cubemap) for lighting the box (or at least for the specular), and the lightmap is rendered from the scene, but with a delay (less often than the main scene is rendered), so as it doesn't consume too many resources? But the lightmap from the environment is also blended with the old lightmap in small amounts, so that it doesn't transition abruptly from dark to light. That does seem like a weird way to do lighting, though. Note that the red and green light from the cauldron-thingy is not real light - it's just a polygon with a texture that looks like a point light, so it doesn't affect the lightmap of the box when the box is dipped in it.

 

I think developers often implement stuff like this in games that are supposed to run on older hardware, or consoles like the Xbox, which can't do deferred lighting for some reason... Or for mobile platforms, like the iOS :).


Edited by tonemgub, 29 August 2014 - 01:26 AM.


#7 Xenofied   Members   -  Reputation: 128

Like
2Likes
Like

Posted 29 August 2014 - 06:56 PM

Seriously, some of the responses here are so eye opening!!!!  Only after reading your responses did I realize what was actually happening!!!  Thank you so much for the help!!!  The game does show a very unorthodox way of shading (even though I have no clue what the orthodox way is).  I noticed that when the object was bright it would gradually (very slowly) change to dark as I held it in a dark area.  It was as if the object was taking longer than usual to adjust to the environment.  I would have never made that connection without your help!!!

 

You are wonderful people for helping and I know if you all joined forces you could make an amazing game together!!!!

 

THANKS!!!!






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS