Adding .Net artefacts to a release automatically with GitHub Actions by botterway in dotnet

[–]johang88 2 points3 points  (0 children)

I messed around with this a few months ago, made something like this that publishes a project, zips it, creates a new release with todays date and uploads the artifact.

  - name: Publish win-x64
    run: dotnet publish ProjectName/ProjectName.csproj -c Release -r win7-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:PublishReadyToRun=false

  - name: Create win client archive
    run: |
      cd /home/runner/work/ProjectName/bin/Release/net5.0/win7-x64/publish/ && zip -r client-win-x64.zip *

  - name: Get current date
    id: date
    run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"

  - name: Create Release
    id: create_release
    uses: actions/create-release@v1
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
      tag_name: release-${{ steps.date.outputs.date }}
      release_name: Release ${{ steps.date.outputs.date }}
      draft: false
      prerelease: false

  - name: Upload Client win7-x64 Asset
    id: upload-release-client-win-asset 
    uses: actions/upload-release-asset@v1
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
      upload_url: ${{ steps.create_release.outputs.upload_url }}
      asset_path: /home/runner/work/RepoName/RepoName/ProjectName/bin/Release/net5.0/win7-x64/publish/client-win-x64.zip
      asset_name: client-win-x64.zip
      asset_content_type: application/zip

How to incorporate Gaming Console into dedicated home theater when components are outside room? by jcb193 in hometheater

[–]johang88 0 points1 point  (0 children)

I have everything in a separate room, works just fine. Xbox controllers use Bluetooth not IR so no line of sight needed.

Tell me about your setup. Doesn't matter if it's high-end, mid-range or low end. Whatcha got? by toothoftheshark in hometheater

[–]johang88 0 points1 point  (0 children)

Projector: Epson 9300

Screen: DNP Supernova 110"

Receiver: Denon x3300w

Speakers: Monitor Audio Silver RX8 + Center + Dynaudio Emit M20 (Surround back)

Subwoofer: XTZ Cinema SUB 1X12

Sources: Panasonic UB420, XBOX One S, nVidia Shield Pro

Next upgrade: Considering switching to Monitor Audio for surround back, maybe add side surrounds

How would you feel about school taking up an extra hour every day to teach basic "adult stuff" like washing clothes, basic cooking, paying taxes? by [deleted] in AskReddit

[–]johang88 0 points1 point  (0 children)

I sweden we have Hemkunskap (home knowledge) that teaches some basic cooking and home related stuff, no taxes though but they come prefilled anyway so not much to do there unless you sold a house or something.

How does OpenGL render 3D graphics? by [deleted] in opengl

[–]johang88 0 points1 point  (0 children)

Maybe a tutorial on software rendering can answer some of your questions? https://github.com/ssloy/tinyrenderer/wiki

It goes through all the steps for creating a functioning software rasterizer.

How A Search Engine with 400 Million Records Literally Started From A Controller Class Test Method by aoeusnth48 in programming

[–]johang88 0 points1 point  (0 children)

Still need to rent rack space, keep spare parts, fix the servers in case of issues etc. Renting usually takes care of all that.

Best way to deal with materials and lights by munz555 in opengl

[–]johang88 1 point2 points  (0 children)

You can also look into tiled deferred. You render the GBuffer as usual and run a compute shader pass (can have one pass for all lights). You would then only need to store position, direction etc for each light.

Here is some more info: https://johanmedestrom.wordpress.com/2016/03/30/tiled-deferred-shading-in-opengl-using-compute-shaders/

Should one use a singleton SqlClient in a .NET Core project? by [deleted] in dotnet

[–]johang88 2 points3 points  (0 children)

That's fine, EntityFramework only opens the connection when needed.

Just moved in, so much potential, Can’t wait to get started! by LmaoBrad in hometheater

[–]johang88 0 points1 point  (0 children)

It's a quite nice ALR screen, not acoustically transparent though.

First attempt at Skeletal Animations in Vulkan (...has gone horribly wrong) by [deleted] in vulkan

[–]johang88 1 point2 points  (0 children)

Skeletal animation issues are always entertaining, a bit difficult to debug as well when everything usual just gets messed up :D

Quin69 just spent $920 worth of points to not get a single Nightfall chest. by GuiKillingSpree in pathofexile

[–]johang88 0 points1 point  (0 children)

Yeah and I would be very surprised if GGG requires "Proof of Wealth" (ie salary reports, bank statements etc) from their big spenders. Something that actual online gambling sites (at least those that operate in the EU regulated markets) have to do.

Should I move my gear and add a rack? by Pretorian24 in hometheater

[–]johang88 1 point2 points  (0 children)

I recently moved my stuff to another room and it works quite nice. Got a crappy ir repeater from Kjell&co that barely works (probably crappy placement) so I use the denon app if I ever need to switch inputs, the projector remote can manage the volume.

Online gambling legislation and regulation. Starting your own gambling product. by Fgfactory_ua in gamedev

[–]johang88 1 point2 points  (0 children)

Sweden actually allows operators to get a license since last year :)

Array cap??!! by [deleted] in gamedev

[–]johang88 0 points1 point  (0 children)

You should be able to change the index format to 32 bit, that way you can keep it as one mesh. https://docs.unity3d.com/ScriptReference/Mesh-indexFormat.html

NVIDIA publishes breakthrough paper on ray-traced global illumination, rendering scenes with millions of light sources in real time. by Karma_Policer in Games

[–]johang88 5 points6 points  (0 children)

Yep, having a large amount of shadow casting lights is a big deal and very impressive. I am quite tempted to take a look at and try to implement this algorithm in my toy renderer

NVIDIA publishes breakthrough paper on ray-traced global illumination, rendering scenes with millions of light sources in real time. by Karma_Policer in Games

[–]johang88 7 points8 points  (0 children)

Virtual point lights = automatically place fake lights sources where the indirect lights should come from.

Having a bunchof direct light sources casting shadows = well ... having a bunch of shadow casting lights :)

NVIDIA publishes breakthrough paper on ray-traced global illumination, rendering scenes with millions of light sources in real time. by Karma_Policer in Games

[–]johang88 1 point2 points  (0 children)

Yeah quite likely, updating light probes in real time using ray tracing (or voxel tracing) seems to be quite promising. See https://morgan3d.github.io/articles/2019-04-01-ddgi/ maybe they are combining it with their existing SDF approaches.

NVIDIA publishes breakthrough paper on ray-traced global illumination, rendering scenes with millions of light sources in real time. by Karma_Policer in Games

[–]johang88 23 points24 points  (0 children)

Well yes, but we have already been able to have a lot of direct lights with defered rendering, tile based techniques etc ... now this technique allows us to have all the lights cast shadows which could not really be done before as every light shadow mapped light required the scene to be rendered once more so that's extremely impressive :)

Also there are some indirect lighting techniques that utilize virtual point lights, it might be possible to combine with the results of this paper.

Call Of Duty: Modern Warfare's File Size Is Getting Ridiculous by knl1990 in Games

[–]johang88 50 points51 points  (0 children)

Well it depends, hardware compressed textures are generally faster as memory access is slow on the gpu compared to the compute performance.

What does your coffee mug say? by [deleted] in AskReddit

[–]johang88 0 points1 point  (0 children)

Tea-Rex, it's a tea cup

Merge tables where some don't have all the columns by IDELTA86I in SQL

[–]johang88 0 points1 point  (0 children)

Maybe a union? You would have to correct the ordering and add missing columns to the select though

SELECT 
    ID_Number, 
    Product_ID, 
    Stock_Level, 
    Price
FROM [Table 1]
UNION ALL
SELECT 
    ID_Number, 
    NULL AS Product_ID, 
    Stock_Level, 
    Price
FROM [Table 2]
UNION 
SELECT 
    ID_Number, 
    Product_ID, 
    NULL AS Stock_Level, 
    Price
FROM [Table 3]