WireSphere question. (Fixed)

Is it me or the WireSphere is supposed to look like that when the radius is larger than a certain amount? Also, the wire spheres on the right are all different sizes but they all look the same size. Their size differences are not as huge as the one on the left (which is a star), but we should definitively see a difference.



The WireSphere debug shape is broken afaik

Glad to know I’m not crazy. :slight_smile:



But sad they don’t work as they should. :frowning:



Should I add the issue to the SVN?

Well we know about it, a patch would be nice :smiley:

You’re asking me to patch it up? :o lol



I’ll check if I can make sense of the way it works, but it’s probably way over my head. :slight_smile:

It’s bad … I think a normal sphere with wireframe material would look better than that

I’m looking into it, but don’t hold your breath. :wink: I’ll figure it out eventually.

How does that look? A bit better I’d say. :smiley:



It’s not perfect, but as a Debug shape I think it does its job nicely. :slight_smile:





So it’s not misunderstood, the WireSphere is .5f bigger than the sphere inside it. When put at the same size it’s snug and tight to the shape. The difference is only there to demonstrate it’s working correctly.



And here’s the diff if you think that fix is worth it. :wink:



[java]

This patch file was generated by NetBeans IDE

It uses platform neutral UTF-8 encoding and n newlines.

— Base (BASE)

+++ Locally Modified (Based On LOCAL)

@@ -113,7 +113,7 @@

for (int i = 0; i < samples; i++){

float x = FastMath.cos(angle);

float y = FastMath.sin(angle);

  •        pb.put(x).put(y).put(0);<br />
    
  •        pb.put(x * radius).put(y * radius).put(0);<br />
    

angle += rate;

}



@@ -121,7 +121,7 @@

for (int i = 0; i < samples; i++){

float x = FastMath.cos(angle);

float y = FastMath.sin(angle);

  •        pb.put(0).put(x).put(y);<br />
    
  •        pb.put(0).put(x * radius).put(y * radius);<br />
    

angle += rate;

}



@@ -139,7 +139,7 @@

float x = FastMath.cos(angle);

float y = FastMath.sin(angle);


  •            pb.put(x * scale).put(zHeight).put(y * scale);<br />
    
  •            pb.put(x * scale * radius).put(zHeight).put(y * scale * radius);<br />
    

angle += rate;
}
[/java]