Then why don't just getdatabaseblob => createfile => writedata ?I have just read it from a blob in my database and the original image that got loaded into the database is long gone ...
Search found 36 matches
- Mon Feb 25, 2019 6:23 pm
- Forum: Coding Questions
- Topic: Saving image to file
- Replies: 10
- Views: 2572
Re: Saving image to file
- Mon Feb 25, 2019 3:15 pm
- Forum: Coding Questions
- Topic: Random password generation for apps?
- Replies: 27
- Views: 4527
Re: Random password generation for apps?
Maybe you can have a look here
- Thu Feb 21, 2019 10:03 pm
- Forum: Game Programming
- Topic: Tetirs 2
- Replies: 1
- Views: 3003
Tetirs 2
Hello, after the bitmapfont easing and sprite engine modules, it's time to try to make a game with it and see if that really work.... And the answer is.... not really :-/
Well first of all here is The game and the sources
So what was wrong with the modules ?
1) Easing module use a postevent to ...
Well first of all here is The game and the sources
So what was wrong with the modules ?
1) Easing module use a postevent to ...
- Thu Feb 21, 2019 10:19 am
- Forum: Game Programming
- Topic: Tweening engine
- Replies: 6
- Views: 4657
Re: Tweening engine
Edit : little fix with the InOut, i'd forget some ()
- Wed Feb 20, 2019 3:06 pm
- Forum: Game Programming
- Topic: Bezier curve generator
- Replies: 0
- Views: 2273
Bezier curve generator
If some need...
InitSprite()
Global p1.f = 0, p2.f = 0.33, p3.f = 0.66, p4.f = 1, Duration, time
Procedure Bezier(t.f,d,Target)
t = t/d
Result = Pow(1-t,3)*(Target*P1) + 3*Pow(1-t,2)*t*(Target*P2)+ 3*(1-t)*Pow(t,2)*(Target*P3) + Pow(t,3)*(Target*P4)
ProcedureReturn Result
EndProcedure ...
InitSprite()
Global p1.f = 0, p2.f = 0.33, p3.f = 0.66, p4.f = 1, Duration, time
Procedure Bezier(t.f,d,Target)
t = t/d
Result = Pow(1-t,3)*(Target*P1) + 3*Pow(1-t,2)*t*(Target*P2)+ 3*(1-t)*Pow(t,2)*(Target*P3) + Pow(t,3)*(Target*P4)
ProcedureReturn Result
EndProcedure ...
- Fri Jan 18, 2019 3:02 pm
- Forum: Game Programming
- Topic: Sprite Engine
- Replies: 5
- Views: 4993
Re: Sprite Engine
Update. From now i'm realy not sure about what am i doing... But it seem it work o_O.
Here is a little sample on how to apply shader on layer base on Samuel transparency shader .
Shader
@Samuel : If you have any idea of how can we get the textureID apply on the material when created with ...
Here is a little sample on how to apply shader on layer base on Samuel transparency shader .
Shader
@Samuel : If you have any idea of how can we get the textureID apply on the material when created with ...
- Thu Jan 17, 2019 7:39 pm
- Forum: Game Programming
- Topic: Sprite Engine
- Replies: 5
- Views: 4993
Re: Sprite Engine
Their is an example with lot of comment.
Collision check don't take care of rotation of the sprite so not really, i'd try to have a really fast collision check, i'll try to have a more precise one (but slower). But not in my priority.Does sprite collision works with rotated sprite ?
- Thu Jan 17, 2019 3:49 pm
- Forum: Game Programming
- Topic: Sprite Engine
- Replies: 5
- Views: 4993
Sprite Engine
First of all I would like to say a realy big thank to eddy for his Sprite Engine . I can realy learn a lot, that's an awesome code.
The engine is not over yet but already replace all pb's 2D lib function and more.
I can't test every function so may be unstable. If you find some bug i'm intrested if ...
The engine is not over yet but already replace all pb's 2D lib function and more.
I can't test every function so may be unstable. If you find some bug i'm intrested if ...
- Fri Jan 11, 2019 11:16 pm
- Forum: 3D Programming
- Topic: How does light work ???
- Replies: 3
- Views: 2174
Re: How does light work ???
InitEngine3D()
InitSprite()
OpenWindow(0,0,0,500,500,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,500,500)
CreateLight(0,RGB(255,0,0),0,0,1000,#PB_Light_Point)
CreateCamera(0,0,0,100,100)
MoveCamera(0,0,0,1000)
CreateMesh(0, #PB_Mesh_TriangleList, #PB ...
InitSprite()
OpenWindow(0,0,0,500,500,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,500,500)
CreateLight(0,RGB(255,0,0),0,0,1000,#PB_Light_Point)
CreateCamera(0,0,0,100,100)
MoveCamera(0,0,0,1000)
CreateMesh(0, #PB_Mesh_TriangleList, #PB ...
- Fri Jan 11, 2019 3:13 pm
- Forum: 3D Programming
- Topic: How does light work ???
- Replies: 3
- Views: 2174
How does light work ???
Hello, I'm unable to project a light on a mesh created with createmsh()... Can someone tell me what am I doing wrong ? ^^"
InitEngine3D()
InitSprite()
OpenWindow(0,0,0,500,500,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,500,500)
CreateLight(0,RGB(255,0,0 ...
InitEngine3D()
InitSprite()
OpenWindow(0,0,0,500,500,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,500,500)
CreateLight(0,RGB(255,0,0 ...
- Tue Dec 18, 2018 6:01 pm
- Forum: Coding Questions
- Topic: How to, correctly open a file, on a specific column.?
- Replies: 19
- Views: 3189
Re: How to, correctly open a file, on a specific column.?
Yeah... it work... Once...
Here is a working routine... if I have well understand what you try to do.
EnableExplicit
Structure Column
Col1.s
Col2.s
EndStructure
Global NewList Datas.Column(), Col1, Col2
Macro FillList(Column)
If Column
ChangeCurrentElement(Datas(),Column)
Else
If ...
Here is a working routine... if I have well understand what you try to do.
EnableExplicit
Structure Column
Col1.s
Col2.s
EndStructure
Global NewList Datas.Column(), Col1, Col2
Macro FillList(Column)
If Column
ChangeCurrentElement(Datas(),Column)
Else
If ...
- Tue Dec 18, 2018 4:37 pm
- Forum: Coding Questions
- Topic: How to, correctly open a file, on a specific column.?
- Replies: 19
- Views: 3189
Re: How to, correctly open a file, on a specific column.?
flg= #PB_Window_SystemMenu |#PB_Window_MinimizeGadget| #PB_Window_ScreenCentered
OpenWindow(0,0,0,240,600,"Open File 2nd Col",flg)
ButtonGadget(1, 10, 10, 100, 20, "OpenFile1")
ButtonGadget(2, 130, 10, 100, 20,"OpenFile2")
ListIconGadget(3, 10, 40, 220, 550,"Col1",110)
AddGadgetColumn(3, 1 ...
OpenWindow(0,0,0,240,600,"Open File 2nd Col",flg)
ButtonGadget(1, 10, 10, 100, 20, "OpenFile1")
ButtonGadget(2, 130, 10, 100, 20,"OpenFile2")
ListIconGadget(3, 10, 40, 220, 550,"Col1",110)
AddGadgetColumn(3, 1 ...
- Sat Dec 15, 2018 2:52 pm
- Forum: Coding Questions
- Topic: [Resolved] Problem with Prototype
- Replies: 23
- Views: 6191
Re: Problem with Prototype
Once again, the "bug" was between the chair and the desk.
And how can i know that, if i don"t ask why X64 and X86 are not the same behavior ?
You'r right ! That's why you should ask before post a bug report.
I think what's Little John try to tell you is, ask other member what they think of your ...
And how can i know that, if i don"t ask why X64 and X86 are not the same behavior ?
You'r right ! That's why you should ask before post a bug report.
I think what's Little John try to tell you is, ask other member what they think of your ...
- Fri Dec 14, 2018 6:10 pm
- Forum: Game Programming
- Topic: Tweening engine
- Replies: 6
- Views: 4657
Re: Tweening engine
Thank #NULL ^^
Just a little update for some little bug fix and remove the huge Select I used.
Just a little update for some little bug fix and remove the huge Select I used.
- Fri Dec 14, 2018 2:03 pm
- Forum: Game Programming
- Topic: Tweening engine
- Replies: 6
- Views: 4657
Tweening engine
Hi ! Here is a module (EZEase) for a reaaaaly easy use of tweening based on this list of easeing.
Have fun !!
DeclareModule EZEase
;{ Ease list
#EZEase_easeLinear = "easeLinear"
#EZEase_easeInQuad = "easeInQuad"
#EZEase_easeOutQuad = "easeOutQuad"
#EZEase_easeInOutQuad = "easeInOutQuad ...
Have fun !!
DeclareModule EZEase
;{ Ease list
#EZEase_easeLinear = "easeLinear"
#EZEase_easeInQuad = "easeInQuad"
#EZEase_easeOutQuad = "easeOutQuad"
#EZEase_easeInOutQuad = "easeInOutQuad ...