(Raytracing in One Weekend) shadows are invisible no matter what i tried

So I followed this tutorial called "Ray Tracing in One Weekend" by Peter Shirley. And I implemented the java version of it for studying Ray Tracing.

Everything was alright until Diffuse Materials, but anti-aliasing was okay though.

Please point out my mistakes.

I have tried gamma color correction but the shadows are still invisible. and here’s the source code:

for(int j=h-1;j>0;--j)         {             System.out.println("scanlines remaining: "+j);                          for(int i=0;i<w;++i)             {                 Vec3 col = new Vec3(0,0,0);                                  for(int s=0;s<sample;++s) {                      double u = (double)(i+Math.random()*1)/(display.getWidth()-1);                      double v = (double)(j+Math.random()*1)/(display.getHeight()-1);                      Ray r = cam.getRay(u, v);                      col   = col.add(hit(r,world,depth));                 }                                  double r = col.r(),                        g = col.g(),                        b = col.b();                                  double scale = 1.0/sample;                 r = Math.sqrt(scale*r);                 g = Math.sqrt(scale*g);                 b = Math.sqrt(scale*b);                                  int ir = (int)(256*clamp(r, 0, 0.999));        // R component                 int ig = (int)(256*clamp(g, 0, 0.999));        // G component                  int ib = (int)(256*clamp(b, 0, 0.999));        // B component                 display.setRGB(i, h-j-1, (ir<<16)+(ig<<8)+ib); // plot pixel to the screen.             }         }  static Vec3 random_in_unit_sphere() {         while(true) {             Vec3 p = randomVec3();             if(p.lengthSquared() >= 1)  {                 continue;             }             return p;         }     }          static Vec3 randomVec3() {         return new Vec3(Math.random()-1*1, Math.random()-1*1, Math.random()-1*1);     }      static double clamp(double x, double min, double max) {         if(x < min) return min;         if(x > max) return max;                  return x;     }  static Vec3 hit(Ray r, Hitable world, int depth) {         hit_record rec = new hit_record();                  if(depth <= 0)             return new Vec3(1,0,0);                  if(world.hit(r, 0, Double.POSITIVE_INFINITY, rec)) {             Vec3 target = rec.p.add(rec.normal).add(random_in_unit_sphere());             return hit(new Ray(rec.p, target.sub(rec.p)), world, depth-1).mul(0.5);         }                  Vec3 unit_direction = r.getDirection().unitVector();         double t = 0.5*(unit_direction.getY()+1.0);         return new Vec3(1,1,1).mul(1-t).add(new Vec3(0.5,0.7,1).mul(t));     } 

enter image description here Here is the tutorial that I followed.

In a multi-player game where one player becomes invisible, is the data about the invisible player sent to the enemy game clients?

In my 3d FPS game, there is a feature where a player could have it’s character become invisible for some time. The character is only invisible, they’re still there and can move around: the other players can try predict where they are and shoot them, and if they succeed the invisible character becomes visible again.

I’m worried about cheaters using aim bots and I’m wondering how I should handle the invisible characters in this context.

Does the Faerie Fire spell give advantage on attacks against invisible creatures?

The description of the faerie fire spell states:

Any attack roll against an affected creature or object has advantage if the attacker can see it, and the affected creature or object can’t benefit from being invisible.

As I read it, there are two ways to interpret this. The first is that being held unseen is a benefit of being invisible, and therefore the spell removes that benefit. Since the invisible creature is then visible, you have advantage against it.

The other interpretation is that the order of the sentence matters; first, check if you can see them, and you have advantage if you can. Then, strip them of the benefits of invisibility. In this case, you would have a regular attack roll against the creature, without disadvantage from being invisible nor advantage from Faerie Fire.

What interpretation of the rule aligns with the intention of the faerie fire spell?

Does Detect Magic make an Arcane Mark placed on an invisible surface glow?

Invisible arcane marks glow when hit by Detect Magic.

Usually, how this works is that someone casts Detect Magic on an item and they see this fluorescent drawing on it, marking it as the belonging of some specific mage.

This time, however, we have a creature that likes turning invisible every time it hears our magus cast True Strike or every time too many people swarm them, and the magus would like to slap an arcane mark on their back so that, when the creature goes invisible, a round 1 Detect Magic causes the glow, marking the square and letting everyone but the Detect Magic caster target the right square.

Does this work?

I appear to be completely invisible on google despite their search console claiming that I am indexed [duplicate]

I recently put the site for my web design business up on google. It’s been online for about two weeks and according to Google Search Console, has been indexed several times. Despite this, I can only find it on google if I type the actual url into google. Typing the business name verbatim doesn’t work, typing the contents of the meta description tag doesn’t work. The things that do come up are a worse match. I can type my business name perfectly and things that are off by one or more characters will show up instead. I’ve gone to the 15th page of google search results and found nothing. The google search console is even claiming that my page has 7 total impressions, with an average position of 1. I can’t tell if that’s just because of me typing the url exactly or if it’s actually organic.

Important Note: My server automatically responds with a 301 redirect to the https url when someone goes to the http url. Does the Google indexing bot mishandle this somehow?

Here is what the google search console looks like:

enter image description here

I have a sitemap.xml and a robots.txt. Google search console claims that it has discovered my URL, as a result of the sitemap.xml. I don’t understand why it will only come up in google search when I type the exact url. The contents of the meta description and meta author tags have to be unique, and they still don’t bring anything up.

I should also note that I ran lighthouse on my site and got a 95/100 on the SEO portion.

Can an Invisible Blade Full Attack with all Sneak Attacks?

As far as I can see, rogues have no limit to their number of sneak attacks. Using the bluff skill to feint can make an opponent flat-footed, but since bluff only affects your next melee attack, and it takes a standard action, a rogue can only use this method to deal sneak attack damage once per round (once every other round if they don’t have a way to attack outside their turn)

Invisible Blade from CW, however, makes feinting a free action. Does this mean that, for example, a rogue 15/IB 5 can make a full attack, feinting once before each attack, to deal sneak attack damage four or more times?

Does an arrow in an invisible creature allow you to see creature for Magic Missle attack?

Dnd 5e Magic Missle requires you to be able to see the target. PHB, pg 257 "Each dart hits a creature of your choice that you can see within range."

Therefore you can’t target an invisible creature even if you know the spot they occupy, since you can’t actually see them.

But what if they had an arrow sticking in them? Or a blanket thrown over them. Does that allow the Wizard to "see" the creature in order to use Magic Missle?

How to make a remote server be invisible to a user

I have a webserver www.example.com that takes user input and calculates results on a remote server: <form action="www2.example.com/action.cgi">

Now the user is on the second server. How do I keep the user on the main server (or make www2 invisible to the user)?

One possibility is to do an Ajax query in the background, but that would mean results are transferred from www2 to www and then to the user, which adds delay and bandwidth costs.

What are some possibilities to accomplish this?

Also, if, in future, we have multiple remote servers www2, www3, etc. what would be the best way to accomplish this?

Can a Pact of the Chain Warlock summon their familiar in an invisible state?

As a Pact of the Chain Warlock, you:

…learn the find familiar spell and can cast it as a ritual. The spell doesn’t count against your number of spells known.

When you cast the spell, you can choose one of the normal forms for your familiar or one of the following special forms: imp, pseudodragon, quasit, or sprite.

The imp, quasit, and sprite all have the power to turn invisible.

Is it possible that when the Warlock calls forth their familiar, that the familiar starts in an invisible state? Or would they have to appear visible, and then immediately take an Action to turn invisible?