January 24, 2021, 01:17:32 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
3D Graphics - Effects
»
[bb] quick planet glow without entityorder by Rob [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] quick planet glow without entityorder by Rob [ 1+ years ago ] (Read 611 times)
BlitzBot
Jr. Member
Posts: 1
[bb] quick planet glow without entityorder by Rob [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:42 AM »
Title :
quick planet glow without entityorder
Author :
Rob
Posted :
1+ years ago
Description :
planet gradient fx
Code :
Code: BlitzBasic
;bugs: rob@redflame.net
Graphics3D
640
,
480
,
16
,
2
camera=
CreateCamera
(
)
planet=
CreateSphere
(
)
glow=
CreateSprite
(
)
ScaleSprite
glow,
2
,
2
light=
CreateLight
(
2
)
MoveEntity
light,
1000
,
1000
,-
1000
MoveEntity
camera,
0
,
0
,-
10
tex=
CreateTexture
(
64
,
64
,
48
+
2
+
512
)
SetBuffer
TextureBuffer
(
tex
)
For
i=
1
To
64
Color
i*
3
,i*
3
,i*
4
Oval
i/
2
,i/
2
,
64
-i,
64
-i,
1
Next
EntityTexture
glow,tex
EntityBlend
glow,
3
While
Not
KeyHit
(
1
)
PositionEntity
glow,
EntityX
(
planet
)
,
EntityY
(
planet
)
,
EntityZ
(
planet
)
PointEntity
glow,camera
MoveEntity
glow,
0
,
0
,-
1
UpdateWorld
RenderWorld
Flip
Wend
End
Comments :
Clyde(Posted 1+ years ago)
Simple, yet cool
puki(Posted 1+ years ago)
Hmm, not sure what this is supposed to do? I ran it and saw a white ball, not too dissimilar to a white cue ball. So I removed the 'glow' effect and saw the same white cue ball.Have I missed something here? By removing all of the code lines that contain the world 'glow', I see the same result.Hope I didn't break it.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
3D Graphics - Effects
»
[bb] quick planet glow without entityorder by Rob [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal