GLBasic forum

Codesnippets => Code Snippets => Topic started by: Hark0 on 2010-Jul-16

Title: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-16
Hello!

I hope the original designer is not angry about my contribution. If braiders, please delete the thread.

Due my professional job (graphical designer) I made a GLBasic logo designs in high resolution for the new devices (like IPAD).

ENJOY!!!!

=D



[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons)
Post by: Hark0 on 2010-Jul-16
More...

[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: Ian Price on 2010-Jul-16
Lovely :)
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: matchy on 2010-Jul-16
Cool. How about portrait and landscape splash screen?
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: Hark0 on 2010-Jul-16
Splash screen for iPad... adaptable to low screen's...  :P



[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: Hark0 on 2010-Jul-16
More...

GOOD WEEKEND!!!

=D

[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: MrTAToad on 2010-Jul-16
Time to replace my web graphic :)
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: WPShadow on 2010-Jul-16
Quote from: Hark0 on 2010-Jul-16
Splash screen for iPad... adaptable to low screen's...  :P

Looks great!!!
Title: Re: HI-RES GLBasic media (icons & logo)
Post by: D2O on 2010-Jul-17
Thanks :good:
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Kitty Hello on 2010-Jul-18
if anyone puts a "made with glbasic" in a killah app, I'll wet my pants...
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-18
Quote from: Kitty Hello on 2010-Jul-18
if anyone puts "made with glbasic" in a killah app, I'll wet my pants...
:D :D
LOOOOOOOOOOOOL
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: matchy on 2010-Jul-19
 :P Easy but I personally I'd remove the splash screen text to make it more romantic.  :nana:

Seriously though, I agree to only killah apps need apply.  8)
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: WPShadow on 2010-Jul-19
is there any chance to get the Cubes in 3D with the correct Camera & Angle to make an animated Logo with it?
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-19
Quote from: WPShadow on 2010-Jul-19
is there any chance to get the Cubes in 3D with the correct Camera & Angle to make an animated Logo with it?

About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

(See more info and video HD in my blog: http://litiopixel.blogspot.com)

;)

[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hatonastick on 2010-Jul-19
Quote from: WPShadow on 2010-Jul-19
is there any chance to get the Cubes in 3D with the correct Camera & Angle to make an animated Logo with it?
Oddly enough I was thinking about this today.  Basically I was going to write a small program that did the following:
1) Generated the cubes in their correct colours and point the camera pretty much at 0,0,0..
2) Allowed them to by cycled through and selected, then moved around and rotated (not in all directions as it isn't needed) separately.  Maybe allow camera movement too.
3) Display positions in x,y,z of each on screen so can record them once they are in the right places.
4) Use the final coordinates to plan an animated intro which includes flashy bits and a sound track.

Thats the basis of my idea, would probably need changing as there are quite likely things I haven't thought about such as ability to take screen shots.
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: WPShadow on 2010-Jul-19
Quote
About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

No...  :D

I want to make an own animated Logo! With the new Type - Functions it's easier than I thought! Have you got or somebody else the
right angles for the cubes in 3D?
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hatonastick on 2010-Jul-19
Quote from: WPShadow on 2010-Jul-19
Quote
About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

No...  :D

I want to make an own animated Logo! With the new Type - Functions it's easier than I thought! Have you got or somebody else the
right angles for the cubes in 3D?
It's starting to annoy me that everyone seems to know what changes have been made to type other than me.  :S
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-19
Quote from: WPShadow on 2010-Jul-19
Quote
About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

No...  :D

I want to make an own animated Logo! With the new Type - Functions it's easier than I thought! Have you got or somebody else the
right angles for the cubes in 3D?

"Cappicci" :D

hmmm I no have angles of cubes... For my designs I just downloaded and vectorize new cubes with Coreldraw...

Goog luck with your ides, sounds great!
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Kitty Hello on 2010-Jul-19
That code is really old, but it still compiles.


Code (glbasic) Select

// --------------------------------- //
// Project: Intro: 2D
// Start: Friday, August 13, 2004
// IDE Version: 2.40811

// GLOBAL gPreGFX$
// gPreGFX$ = "GFX/"
// GOSUB ShowDemo

GOSUB ShowDemo


SUB ShowDemo:
LOCAL sleeper, chr, x, yp, num, angle, str$, text$, offset
LOCAL PosX[], PosY[], Zoom[], i, sx, sy, xscale, scale
LOCAL fx, fy

LIMITFPS -1
LOADFONT "metalfont.png", 0
GETFONTSIZE fx, fy
GETSCREENSIZE sx, sy
MakeCubeSprite(0, 255, 255,   0, 10, 10, 5, 10)
MakeCubeSprite(1,   0,   0, 255, 10, 10, 5, 10)
MakeCubeSprite(2,   0, 255,   0, 10, 10, 5, 10)
MakeCubeSprite(3,   0, 255, 200, 10, 10, 5, 10)
MakeCubeSprite(4, 255, 255, 255,-15, -2, 7,  8)
BLACKSCREEN;SHOWSCREEN;SHOWSCREEN
DIM PosX[5][2]
DIM PosY[5][2]
DIM Zoom[5][2]
i=0
PosX[i][0] =  1; PosX[i][1] = .6;   PosY[i][0] = .264; PosY[i][1] = .264; i=i+1
PosX[i][0] = .5; PosX[i][1] = .45 ; PosY[i][0] =  1;   PosY[i][1] = .3;   i=i+1
PosX[i][0] = .3; PosX[i][1] = .25 ; PosY[i][0] = 1.5;   PosY[i][1] = .3;   i=i+1
PosX[i][0] = .5; PosX[i][1] = .35 ; PosY[i][0] = -1.2; PosY[i][1] = .14;  i=i+1
PosX[i][0] = -1; PosX[i][1] = .15 ; PosY[i][0] = .5;   PosY[i][1] = .43;  i=i+1
i=0
Zoom[i][0]=.8; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 1; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 5; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 1; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 2; Zoom[i][1]= 1; i=i+1

xscale=.1
WHILE TRUE
xscale=xscale + GETTIMER()/2500
IF xscale>1 THEN xscale = 1
scale = 1-COS(90*xscale)
FOR i=0 TO 4
ZOOMSPRITE i, sx*(PosX[i][0]*(1-scale) + PosX[i][1]*scale), _
sy*(PosY[i][0]*(1-scale) + PosY[i][1]*scale), _
Zoom[i][0]*(1-scale)+Zoom[i][1]*scale, _
Zoom[i][0]*(1-scale)+Zoom[i][1]*scale
NEXT
ALPHAMODE 0
Center("GLBasic")
IF xscale=1
USEASBMP
GOTO skip
ENDIF
SHOWSCREEN
WEND
skip:
xscale=-1.5
WHILE xscale<1
IF xscale>0
ALPHAMODE xscale
DRAWRECT 0,0, sx,sy, RGB(255,255,255)
ENDIF
xscale=xscale+GETTIMER()/2000
SHOWSCREEN
WEND
BLACKSCREEN
ENDSUB

FUNCTION Center: text$
LOCAL sx, sy, fx, fy
GETSCREENSIZE sx, sy
GETFONTSIZE fx, fy
PRINT text$, (sx-fx*LEN(text$))/2, sy*.7
ENDFUNCTION

FUNCTION MakeCubeSprite: num, R, G, B, w1, w2, h1, h2
LOCAL col1, col2, col3, z, sx, sy
GETSCREENSIZE sx, sy
DRAWRECT 0,0, sx, sy, RGB(255,0,128)
sx=sx/100
col1=RGB(R, G, B)
col2=RGB(R*.85, G*.85, B*.85)
col3=RGB(R*.75, G*.75, B*.75)
IF w1<0
w1=-w1
w2=-w2
sy=col1; col1=col3; col3=sy
ENDIF
FOR z=h1*sx TO (h1+12)*sx // top down
DRAWLINE 1,1+z,                1+w1*sx,  1+z+(h2-h1)*sx, col3
DRAWLINE 1+w1*sx,(h2-h1)*sx+z, 1+(w1+w2)*sx, 1+z+(-h1*2+h2)*sx, col1
NEXT
FOR z=0 TO w1*sx STEP .5// left right
DRAWLINE 1+z, 1+h1*sx+z/w1*(h2-h1), 1+z + w2*sx, 1+z/w1*(h2-h1), col2
DRAWLINE 2+z, 1+h1*sx+z/w1*(h2-h1), 1+z + w2*sx, 1+z/w1*(h2-h1), col2
DRAWLINE 1+z, 1+h1*sx+z/w1*(h2-h1),   z + w2*sx, 1+z/w1*(h2-h1), col2
NEXT
GRABSPRITE num, 0,0, 20*sx+1, 22*sx+1
ENDFUNCTION
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hatonastick on 2010-Jul-20
Hmmm I must have seen that once upon a time because that is almost exactly what I was going to do, just in 2D rather than 3D.  :blink:
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: WPShadow on 2010-Jul-20
Your old code works, but I try to make a better version in 3D with sound and light...  :booze:

What font did you use for "GLBasic Basic for Gamers"?

I tried to find it, but no chance...  :'(
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Kitty Hello on 2010-Jul-20
The font is Babylon5:
http://www.dailyfreefonts.com/fonts/info/445-Babylon-5.html (http://www.dailyfreefonts.com/fonts/info/445-Babylon-5.html)
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: WPShadow on 2010-Jul-20
Here's my first try, the next should be better, this is only the first Test for it!

[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hatonastick on 2010-Jul-20
Brilliant!  Keep at it, can't wait to see the final version.  Well at least that's another thing off my list to stop distracting me from my game.

Anyway I'm planning to be adding your final code to whatever I make with GLB as the intro screen I think.
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Kitty Hello on 2010-Jul-20
[edit] wrong language

not bad. I always wanted to slide the blocks in from the sides. The left block should rotate during this. At the end the top block that does a quick rebounce.
:D

Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: WPShadow on 2010-Jul-20
Wird gemacht!

Spätestens Ende der Woche hab ich das Ganze soweit fertig!
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-20
OOOOPPSSS!!!

GUYS!!! UK FORUM PLEASE!

Can translate?

:P

P.S. CAT (languaje): (No fotem que ens possem tots a escriure en el nostre idioma matern  =D)
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: WPShadow on 2010-Jul-20
Ups...

I only said, that I will try to finish the 3D Logo until the end of this week...
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-20
Quote from: WPShadow on 2010-Jul-20
Ups...

I only said, that I will try to finish the 3D Logo until the end of this week...

Thanks!  :)
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: erico on 2010-Jul-20
I always wanted to slide the blocks in from the sides. The left block should rotate during this. At the end the top block that does a quick rebounce.

can you explain this further?
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-20
Quote from: WPShadow on 2010-Jul-20
Here's my first try, the next should be better, this is only the first Test for it!

WOW!!!

:booze:
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: backslider on 2010-Jul-21
Hi guys,
if sb. want an animated loading screen / symbol... I wrote one :p
Hope you understand my code, but it should be possible :)

greets

[attachment deleted by admin]
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: Hark0 on 2010-Jul-21
WAR OF LOADING SCREEN?!?!?!

:D

Very good too!  :good:
Title: Re: HI-RES GLBasic media (icons & logo & splash screen)
Post by: backslider on 2010-Jul-21
 >:D :good: