Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, dr_panther), 724 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Hot Gas Shader [Re: JibbSmart] #206922
05/16/08 14:36
05/16/08 14:36
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline
Member
Foxfire  Offline
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
if you don't want to use render_to_target + a refraction shader, you could just create a few transparent sprites and place them where the heat is.
Make a sprite of gaussian-blurred noise, then program the sprite(s) to be overlay + transparent and to shift in random directions. This won't be AS good, but it makes it look half-foggy and half-heat-haze without the fuss.

If you really wan't to make a go for it, program the sprites to be generated by a source and move away, becoming larger and more transparent before deletion, while moving a little in random directions. Just make sure you have more than one overlapping so that different pixels are dynamically changing their transparency.

Cheap... but effective


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Hot Gas Shader [Re: Foxfire] #207015
05/17/08 04:37
05/17/08 04:37
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
Quote:
No, I know it's possible without render to texture because transparent entities are sorted like 2D images (because problems occur when two transparent entities are drawn together). This means they're drawn sorted like layers. I need something that, right when an entity is about to be drawn, to distort the pixels behind it.

Nothing in computer programming is impossible, it's just knowing how to do it. I doubt such an amazing engine as Acknex would have no support for drawing on top of already-rendered pictures.

However it's starting to sound more like a DirectX .dll plugin than a regular shader. >_<

Something that draws circles of blur like a facing sprite would be great since my need is for simplicity and speed over realistic stuff (refraction has to render another view which costs alot more than a copy and paste blitter).


again its a rtt function, thats just the way dx works, not the way acknex does it. its called a post process shader, it takes a screen shot, and then blurs it. and blits that to the screen.

Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1