Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Paul Smith

Pages: 1 ... 3 4 [5] 6 7 8
GLBasic - en / Re: Android Graphics problem
« on: 2015-Jun-24 »
Hi monkeybot1968

GRABSPRITE is you problem. try CREATESCREEN  and USESCREEN. but is slow if constantly used.

change this segment in your code

Code: GLBasic [Select]
GLOBAL circSpr=1
CREATESCREEN 0,circSpr,40,40
circle (20,20,20,10,0xff,0,0,0,1,0xff)

DEBUG "debug code"

GLBasic - en / Re: Planet Animation
« on: 2015-Jun-16 »
Your sites not been  up that long,  if you need your books hosting let me know. I have an old freedom2serve account that still works 5 years after I left.(tiscali and talktalk aquired them and killed them off).

Sent from my M470BSE using Tapatalk

Off Topic / Android TV Boxes
« on: 2015-Jun-14 »
Got a MXIII Android TV box last week for around £40 to replace my £120 WDTV Live box.
How cool. Antutu benchmark ranked my box close to the fastest device. KITKAT installed. rooted
8 GPU,4 CPU,2GB Ram, 4K output**

I got this as the WDTV box is slow to bootup, flawed app sound output with 5.1 spdif. eg no sound with youtube etc, fixed codec support. not many apps.

The MXIII is nearly perfect, full Play/amazon app store. google video and flixter ultraviolet is not working correctly,sound OK but black picture. 4K output support is done with a pre-installed rooted app. made the bottom 10% of my 4k tv wobble  but 1080p is solid
If you want 4K wait for one with HDMI 2.0 or Nvidia Shield.

XBMC/KODI run perfectly.
Glbasic Apps run perfectly.

supplied Remote is pointless as you needs a wireless mouse/keyboard.
not got a compatible game controller to test it with

but for £40 you cant moan.
anyone thinking of getting a similar box?

GLBasic - en / Re: SETTRANSPARENCY question
« on: 2015-Jun-14 »
Well spotted, the IDE changed 4 "if"s to "IF"s. must have look at this about 10x and still missed it.

Thanks TheMapChap

 :nw: :nw: :nw:

GLBasic - en / Re: SETTRANSPARENCY question
« on: 2015-Jun-14 »
Gave up on this in the end, I just used alphamode and made the top layer fully transparent. but thanks for the pointers.
Stuck on something else now. when trying to add FMOD to my project I get the error below.The project in the GLB sample folder compiles perfectly and works, but I get these error if I try a add them to my project or If I start a new project add the fmod_player source but cut and paste the player_interface.
probably somthing simple

C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp: In destructor `__GLBASIC__::FMOD_killer::~FMOD_killer()':
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp:34: error: `IF' was not declared in this scope
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp:34: error: expected `;' before "FMod_Stop"
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp: In function `DGInt __GLBASIC__::FMod_Load(__GLBASIC__::DGStr)':
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp:77: error: `IF' was not declared in this scope
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp:77: error: expected `;' before "FSOUND_Init"
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp:81: error: expected `;' before "g_pFMod"
C:\Users\PAULSL~1\AppData\Local\Temp\glbasic\gpc_temp1.cpp:83: error: expected `;' before "good"
*** FATAL ERROR - Please post this output in the forum
*** Finished ***
Elapsed: 2.9 sec. Time: 00:18
Build: 0 succeeded.
*** 1 FAILED ***

GLBasic - en / Re: SETTRANSPARENCY question
« on: 2015-Jun-04 »
Cheers I'll read through the link tonight if I'm not busy on call.

GLBasic - en / Re: SETTRANSPARENCY question
« on: 2015-Jun-03 »
Found out I can't change the 2nd layer as it ignores  the Settransparency, but if I save the first layer sprite to disc then change the transparency and load it then it works.
I need to do this in memory for speed. any Idea's

A PNG with a transparent mask cant have SETTRANSPARENCY function, well not for me anyway.
BMP works better.

This bit of code works but with disc uses.

Code: GLBasic [Select]
SETCURRENTDIR("Media") // go to media files
SETSCREEN 1366,768,0
SETTRANSPARENCY RGB(255,3,129)  //inner font colour
//LOADFONT "your1111.png",3
LOADFONT "your1111.bmp",3

LOADSPRITE "back.jpg",10
GRABSPRITE 5,0,450,1366,300
SAVESPRITE "test.bmp",5
SETTRANSPARENCY RGB(129,129,129) //background colour
LOADSPRITE "test.bmp",6

GLBasic - en / SETTRANSPARENCY question
« on: 2015-Jun-02 »
I'm having trouble getting this working if its possible at all.
I can set transparency to any colour and overlay with no problems.
I then change the transparency to a different colour , grabsprite , then drawsprite to a new location in essence having 2 layer of transparency, how ever this bit never works no matter what i try.

what I am trying to do is have a font outline which is white and never changes.
the inside of the fonts in pink RGB255,0,128 and is draw over a background. this works
I then change the transparency to blue, grabsprite in the area I need which is the outside of the font background.
and draw it onto a new background.
however it always blue.(or the colour i picked)

Ive changed the colour
its A png image
ive tested the colour is saved right( Hence the bug I noticed in UO Dingsfont)
coded it in different orders but never works

Is it possible or Im I doing about it the wrong way.

cheers Paul

Don't know if this has been noticed as i haven't translated the pages but there is a Bug in the Green RGB value.
If I set background or outline etc to 255,0,128 the PNG always saves as 255,4,128 value. not a real problem but good to point out if your doing multiple transparencies .

But I do like this program, good work  :nw:

GLBasic - en / Re: Android Compile problems.
« on: 2015-Mar-12 »
Did a clean up this mornings and all is well. next time I'll read the instructions. will setup a fresh install on my main PC.

Cheers Spacefractal

GLBasic - en / Re: Android Compile problems.
« on: 2015-Mar-12 »

I'm getting this now,  dont even know what proguard is.I should have left well alone, I guess AE changed a lot of settings.
Oh well.Maybe spacefractal should put a warning saying "Not for idiots" on the download page

*** Configuration: ANDROID ***
GPC - GLBasic Precompiler V.10.053 SN:1e3d04c5 - 3D, NET
Wordcount:1240 commands
running glb_build.bat
Using ANDROID_TARGET="android-8"
You can use "C:\Users\PaulsLaptop\Documents\GLBasic\Andriod Reset\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-8, Android 2.2

BUILD STAGE 1: Compile and pack RELEASE
Updated file C:\Users\PaulsLaptop\Documents\GLBasic\Andriod Reset\distribute\Android\build.xml
Updated file C:\Users\PaulsLaptop\Documents\GLBasic\Andriod Reset\distribute\Android\proguard.cfg
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.

Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 2 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
BUILD STAGE 2: Build DEBUG and install on device
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...

Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 2 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
finished Android build-script.
Android=C:\Users\PaulsLaptop\Documents\GLBasic\Andriod Reset\distribute\Android
*** Finished ***
Elapsed: 24.4 sec. Time: 22:43
Build: 1 succeeded.

GLBasic - en / Android Compile problems.
« on: 2015-Mar-11 »
Installed Android extras as i was curious, and now messed up my settings.
I've uninstalled it which logged 100s of non declared items errors when compiling.
I've reinstalled GLB which has fixed this but now I can't point the compile to my phone
any idea where this is configured.
I dont really want to wipe this laptop.

Off Topic / Re: LG webos TV is .....
« on: 2014-Nov-17 »
Webos is good for open apps
E.g watch something on YouTube then open Amazon then open Netflix etc , it pauses the app until you return  similar to android
Ideal for playing on Xbox then jumping on to YouTube to find a walkthrough.
All other smart TVs I've tried take up to a minute to even startup the so called smart menu,then the app has to close to open the next app.

Not saying it the best TV in the world, the good points out weigh the bad.
Has a slight picture twitch every now and again. Something to do with the upscaler I think.
My wife think the old TV had better sound.
SD can look worse
BBC HD can look good to amazing,wildlife shows stand out so far

Off Topic / Re: LG webos TV is .....
« on: 2014-Nov-17 »
Had a Samsung for 8 years, just started to play up.
have a LG 4k webos TV, only had it a week.
3D is great as 1080p TVs split the screen to 540 line for left and 540 for right.
The 4k shows 2x1080p at same time.

dual band WiFi, had no problems yet. Have it set to 5ghz

Start up time is 5 seconds to picture on
Then up to 20 seconds for webos menu to be active.
Menu is good always check for update on the app using
Has crashed once already
4k picture is excellent , through YouTube 4k videos.

Making you own 4k files that work can be tricky.
You need 4k footage( I use power director 12)
Handbrake nightly build ( has H265/HEVC )
Make A mkv with h265 Dolby 5.1
Stick it on a USB drive . it won't work through network servers no sure why.

Not started messing with webos builds yet but I'm sure I will have the TV broke in a few weeks

Code Snippets / Dizzy Spinning Circles
« on: 2014-Oct-19 »
Again how  Quick simple Code can produce good results.
My take on the Circle part in Second Reality.
Code probably useless, but fun

Code: GLBasic [Select]
// future Crew Second Reality style Circles
// First Version created 5 circle sprites with a palatte rotation but I didn't like it

SETSCREEN 1024,768,1                            //runs better in fullscreen mode
GLOBAL a, r,i,b
PRINT " Please wait slow rendering...",30,20

GOSUB picbuild                                 //Render Circles

GOSUB spriteline                               //Break sprite into 768 sprites lines

b= 180
i= i+ 4                                       // 1st circle Speed clockwise
b= b +3                                       // 2nd circle Speed clockwise
ZOOMSPRITE 7777,100*SIN(i)+0,100*COS(i)+0,1.5,1.5                  // Draw 1st Circle. zoomsprite higher then screen or edges will show
IF i> 1000 THEN ZOOMSPRITE 1000,100*SIN(b)+0,100*COS(b)+0,1.5,1.5 // Draw 2nd Circle once i>1000

IF i> 3000 THEN GOSUB flow                    // bend sprite 1000 once i>3000


// wobble the picture
SUB flow:
              FOR y=1 TO 768
              a=a +0.001 * 6                // Wobble speed
              DRAWSPRITE y, COS( a + y ) * y / 4, y
              GRABSPRITE 1000,0,0,1024,768 // Grab whole screen

// Draw the circles

SUB picbuild:
r = 0
FOR j= 0 TO 650
r=r + 15
IF r > 400 THEN r = 0
FOR i=0 TO 360 STEP 0.1                   // Higher the step the more missed pixels + faster render
SETPIXEL j*SIN(i) + 1024 /2, j*COS(i)+768 /2, RGB(r/3, r/3, r/3)   // PLot a dot

// Grab Whole screen
GRABSPRITE 7777,0,0,1024,768             // Grab the same picture twice
GRABSPRITE 1000,0,0,1024,768


SUB spriteline:
FOR t = 1 TO 768
GRABSPRITE t,1,t,1024,1                 //grab 1 line from top to bottom, 1024 pixels wide * 768


Pages: 1 ... 3 4 [5] 6 7 8