BASIC

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.


Topics - Paul Smith

Pages: 1 [2]
16
Beta Tests / 2 Future Crew style effects
« on: 2014-Oct-13 »
2 Effect from Second Reality
All done with standard GLB commands.

1st Fake plasma Cube: FC used palette rotation , not  sure how to do that  so I did it my way.

2nd Overlapping/bending circles: takes 10 seconds to render.tried this with a rotating palette but it looked bad.

I will upload code once it cleaned and optimized if interested
Let me know if you like or have idea's

circles.exe
cube.exe

17
Code Snippets / Simple Unlimited Sprites
« on: 2014-Aug-14 »
Unlimited Sprites Effect


Just a simple bit of fun,  wanted it to look like this http://www.youtube.com/watch?v=8hvzo_swB5s but that's a bit out of my math skills,
so I stole the music instead.Its more like ULMs version without the scroller. http://www.youtube.com/watch?v=gabkyez7Txk.

Runs better in a window, fullscreen shows update lines.

18
GLBasic - en / Android Sound/Music again
« on: 2014-Aug-04 »
I know this has come up a lot in the forums, Ive read nearly every post in the search but no joy.
Ive tried ogg in mono 8kh 11 22 etc all encoded with audacity for music, no sound on 3 different android devices
ive tried wav mono for sound effects still no sound, all work with windows (mp3 replaced ogg).

anyone got a working test project that works on android.

I Know MrTAToads ocean loader runs from the playstore, but is it using Standard glbasic or Android extra (which ive not installed/read instructions yet )

hopefully some one can give me pointers on what i missing

cheers all






19
GLBasic - en / reading data values
« on: 2014-Jul-12 »
Hi all
Never had to  use DATA storage in my code so far, however now i need to store 255 static  values between 0 and 9
i also need to  read the value at different positions e.g. position 10 = 0 or position 220 = 6
I've looked at help file and examples for data,array etc (some to complicated for me)
came up with this test

GLOBAL a
STARTDATA keys:
DATA 3, 3, 5, 5, 8, 1, 3, 9, 8, 0, 5, 9, 3, 9, 4, 1, 1, 0, 9, 4, 3, 0, 2, 2, 8, 4 // will have 255 values
ENDDATA

RESTORE keys
WHILE TRUE
READ a
PRINT a, 100,100
SHOWSCREEN
KEYWAIT
WEND

this will read the numbers in order
have no idea how to make it go to postion 50 or 12 and read data.

Anyone have any better ways, or  pointers

Cheers




20
GLBasic - en / Using 3D and GRABSPRITE problem
« on: 2014-Jun-16 »
Hi All,

I'm having problems with GRABSPRITE, If I draw a 3D object in the centre of the screen and use  GRABSPRITE then all is OK
but if I do a for next loop 5x and rotate the object + grab 5 sprites then only the first one works.
Ive printed text across the object to prove  that GRABSPRITE is working and it is
if i //grabsprite  then the object turns so that OK
It grabs the whole screen but I know it  works as this is how i written and a 2D unlimited sprites demo.

Any Ideas?


 FOR t = 1 TO 5
X_MAKE3D 1, 50, 45
PRINT t, 400, 300
xxx = xxx + 5
//yyy = yyy + 0.5
X_CAMERA 100 / 20, 0, 0, 0, 0, 0
X_SETTEXTURE 1, 1
X_ROTATION xxx, xxx , xxx, zzz
X_DRAWOBJ 0,0
//IF xxx > 360 THEN xxx = 0
//X_SPOT_LT -1, 0, 0,0,50, 0,0,0,90
GRABSPRITE t, 0, 0, 800, 600
//SHOWSCREEN
//KEYWAIT
NEXT
KEYWAIT
t = 0
WHILE TRUE
ZOOMSPRITE t, 100, 100, 1.1, 1.1
t = t +1
IF t = 5 THEN t = 0
SHOWSCREEN
WEND

21
GLBasic - en / Android compiling Problems
« on: 2011-Sep-12 »
After my current phone melted itself, I'm tempted to buy an  Android phone
before I recompile my old projects I thought I would test it out on some samples e.g helloworld( all compile in   w32 and Win-CE )
I'm getting the errors listed below then compiling
Ive followed the installation instructions and set environment paths etc
any Ideas what Im missing.

Win 7 64bit
java sdk 32 (tried 1.7 & 1.6)
android sdk (installed everything)


_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.8.048 SN:681be9d9 - 3D, NET
Wordcount:4 commands
compile+link:
BUILDSRIPT
BUILD STAGE 1: Compile and pack
     [echo] Creating output directories if needed...
     [echo] Compiling aidl files into Java classes...
     [echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
     [echo] Generating R.java / Manifest.java from the resources...
    [javac] C:\Users\Paul6175\Documents\GLBasic\GLBasic\Samples\Basics\distribute\Android\gen\com\.helloworld\R.java:8: malformed floating point literal
    [javac] package com..helloworld;
    [javac]            ^
    [javac] 1 error

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:386: Compile failed; see the compiler error output for details.

Total time: 3 seconds
BUILD STAGE 2: Install on device
     [echo] Creating output directories if needed...
     [echo] Compiling aidl files into Java classes...
     [echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
     [echo] Generating R.java / Manifest.java from the resources...
    [javac] C:\Users\Paul6175\Documents\GLBasic\GLBasic\Samples\Basics\distribute\Android\gen\com\.helloworld\R.java:8: malformed floating point literal
    [javac] package com..helloworld;
    [javac]            ^
    [javac] 1 error

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:386: Compile failed; see the compiler error output for details.

Total time: 3 seconds
Android=C:\Users\Paul6175\Documents\GLBasic\GLBasic\Samples\Basics\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 12.7 sec. Time: 17:11
Build: 1 succeeded.




Pages: 1 [2]