Author Topic: RC/repeater ''power rings''  (Read 68770 times)

Plague Bringer

  • Posts: 3814
  • Turrets: +147/-187
Re: RC/repeater ''power rings''
« Reply #120 on: June 24, 2011, 05:27:05 pm »
Just tried out the current brindus mod power spheres and wanted to highlight this. The sphere doesn't quite represent the range properly (for turrets at least).
Eh. That's in the sphere. If you were to adjust the sphere to fully engulf the building you'd have to have the size of it be dynamic, since buildings are of different sizes. It's better to have less than more.
U R A Q T

Nux

  • Posts: 1778
  • Turrets: +258/-69
Re: RC/repeater ''power rings''
« Reply #121 on: June 24, 2011, 05:54:10 pm »
If you look again, you'll see that not even the center of the model is within the sphere (as I would have found fully acceptable).

Plague Bringer

  • Posts: 3814
  • Turrets: +147/-187
Re: RC/repeater ''power rings''
« Reply #122 on: June 24, 2011, 06:20:48 pm »
If you look again, you'll see that not even the center of the model is within the sphere (as I would have found fully acceptable).
No, I saw that. It's not a problem with the sphere model, but the way the build range works. As I understand it, if any part of the bbox is in the build range, the building can be built. With larger buildings, the center of the building is further away from the edge of the build range, making it impossible to have a static size sphere that do what you want.
U R A Q T

Nux

  • Posts: 1778
  • Turrets: +258/-69
Re: RC/repeater ''power rings''
« Reply #123 on: June 24, 2011, 06:47:00 pm »
Ah. If it works like that then knowing that is enough to interpret the sphere correctly. Sadly, I can't help but feel others will misunderstand how the range works as I did.

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #124 on: June 25, 2011, 02:07:21 am »
if any part of the bbox is in the build range, the building can be built.
bullshit

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #125 on: June 25, 2011, 02:14:54 am »
IMO the power range should be up all the time for builders, and attack ranges when they have an attack buildings blueprint up.

EDIT:  Maybe have a cvar controlled?  Then we can have binds to toggle it etc.
u will be able to display any combination of: the surface of the range marker (as a semi-transparent sphere or spherical cone), the intersection between the world and the range marker (as a line on the map geometry), and the so-called outline of the range marker (as a line on the map geometry or in the air). u will be able to filter which buildable types u want to have ranges displayed for.

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #126 on: June 25, 2011, 02:18:54 am »
Looking good. How much does all this cost (in processing)?
all this will physically burn ur video card to a crisp. </sarcasm> i'd say all this has acceptable performance.

Plague Bringer

  • Posts: 3814
  • Turrets: +147/-187
Re: RC/repeater ''power rings''
« Reply #127 on: June 25, 2011, 05:05:53 am »
if any part of the bbox is in the build range, the building can be built.
bullshit
As I understand it...
Fuck off.

If that ISN'T the way it works, the Nux is on the ball with saying it should be fixed (tweaked) to better display the build range. Now, would you care to tell us how building works (since we're obviously in the dark and making assumptions), or are you going to just spew crude one word responses. If it's not any part of the bbox, then it must be that either all of the bbox or half of the bbox (all, preferably) that has to be in power range for a structure to be built. If that's the case, then the sphere is too small. Not too much of an issue, but an issue none the less.
U R A Q T

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #128 on: June 25, 2011, 11:34:30 am »
Now, would you care to tell us how building works (since we're obviously in the dark and making assumptions)
for each buildable there is an internal point called the origin. the distance between origins of the two buildables must be no more than 500 (in case of repeaters) or 1000 (in case of the reactor). to find where the origin of a buildable is, read the configs/buildables/<buildable>.cfg file (can be found in one of the distributed GPP pk3 files). for example, in configs/buildables/reactor.cfg, we have:
Quote from: configs/buildables/reactor.cfg
mins        -41 -41 -15
maxs        41 41 95
which means that the bounding box for the reactor extends, from the reactor's origin, down by 15 qunits and up by 95 qunits; this means that the origin of the reactor is closer to the bottom of the reactor, being at the 13.6% "height mark" of the reactor. similarly, the origin of a machinegun turret is at the exact center of the turret, and the origin of a repeater is at the 37.5% height mark of the repeater.

to me, the sphere in Nux's screenshot appears to be too small and/or misplaced. or it can be that the Brindus server has different build logic, which i somehow doubt.

Plague Bringer

  • Posts: 3814
  • Turrets: +147/-187
Re: RC/repeater ''power rings''
« Reply #129 on: June 25, 2011, 03:55:29 pm »
Alright, thanks /dev/h. I just checked and all origins are centered on X and Z, so it's likely too small a sphere model.

/dev/h: Is it possible to not draw sphere overlap?


U R A Q T

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #130 on: June 25, 2011, 04:04:39 pm »
Is it possible to merge power spheres? Rather than showing the overlap, not drawing it?


i haven't explored that possibility yet, but u should ask Uniq PhoeniX.
note however that this may not be the most appropriate for offensive buildables, because overlapping areas can be under extensive fire.

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: RC/repeater ''power rings''
« Reply #131 on: June 25, 2011, 05:36:37 pm »
to me, the sphere in Nux's screenshot appears to be too small and/or misplaced. or it can be that the Brindus server has different build logic, which i somehow doubt.

It's probably just a precision problem. The build range is drawn by using a radius 1 sphere MD3 model scaled by the build range (1000 for the RC), but the .md3 format has only a precision of 1/64 units, so the rounding error of the scaled sphere can be up to ~15 game units, which is like 1/3rd of a turret width. I guess it could be fixed by using a radius 1000 sphere model and adapting the scale factor accordingly.

F50

  • Posts: 740
  • Turrets: +16/-26
Re: RC/repeater ''power rings''
« Reply #132 on: June 25, 2011, 08:11:53 pm »
It is possible to use a 10, or even 100 unit sphere and then multiply the scaling factor by 1/10th or 1/100th? That should give you a lot more accuracy.

Quote
u will be able to display any combination of: the surface of the range marker (as a semi-transparent sphere or spherical cone), the intersection between the world and the range marker (as a line on the map geometry), and the so-called outline of the range marker (as a line on the map geometry or in the air). u will be able to filter which buildable types u want to have ranges displayed for.
/dev/humancontroller: unless you have plans to release within the next month, please just lay off and leave this to people who actually have code to share.


As for merging power spheres, I think that's a bad idea. The main use I personally have for power spheres is to know which repeater(s) are likely to be powering a buildable so I know where the BP is going, or if a structure is being supported by only a single egg.
« Last Edit: June 25, 2011, 08:19:19 pm by F50 »
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #133 on: June 25, 2011, 08:30:57 pm »
Quote
u will be able to display any combination of: the surface of the range marker (as a semi-transparent sphere or spherical cone), the intersection between the world and the range marker (as a line on the map geometry), and the so-called outline of the range marker (as a line on the map geometry or in the air). u will be able to filter which buildable types u want to have ranges displayed for.
/dev/humancontroller: unless you have plans to release within the next month, please just lay off and leave this to people who actually have code to share.
problem?
in fact we do plan to release the range markers feature within the next month. it's time to lay on. nwhahahahaha!

Plague Bringer

  • Posts: 3814
  • Turrets: +147/-187
Re: RC/repeater ''power rings''
« Reply #134 on: June 26, 2011, 03:13:40 am »
As for merging power spheres, I think that's a bad idea. The main use I personally have for power spheres is to know which repeater(s) are likely to be powering a buildable so I know where the BP is going, or if a structure is being supported by only a single egg.



Just imagine a 4-egg alien base. It'd be hectic and probably obstruct the view (I can't say for sure, though, as I can't get on Brindus). Also, it can become hard to assimilate where power spheres are coming from when the screen is overpopulated with them.
U R A Q T

Nux

  • Posts: 1778
  • Turrets: +258/-69
Re: RC/repeater ''power rings''
« Reply #135 on: June 26, 2011, 03:20:30 am »
I would also like to refer you to my post on page 3.

At least humans have the option of putting the ckit away (which stops them appearing), poor granger is blinded and can do nothing about it.  :'(

RAKninja-Decepticon

  • Posts: 843
  • Turrets: +14/-679
    • Stupid Videos
Re: RC/repeater ''power rings''
« Reply #136 on: June 26, 2011, 04:40:22 am »
I would also like to refer you to my post on page 3.

At least humans have the option of putting the ckit away (which stops them appearing), poor granger is blinded and can do nothing about it.  :'(
question:  how hard would it be to add in a "toggle build spheres" bind?
Note 4: The best, although not always easiest, way to deal with trolls is thus: do not respond at ALL in the thread.
Main Rules
4.) No spamming or advertising (includes useless multi-posts and bumps.)
6b.) Do NOT harass other members.
  6c.) Do NOT troll!

jm82792

  • Posts: 630
  • Turrets: +9/-34
Re: RC/repeater ''power rings''
« Reply #137 on: June 26, 2011, 04:43:05 am »
Have a line coming from each power source to the edge of the sphere?

F50

  • Posts: 740
  • Turrets: +16/-26
Re: RC/repeater ''power rings''
« Reply #138 on: June 26, 2011, 04:45:50 am »
(I can't say for sure, though, as I can't get on Brindus).

What? If you're having trouble downloading the sounds (which is IMO most likely) try going to here and looking for the humongous zzz-sounds-alpha2.pk3

Quote
question:  how hard would it be to add in a "toggle build spheres" bind?

Code: [Select]
/bind KEY toggle cg_buildRanges
Quote
At least humans have the option of putting the ckit away (which stops them appearing), poor granger is blinded and can do nothing about it.
What? The spheres only appear when you have the ghost buildable in front of you.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


RAKninja-Decepticon

  • Posts: 843
  • Turrets: +14/-679
    • Stupid Videos
Re: RC/repeater ''power rings''
« Reply #139 on: June 26, 2011, 05:43:20 am »

Quote
question:  how hard would it be to add in a "toggle build spheres" bind?

Code: [Select]
/bind KEY toggle cg_buildRanges

just wondering, as that seems like a fine counter to aliens not being able to "turn it off" like the humans can by pulling out the blaster.  or perhaps toggling them to 50% or more transparency as a seperate, alien specific, bind.  it's no big deal if you have a toggle key, if you ask me.
Note 4: The best, although not always easiest, way to deal with trolls is thus: do not respond at ALL in the thread.
Main Rules
4.) No spamming or advertising (includes useless multi-posts and bumps.)
6b.) Do NOT harass other members.
  6c.) Do NOT troll!

Nux

  • Posts: 1778
  • Turrets: +258/-69
Re: RC/repeater ''power rings''
« Reply #140 on: June 26, 2011, 07:14:29 pm »
Quote
At least humans have the option of putting the ckit away (which stops them appearing), poor granger is blinded and can do nothing about it.
What? The spheres only appear when you have the ghost buildable in front of you.

You're right. That's fine then.

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: RC/repeater ''power rings''
« Reply #141 on: June 26, 2011, 07:45:01 pm »
Not drawing intersecting areas: not appropriate for anything IMO (even with eggs/om you may want to build something that is in range of more than 1 creep source), except repeaters *if* you additionally draw a plane exactly between the 2 repeaters, so you could see which is closer.
*Technically* it may be possible, tho I don't know yet. If it is, it's probably too inefficient on q3. I'm guessing it would be a piece of cake with full access to stencil and depth buffers.
I've thought about additionally drawing on all map geometry (not just at edges) inside any power area, and it should be easy, but it's not implemented yet. However that would also mean drawing on all players & buildables in power areas and that may look weird...

About precision: we already did get around the .md3 precision problem (tho we noticed the problem with cones) by using models with radius 100 that are scaled by range/100, so yes, that definitely works.
Another possible cause for the mismatch on Brindus is having the sphere centered above the center of the RC range.

The view is not nearly as obstructed when only displaying the lines on walls.
« Last Edit: June 26, 2011, 07:46:39 pm by UniqPhoeniX »

Plague Bringer

  • Posts: 3814
  • Turrets: +147/-187
Re: RC/repeater ''power rings''
« Reply #142 on: June 27, 2011, 06:35:12 am »
Lines would be my preferred method of rendering power. Perhaps it could be a choice, much like the crosshair. Lines, spheres, or none?
U R A Q T

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #143 on: June 27, 2011, 06:43:39 am »
Lines would be my preferred method of rendering power. Perhaps it could be a choice, much like the crosshair. Lines, spheres, or none?
u will be able to display any combination of: the surface of the range marker (as a semi-transparent sphere or spherical cone), the intersection between the world and the range marker (as a line on the map geometry), and the so-called outline of the range marker (as a line on the map geometry or in the air).

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #144 on: July 13, 2011, 05:27:24 pm »
we are proud to release the version 1.0 of our (Amsterdam Unlimited's) range marker feature.

i'll take the credit for coding. credits go to Uniq PhoeniX for creating the models, and devising a method (which we call "binary shaders") to draw lines on the map geometry and outlines of shapes. the development is tracked at the bugzilla range marker report.

provided is a demo package, which contains latest-revision modules with the added range marker feature. unfortunately, we do not provide a server with the feature atm, but other servers should install the feature soon.
« Last Edit: July 14, 2011, 06:45:22 am by /dev/humancontroller »

Nux

  • Posts: 1778
  • Turrets: +258/-69
Re: RC/repeater ''power rings''
« Reply #145 on: July 14, 2011, 03:30:04 am »
MIGHTY ORBS



The command list:

    cg_rangeMarkerBuildableTypes
    cg_rangeMarkerForBlueprint
    cg_rangeMarkerLineThickness
    cg_rangeMarkerLineOpacity
    cg_rangeMarkerSurfaceOpacity
    cg_rangeMarkerDrawFrontline
    cg_rangeMarkerDrawIntersection
    cg_rangeMarkerDrawSurface

Why is it I can't see any intersection lines? (Yes, I have the options set correctly)

Meisseli

  • Spam Killer
  • *
  • Posts: 765
  • Turrets: +83/-25
Re: RC/repeater ''power rings''
« Reply #146 on: July 14, 2011, 04:18:49 am »
Blaster/spectators shouldn't be able to view the spheres.

Yeah, as I thought, starts to look more confusing than helpful when there are multiple power sources in play. Making a bind to toggle their visibility might just make it useful though.

woo rc hitting turrets, though

« Last Edit: July 14, 2011, 04:40:04 am by Meisseli »

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #147 on: July 14, 2011, 06:07:49 am »
The command list:

    cg_rangeMarkerBuildableTypes
    cg_rangeMarkerForBlueprint
    cg_rangeMarkerLineThickness
    cg_rangeMarkerLineOpacity
    cg_rangeMarkerSurfaceOpacity
    cg_rangeMarkerDrawFrontline
    cg_rangeMarkerDrawIntersection
    cg_rangeMarkerDrawSurface
those are not commands.
btw, see Options -> System -> Range Markers
Why is it I can't see any intersection lines? (Yes, I have the options set correctly)
oh, crap. try setting r_showsky to 1, or going to an area isolated from the sky (ie., the Niveus plant room), and then doing a vid_restart. what happens then? this is just for my curiousity, but otherwise you should try setting r_fastsky to 1, and then doing a vid_restart.

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #148 on: July 14, 2011, 06:09:57 am »
Blaster/spectators shouldn't be able to view the spheres.
no u

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: RC/repeater ''power rings''
« Reply #149 on: July 14, 2011, 06:46:53 am »
just for the record, i've posted screenshots on how the range markers SHOULD(TM) show up with the default settings.