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

Pages: [1] 2 3 4
1
Off Topic / open3mod - Open 3D Model Viewer
« on: 2014-Aug-26 »
Came across this while searching for a 3D model viewer. Unlike a lot of the search results I got back this one is recent (updated in last couple of months), free open sourced & can export also. Opens a lot of diff formats as it's based on the Open Asset Import Library (assimp) as well.

Link http://www.open3mod.com/

Have fun

Lee

2
GLBasic - en / iOS 8.XX and beyond...
« on: 2014-Aug-14 »
iOS 8 is not far away either & depending on how far Apple push their new Swift language that might cause all kinds of problems for GLB (including another xcode).

I think the topic title is quite apt as he does mention Gernot's presence has been sparse of late.

Lee

3
Off Topic / How cool is this :o
« on: 2014-Aug-06 »
 :nw:

4
Off Topic / M$ Surface RT 10.6 tablet question
« on: 2013-Dec-23 »
Hi All, I have some questions with regards to the Windows RT tablets.

I will be taking my Dad & Stepmum shopping the day after Boxing Day to buy a new laptop to replace their 8yr old one & have just learned they want to buy a tablet as well when out & about. The most important thing to keep in mind is neither of them are in any way technology minded, in fact more technophobic than anything else  :D

Basically they use the laptop for email, Facebook, eBay & general browsing like booking holidays etc (& writing the very occasional letter). I have very little Windows 8 knowledge as I follow the "If it ain't broke don't play with it rule" & Win8 offers me nothing I class as needed nor any of my apps require it, besides if it delays the hassle of re-installing all my apps etc then my current Win7 (which works perfectly) is more than good enough.

However the "Simpleness" so to speak of Win8 I think will do well for them & I presume the look & feel of the tablet is near enough the same as the desktop OS. So of anybody has any experience of both of these your comments/help would be useful.
  • Are the main OS & tablet versions pretty much the same in regards to usage?
  • Is transferring pictures etc between the two made more simple due to them both being Win8 based?
The above are the 2 most important questions I have & any help would be appreciated.

I will go Android if need be but seeing as neither of them have any Android experience I don't want to confuse or make things more difficult for them if possible.

For those interested in the specs of the Tablet it has the following
  • NVIDIA Tegra T30 processor (1.4 GHz, quad-core)
  • 32GB Storage
  • 2GB RAM
  • 10.6 inch screen
  • 5 point Multitouch

Cheers

Lee

5
Off Topic / Useful DEV site
« on: 2013-Dec-21 »
Stumbled across by accident from clicking on a link from another site I visit often http://devmag.org.za/

Has lots of tips regarding maths (vectors/bezier etc), using perlin noise in games, colour palettes etc. While none of it is GLBasic obviously the explanations are pretty clear. It used to be distributed as a PDF magazine before being web based but you can download all the 29 issues that where pdf's  :good:

Lee

6
GLBasic - en / Polyvector Question
« on: 2013-Dec-03 »
I'm messing about with POLYVECTORS again & my question is about MODE 2 STRIP (incorrectly doubled up as MODE 1 with triangles for as long as I can remember in the help file hint hint lol).

I won't say exactly what I am doing as have a few ideas floating around but can give an example of what I mean.

Imagine say I wanted to show a 6 digit score and all my 0-9 digits are on a simple texture map, getting the texture co-ords for each digit is straight forward enough & that I understand no problem. However because each digit is effectively a quad, after plotting the 1st POLYVECTOR with 4 points the next one shares the previous ones last 2 points which throws the texture co-ords out of sync.

Currently I am using POLYNEWSTRIP after each quad is plotted to basically reset the texture co-ords & draw subsequent POLY's. Basically I'm just after confirmation that I am doing it the right way & not misunderstanding the STRIP mode. If I am then what practical uses are there for STRIP mode using triangles?.

Please don't think I am being ignorant, it's just me wanting a better understanding of that mode using triangles & it's usage with regards to textures as my brain is not seeing it  :D.

Lee

7
Off Topic / PixiTracker
« on: 2013-Nov-23 »
For those of you who have heard of or used SunVox (of which there is a simple wrapper for somewhere in the forum) & also those of you that haven't, the creators website has a host of other goodies which are great fun & also useful.

One of which is PixiTracker(http://warmplace.ru/soft/pixitracker/), a very simple tracker that comes in 2 versions (16bit HQ Audio  & 1bit Old computer style audio). I have only played with the Windows one but versions are available for Linux/Mac/iOS/Android. Basically it's a no frills/no fuss tracker that come with quite a few sounds & to me is just perfect for retro style tunes.

The other stuff on the site includes various soft synths which are pretty much unique in my eyes & obviously SunVox. All that I looked at had a video or few showing what each one does & I have linked the 1bit PixiTracker below.

Go visit & have some fun  :D :D

<a href="http://www.youtube.com/watch?v=mi9hg1tPlk0" target="_blank">http://www.youtube.com/watch?v=mi9hg1tPlk0</a>

Lee

8
Off Topic / Origin "Humble Bundle"
« on: 2013-Aug-26 »
A friend of mine just sent me this link https://www.humblebundle.com/ where you can buy a bundle of games cheap.
  • The Bundle consists of
  • Dead Space™
  • Burnout™ Paradise: The Ultimate Box
  • Crysis® 2 Maximum Edition
  • Mirror's Edge™
  • Dead Space™ 3
  • Medal of Honor™
If you pay more than the average donation of $4.91 (currently) then you also get the following games
  • C&C™: Red Alert™ 3 - Uprising
  • Battlefield 3™
  • Populous™
  • The Sims™ 3 + Starter Pack

It seems a legit offer with the money going to charity so I thought I would pass the info on, but hurry as there is only 2 days left from the date of this message.

Lee

9
Off Topic / Buying a new phone
« on: 2013-Aug-17 »
In the next week I will be buying a new phone to finally replace my ageing HTC Wildfire which has given me solid service for the last 2-3 years  =D

I have the choice of any phone currently on the market & will stick with the Android platform due to quite a few app purchases plus the ability to develop/play around with GLB on it. An iPhone 5 did cross my mind briefly but cannot warrant or justify buying a Mac along with the Apple dev fee etc for developing plus like I said I have the required apps for my needs purchased from the play store.

After browsing online & popping into a shop to look at devices I have narrowed it down to 3 phones, An HTC One, Galaxy S4 & Xperia Z. Out of the 3 the Sony & HTC felt more solid/robust in the hand compared to the S4 which felt cheap & flimsy in some ways, no doubt it is a high quality plastic that is very durable but I'm just going on 1st impressions. I did like the quality of the display along with the hardware buttons on the S4 though which took my mind away from the feel a bit.

So my question is this. I would appreciate any comments from anyone on the above 3 phones as to what they are like to use on a day to day basis, for example any annoying quirks or anything they do which makes you think "I'm glad I got this one because ...". Obviously I could only mess around with each one briefly in the shop & all 3 are more than powerful enough for my needs.

BTW I am not interested in how the camera part performs as I have a digital SLR & no matter how much manufactures claim 13 MP etc etc a tiny little lens on a phone cannot compete with a real camera  :D

Cheers

Lee

10
2D-snippets / Cheap & cheerful Scanline effect
« on: 2013-Aug-04 »
Just a quick thing I knocked up purely out of curiosity, some may find it useful  :D

Simple to use with just a call to make_scanlines function with the sprite id you want to use then a call to draw_scanlines immediately before showscreen, although you can call it at a different time for strange effects.

Play around with the alphamode and/or the INTEGER(0xff000000) to alter the effect.

Works best with 2x2 blocky gfx (or normal gfx scaled x2).

Because the mem2sprite part is only dealing with a 1 pixel wide sprite it should be easily modified to provide a shutter like fade effect seen a lot in the 8bit days without to much trouble. Have a play around & see what you can come up with  =D

Lee

Code: GLBasic [Select]
// --------------------------------- //
// Project: Scanlines
// Start: Saturday, August 03, 2013
// IDE Version: 10.283


SETCURRENTDIR("Media") // go to media files

GLOBAL showlines%=FALSE,line_sprite%=1
GLOBAL sw%,sh%

SETSCREEN 640,480,FALSE

GETSCREENSIZE sw%,sh%

LOADSPRITE "Test1.png",0

make_scanlines(line_sprite%)

REPEAT

        DRAWSPRITE 0,0,0

        IF KEY(2)=TRUE THEN showlines%=TRUE             // Press "1" to show scanlines
        IF KEY(3)=TRUE THEN showlines%=FALSE    // Press "2" to hide scanlines

        IF showlines%=TRUE THEN draw_scanlines(line_sprite%)

        SHOWSCREEN

UNTIL KEY(1)


FUNCTION make_scanlines: spr_id%

        LOCAL pix%[],loop%

        DIM pix%[sh%]

        FOR loop%=0 TO sh%-1 STEP 2
                pix%[loop%]=INTEGER(0xff000000)
        NEXT

        MEM2SPRITE(pix%[],spr_id%,1,sh)

ENDFUNCTION

FUNCTION draw_scanlines: spr_id%

        ALPHAMODE -1

        STARTPOLY spr_id%
                POLYVECTOR     0,    0,0,    0,RGB(255,255,255)
                POLYVECTOR     0,sh%-1,0,sh%-1,RGB(255,255,255)
                POLYVECTOR sw%-1,sh%-1,0,sh%-1,RGB(255,255,255)
                POLYVECTOR sw%-1,    0,0,    0,RGB(255,255,255)
        ENDPOLY

        ALPHAMODE 0

ENDFUNCTION

11
Off Topic / Google fonts
« on: 2013-Jun-05 »
Found this by accident  :D

You can select the fonts you like into collections & download them as a zip at
http://www.google.com/fonts/

Or you can download the entire collection (around 2.5GB & 651 fonts) using mercurial at
http://code.google.com/p/googlefontdirectory/
Instructions on how to download via mercurial is provided in the above link for Windows/Mac/Linux etc

Most have an open license but the download includes the relevant license in the zip file so you know where you stand with the font.

Lee

12
GLBasic - en / How to free a generated sprite?
« on: 2013-Jun-04 »
The answer to this is probably easy & obvious but it is eluding me at the moment & driving me nuts  :D

I am modifying my fastflood fill routine to make it easier to fill a part of the screen or a sprite & also some optimisations (not to the fill routine itself as that's pretty much maxed as I can get it). When doing a fill on a screen it grabs the entire screen with SPRITE2MEM, does the fill then dumps the entire array back to a sprite. Writing the entire array back then calling MEM2SPRITE is far from optimal if say the area that has been filled is only small (say 50x70 pixels) as the bigger the array the longer MEM2SPRITE takes.

My solution is to copy only the modified area to a new sprite with an ID created with GENSPRITE hence making the call to MEM2SPRITE faster when dealing with smaller areas.

Once the sprite has been drawn how do I delete it from memory otherwise every call to the routine will create a new sprite & end up with loads of basically dead & useless sprites taking up memory. I don't really want 1 sprite left in memory after the routine is called as even that sprite is not needed once it has been drawn.

Lee


13
Off Topic / Tapatalk Android app
« on: 2013-May-25 »
Just a quick question.

Does anyone else here use the Tapatalk android app for reading this forum & if so do they have problems with it replacing some characters with smilies?, mainly with code that's been posted within a codeblock.

I just wanted to check if it's just my phone or a problem the app has with this forum. If anyone does have they same problem have they reported it to the developer & if not I will send them a post.

Cheers

Lee
 

14
GLBasic - en / Find duplicate images
« on: 2013-May-02 »
I have just updated/cleaned up my Amiga font converter so it is now just 1 extended type & now can load Amiga colourfonts. The way that the Amiga stores it's characters in the font means that there is a generic character graphic for characters that are not used in the font (see attached).

I could iterate through every character & do a pixel-to-pixel check but that seems a long winded way of doing it, along with not being very efficient. There must be a better way but for some strange reason I can't think of one at the moment   :D.

Any ideas would be welcomed.

Lee

15
Math / Number Base convertor
« on: 2013-Apr-27 »
Like it says in the title, A converter for different number bases ranging from base 2 to base 36.

Enjoy  =D

Lee

p.s if you use this example I seriously recommend you create a font to view the results, unless eyestrain/headache are your thing  :P
Code: GLBasic [Select]
SETCURRENTDIR("Media")

LOADFONT "smalfont.png",0

SETFONT 0

LOCAL num$,loop%

FOR loop=1 TO 20
        num$=Base_convert$("ff",16,loop)
        PRINT "Base="+loop,0,loop*17,1
        PRINT "Result="+num$,100,loop*17,1
NEXT

SHOWSCREEN

KEYWAIT

END

FUNCTION Base_convert$: number$,frombase%,tobase%

        LOCAL charset$="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        LOCAL loop%,value%,temp%,result$
       
        number$=UCASE$(number$)
        IF frombase < 2 OR frombase > 36 OR tobase% < 2 OR tobase% > 36 THEN RETURN number$
        FOR loop = 1 TO LEN(number$)
                value = INSTR(charset$, MID$(number$, loop-1, 1))
                IF value < 0 OR value >= frombase THEN RETURN
                temp = temp + value * POW(frombase,(LEN(number$) - loop))
        NEXT

        IF temp < 0 THEN RETURN number$

        result$ = ""

        REPEAT
                value = MOD(temp,tobase)
                temp = FLOOR(temp / tobase)
                result$ = MID$(charset$, value , 1) + result$
        UNTIL temp <= 0

        RETURN result$
       
ENDFUNCTION

// Uncomment for GLBasic V10
//FUNCTION Floor%: value%
//      RETURN INTEGER(value)
//ENDFUNCTION

Pages: [1] 2 3 4