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 - Billamu

Pages: [1] 2
1
Yeah it was MouseCount seeing 16 touches and the array is only 5.
I cobbled this together and it runs fine now.

Code: (glbasic) [Select]
FUNCTION updateMice:
    gm = GETMOUSECOUNT()-1
    IF gm>4 THEN gm=4
    FOR imouse% = 0 TO gm
        SETACTIVEMOUSE imouse%
        MOUSESTATE mx%, my%, b1%, b2%
        mouse[imouse].x=mx
        mouse[imouse].y=my
        mouse[imouse].active=b1
    NEXT
ENDFUNCTION

2
Thanks for that Backslider. When I get a moment to have another go at it I'll try that out.  I suspect that it's throwing errors because it says that there are 16 different mouses (touches) available, which may be true for an iPad, but not for an iPhone. I'll see what happens...

3
I can verify it's not the loading of the sprite, it seems to be doing that just fine. I think it has something to do with polling the touchscreen.

4
I've been compiling this to my iPhone, and the app opens, does nothing and then closes again.

I've heard it will close the app if something doesn't work. Its Windows build runs no problems, AFAIK I've made sure the files it accesses are written in the correct case.

I am using an iPhone 2G with XCode 4.0.1, compiling for iPhone iOS 3.0. I am using V8.078 of GLBasic.

Any help on this would be greatly appreciated.  :)

5
GLBasic - en / Re: Exporter for Blender 2.53
« on: 2010-Sep-03 »
Thanks Gernot. I was importing the script through Blender's text editor and running it from there.

The script shows a syntax error at line 47:
Code: (glbasic) [Select]
except IOError, (errno, sterror)

6
GLBasic - en / Re: Exporter for Blender 2.53
« on: 2010-Sep-02 »
I had a go at seeing if the exporter was compatible with Blender 2.53. I didn't have much luck. It threw up errors. I think we'll need to use 2.49b for the time being :(

7
GLBasic - en / Re: Switching from 2D to 3D
« on: 2009-Aug-25 »
That's very interesting Ocean! I'll have to keep that one in mind. I've been thinking about using either rendered 2d or 3d for my app.  =D

8
GLBasic - en / Re: Switching from 2D to 3D
« on: 2009-Aug-24 »
Throwing my two cents in regarding the 2d-3d issue. GLBasic is good at dealing with 2d/3d, but I think for the sake of performance do as much as you can in 3d, including the 2d stuff.

9
Obviously one can't make phone calls :D

On closer inspection though this means an iphone has more to deal with than an ipod touch.
The 2G hardware is an ipod touch hardware glued to its phone component. The 3G and 3GS have better integration of the boards.

I am developing on an iPhone 2G with 3.0 OS because it would be the console that's would suffer from performance issues. If I can get my app to run on it well, it should run just fine on anything else.

iPhones also have speakers. That affects battery consumption.

10
The iPhone / iPod Touch has a very particular way of drawing stuff. The following file is directed at 3d graphics but I think is relavent to this discussion as far as understanding what the iPhone is doing, and why it has a low drawcall count.

Gernot's suggestion of using Polyvector instead might be the way to go.

http://www.imgtec.com/factsheets/SDK/PowerVR%20MBX.3D%20Application%20Development%20Recommendations.1.0.67a.External.pdf

11
Off Topic / Re: iPod Touch
« on: 2009-Aug-14 »
I jumped on the iPhone developer bandwagon a month or two ago. I looked at all sorts of ways of developing quickly on the cheap.

The cheapest option I've found is to get either a Mac Mini or Macbook with an Intel chipset, then you have to pay the developer fee to get on the app store.

I considered turning my Netbook into a Hackintosh, but chose against it to protect myself from legal issues down the track, and technical issues arising from using non-standard gear.

With all that said, I'm now trying to nurse my credit card back to health. :D


12
Tutorials / Re: Entity system - Space shooter
« on: 2009-Feb-02 »
Thankyou for the English version of your entity system. It's greatly appreciated!  :good:

13
Beta Tests / Re: onscreen keyboard
« on: 2008-Sep-30 »
The word 'gp2x-f200' comes to mind...  =D

14
x=sin(angle)*scale
y=cos(angle)*scale

I think...

15
For anti-aliasing artifacts... Back in my Amiga days I would draw my sprites with a dark or light grey edge, depending on the background. If you're rendering graphics you can render to a grey background and then do an Aliased fill to RGB(255,0,128) for the background again.

Meddling with threshholds in Gimp is also extremely helpful too. The idea is to make the artifacts look like a natural mixture between your sprite and the background... more than half the time. If there are extreme colour changes in the background then this technique won't work.

Pages: [1] 2