Search found 719 matches

by Gonzo
Dec 01, 2012 23:09
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 71772

Re: Procedural block world project

Time for testing is back... This time you can share this link with your friends if you want to What i want to know, is if its playable or not, including if you reduce the visual quality (see config.ini) Requirements: Tri-core 2ghz+, modern GPU with ogl3.x support, 500mb+ HDD space To get started, do...
by Gonzo
Nov 30, 2012 22:34
Forum: Community Discussion
Topic: BASIC Gaming issue #9 is out!
Replies: 5
Views: 866

Re: BASIC Gaming issue #9 is out!

lots of projects this time =) nice
by Gonzo
Nov 29, 2012 23:56
Forum: Community Discussion
Topic: Announcing BASIC Gaming #9 for 24th/25th November
Replies: 6
Views: 791

Re: Announcing BASIC Gaming #9 for 24th/25th November

swamped with school stuff =/ exams close by, so i couldn't contribute it would probably have been something render-ish, since that's what im mostly spending time on outside school ie. http://codeflow.org/entries/2011/apr/13/advanced-webgl-part-2-sky-rendering/ don't need powerful GPU to implement si...
by Gonzo
Nov 25, 2012 17:50
Forum: General
Topic: Questions on inheritance in FreeBASIC
Replies: 337
Views: 49213

Re: Questions on inheritance in FreeBASIC

ah, ok :) then it makes sense
probably should allow or require the word "class" when using OOP

'type' makes me think of something else:
1. type some_t : end type
2. type someptr as some_t ptr
by Gonzo
Nov 25, 2012 17:03
Forum: General
Topic: Questions on inheritance in FreeBASIC
Replies: 337
Views: 49213

Re: Questions on inheritance in FreeBASIC

i see, it sort of makes sense
but if

Code: Select all

class y
   protected:
     x
end class

class z extends y

end class

print z.x


can you access z.x from outside z?
that is an unfortunate side-effect if you can...
i would like to think it can only be accessed inside the derived class
by Gonzo
Nov 25, 2012 14:45
Forum: General
Topic: Questions on inheritance in FreeBASIC
Replies: 337
Views: 49213

Re: Questions on inheritance in FreeBASIC

your "all in one" example should be a part of the new wiki sites. It makes many things more clear. Perhaps but when the 'Cast' operator will support to be abstract/virtual, the use of the 'Operator Is' will be no more necessary logically, replaced by an abstract 'Cast' operator and severa...
by Gonzo
Nov 25, 2012 1:18
Forum: Beginners
Topic: Q how do i print text at the graphics cursor ? Solved
Replies: 5
Views: 385

Re: Q how do i print text at the graphics cursor ?

KeyPgDrawString Draw String (x, y), "text", &h316b9d in the manual for Print: "For more control over character style and text position in graphics modes, consider using Draw String." should be changed to something better, for example: "Note: The graphical equivalent of ...
by Gonzo
Nov 24, 2012 22:31
Forum: Projects
Topic: Procedural block world project
Replies: 310
Views: 71772

Re: Procedural block world project

yes i've seen some reflections mods, but none that i liked or did anything remotely worth doing :P i'm going to bet if he lowers the camera things will start to disappear because he's re-using the visibility set, but it's just a good guess =) i had reflections for over a year, until i decided they w...
by Gonzo
Nov 24, 2012 13:32
Forum: Projects
Topic: Metal-Crystal neural nets
Replies: 2
Views: 632

Re: Metal-Crystal neural nets

nice, even though i don't understand anything about neural related stuff :)
i like that you are using SSE, although i wish it was part of compiler to a larger degree
by Gonzo
Nov 23, 2012 1:32
Forum: General
Topic: Squares
Replies: 6648
Views: 376414

Re: Squares

you would want to compute a gaussian kernel for blurring otherwise its a "box filter", and not a very good blur the formula is: // find center position of kernel (half of kernel size) kCenterX = kCols / 2; kCenterY = kRows / 2; for(i=0; i < rows; ++i) // rows { for(j=0; j < cols; ++j) // c...
by Gonzo
Nov 22, 2012 13:58
Forum: Community Discussion
Topic: Ramblings of crazed multi-threaders
Replies: 20
Views: 3129

Re: Ramblings of crazed multi-threaders

what kind of computer you have is irrelevant you can run threaded applications on any system and they will work the same way the only difference is number of cores distributes the load as evenly as possibly across threads hyperthreading is basically splitting an actual CPU core into 2 virtual cores ...
by Gonzo
Nov 22, 2012 2:04
Forum: Tips and Tricks
Topic: Oil Paint Effect
Replies: 4
Views: 960

Re: Oil Paint Effect

#define NULL 0 const as string filename = "test.bmp" const as integer OIL_RADIUS = 12 '' brush radius const as integer MAX_SAMPLES = 80 '' exit treshold type imagesize_t as integer w, h end type type rgbi_t as integer r, g, b, i end type function imageSize(file as string) as imagesize_t d...
by Gonzo
Nov 22, 2012 0:57
Forum: Tips and Tricks
Topic: Oil Paint Effect
Replies: 4
Views: 960

Re: Oil Paint Effect

type rgb_t as integer r, g, b End Type dim as rgb_t test = type<rgb_t> (64, 128, 255) '' Luma: 0.2989 * R + 0.5870 * G + 0.1140 * B dim as integer intensity1 = (0.2989 * test.r + 0.5870 * test.g + 0.1140 * test.b) and 255 dim as integer intensity2 = test.r shr 2 + test.g shr 1 + test.b shr 2 print ...
by Gonzo
Nov 21, 2012 21:36
Forum: Game Dev
Topic: text aventure : rooms
Replies: 2
Views: 1558

Re: text aventure : rooms

nice game

Code: Select all

You stole only  8 items .
You took  21 moves .
You have  17 points .

GAME OVER .


apparently i only stole 8 items.. i must leave the thieving to others =)
by Gonzo
Nov 21, 2012 14:13
Forum: Community Discussion
Topic: Ramblings of crazed multi-threaders
Replies: 20
Views: 3129

Re: Ramblings of crazed multi-threaders

i ran it twice without problem, but that is no indication of it working flawlessly.. the number of threads used does vastly increase the chances of failure, though it's hard to say depending on what you were testing exactly if all those threads were doing independent work, then you may just have a c...

Go to advanced search