Author Topic: New way to model floods coming in 4.0.18  (Read 2150 times)

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
New way to model floods coming in 4.0.18
« on: April 10, 2015, 09:29:55 AM »

I just made a bunch of changes to the rendering which results in a new way to render floods lights.   

1) I've added the ability to specify the "size" of the lights.  We've defaulted to pixel size 2, but for dense matrixes and such, you could drop it to 1.  On Windows HiDPI displays, you could increase it to 3 or 4 to make them easier to see.   For a flood light, you could use something like 100 to make a big round circle.

2) I added a "transparency" setting.   For flood lights, you could slide that over to be 1/2 transparent or similar so you can see the background image through it.

3) Pixel "types" - we used to have a single pixel type which ended up rendering as a 2x2 rectangle (pixel size 2 above).   That is now the default (as it's the fastest in OpenGL).    I've added "Smooth" which turns on the OpenGL pixel smoothing which makes the pixels "round" with some anti-aliasing.  Not all video cards will support this.   "Solid Circle" - uses a bunch of triangles to render as a circle.  Slower, but can at least get a circle on all the cards.  "Blended Circle" - like solid circle, but sets the outside edge at full transparent.  Middle of the circle is the transparency setting above. 

Thus, you can create a Flood of "Blended Circle", size 100, transparency 50% or so and it looks like the flood is projecting onto your image.     :-)

Daniel Kulp
Framingham, MA

Offline CaptainMurdoch

  • Full Member
  • ***
  • Posts: 124
    • View Profile
New way to model floods coming in 4.0.18
« Reply #1 on: April 11, 2015, 09:19:59 AM »
Wow, this is awesome and looks great.  Thanks.

I have been resorting to using a custom model with all the pixel numbers set to 1 in order to simulate a flood 'filling' a wall.

Offline tomwb301

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: New way to model floods coming in 4.0.18
« Reply #2 on: April 13, 2015, 06:11:40 AM »
Tried this out yesterday and it works great, Thanks for the great work Dan.
Tom
Crosby, Texas