Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK has smoke effect ?? (3D)

Author
Message
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 1st May 2016 10:51

AGK has smoke effect ?? (3D)
How can I create it ?
Have I must create shader for it ?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 1st May 2016 11:34 Edited at: 1st May 2016 11:42
i think agkv2 did not have 3d particles.
but smoke are just some 3d squares with a smoke texture rotating up in the air and fade out.
CreateObjectPlane
SetObjectImage
InstanceObject
SetObjectPosition
GetObjectX
GetObjectY
GetObjectZ
GetObjectWorldX
GetObjectWorldY up
GetObjectWorldZ
SetObjectColor( objID, red, green, blue, alpha ) alpha for fade
SetObjectLookAt look at camera
RotateObjectLocalZ
DeleteObject
AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 1st May 2016 12:48
Thank you very much Markus
This is what I need
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st May 2016 17:11
You should use alpha blending. Light areas blend to form brighter areas.
I can't grab it on this laptop, but I made a nice background smoke effect with one image of swirly dark and light patches. I flipped one sprite, set it to alpha blend mode and scrolled the UV coordinates. It is very effective.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 2nd May 2016 08:22
There is no method to get current alpha for an object ??
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 2nd May 2016 09:20
seems not
AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 2nd May 2016 12:18
... ok ... How can I check if the object is hidden or not ?
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd May 2016 18:55 Edited at: 2nd May 2016 19:00
I knew this will be useful, but I think it was back then not so popular to use 3d:


AGK Tier1 Particle system snippet:
https://forum.thegamecreators.com/thread/210819

EDIT: Ported to AGK2:


Cheers, Jack

[/url]
GolWofael
8
Years of Service
User Offline
Joined: 15th Mar 2016
Location:
Posted: 4th May 2016 09:16
Thank you very much Jack for your excellent example

Login to post a reply

Server time is: 2024-11-25 08:50:57
Your offset time is: 2024-11-25 08:50:57