GithubHelp home page GithubHelp logo

Comments (21)

MustaphaTR avatar MustaphaTR commented on July 26, 2024 1

What you are looking for is Armament>LocalOffset.

from ra2.

GraionDilach avatar GraionDilach commented on July 26, 2024

Line (contrail, laser) widths have been readjusted since in upstream and the fallback default ended up being scaled with cellsize, which due to RA2 having huge tiles compared to say RA1 ended up wider as well.

Also, Desos never had their RA2 effect, because that one is a sinus wave and not a line.

from ra2.

yaaaaa avatar yaaaaa commented on July 26, 2024

maybe I have something confused. probably baffled me that before this wave has a different color

from ra2.

MustaphaTR avatar MustaphaTR commented on July 26, 2024

That would be better if we change color of it to green as a start. Purple looks too unreleated.

from ra2.

phrohdoh avatar phrohdoh commented on July 26, 2024

Upstream does not have paletted line rendering yet so we cannot remap the line drawn, so there is no point changing it yet.

@abcdefg30 what is the bug here?

from ra2.

GraionDilach avatar GraionDilach commented on July 26, 2024

The Desolator's beam wasn't remappable, but green - https://github.com/Phrohdoh/oramod-ra2/blob/master/extra-files/rules.ini#L752. Both the width and colors are bug.

from ra2.

phrohdoh avatar phrohdoh commented on July 26, 2024

Generate a sine wave and pass the world-space points to WorldRenderer.ScreenPosition then those float2s to the RgbaColorRenderer.

from ra2.

phrohdoh avatar phrohdoh commented on July 26, 2024

WIP:
deso-test-03

from ra2.

forcecore avatar forcecore commented on July 26, 2024

With my Railgun PR in bleed, I think I have a good chance of getting the sine beam into upstream, too. The code won't be too different. (I made the railgun code FROM the sine beam)

from ra2.

Nihilianth avatar Nihilianth commented on July 26, 2024

I've tried to implement this using the Railgun code. I had to modify it a bit in terms of offsets / using only the sine beam etc. I am unsure though whether I should submit a PR with it, since this mostly a copy paste of the Railgun / RailgunRenderable code.

But here's the result so far:
2019-01-10 12_52_08-openra game 2019-01-10 12-49-42-784 mp4 - vlc media player

And a vid:

from ra2.

MustaphaTR avatar MustaphaTR commented on July 26, 2024

We already have a working Sinus Beam rendering written by forcecore in RV, tho looking at this Railgun projectile looks pretty cool too.

from ra2.

GraionDilach avatar GraionDilach commented on July 26, 2024

For the record: the RV Radbeam is indeed forcecore with a few style updates/cleanup here'n'there.

https://github.com/AttacqueSuperior/Engine/blob/master/OpenRA.Mods.AS/Projectiles/RadBeam.cs
https://github.com/AttacqueSuperior/Engine/blob/master/OpenRA.Mods.AS/Graphics/RadBeamRenderable.cs

If you managed to clean up beyond, do. if you don't then mix the two, and do it thenafter. The RA2 repo ends up better with either.

@MustaphaTR TBH, I'm fairly sure that rendering is doable with RV/AS radbeam though, just use small Amplitude and Wavelength - like 256/64 or so.

from ra2.

Nihilianth avatar Nihilianth commented on July 26, 2024

Oh I didn't think of checking any forks first. That one by forcecore seems to work pretty much the same, except that it also tracks the target. Though I wasn't able to make the beam go from the desolator's weapon to the target without cs code changes, atm its rendered at the unit's feet (Found out about openra just a couple of days ago, so maybe I am missing something in the rules file).
2019-01-11 11_56_13-window

from ra2.

Nihilianth avatar Nihilianth commented on July 26, 2024

@MustaphaTR thanks, that's exactly what I've been looking for.
I'm not sure how to handle it from now on tho. Should I submit a PR with that, even though the code is basically from the AS repo?

from ra2.

MustaphaTR avatar MustaphaTR commented on July 26, 2024

Yes, go ahead and do a PR. There are other traits that are on AS which are already on RA2.dll too.

from ra2.

pchote avatar pchote commented on July 26, 2024

There is a $5 bounty on this that can (hopefully still?) be claimed before the timer expires at the end of the month.

from ra2.

Mailaender avatar Mailaender commented on July 26, 2024

Pinging @forcecore who was the original author of the code I submitted.

from ra2.

forcecore avatar forcecore commented on July 26, 2024

Uhmm I'm not sure whether I should take the bounty, even if I did, I'd donate back to some other bounties anyway like the unit waypoint visualization bounty.

from ra2.

Mailaender avatar Mailaender commented on July 26, 2024

If you don't take the bounty, BountySource will collect it as unclaimed and it will be lost.

from ra2.

forcecore avatar forcecore commented on July 26, 2024

I can't find the bounty, searching for deso, desolator, beam didn't yield any results. I guess it is gone.

from ra2.

pchote avatar pchote commented on July 26, 2024

https://www.bountysource.com/issues/29931106-desolitor-shot-have-not-original-weapon-rendering

from ra2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.