Search found 1263 matches

by dafhi
Dec 03, 2019 14:33
Forum: Projects
Topic: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.
Replies: 7
Views: 314

Re: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.

thanks Joshy =) i like triangle and sphere .. looks like path tracing perfection
by dafhi
Dec 03, 2019 5:33
Forum: Projects
Topic: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.
Replies: 7
Views: 314

Re: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.

cubemap, interference and a few others are black

great job regardless.

misspell

Code: Select all

'if len(filename)=0 then filename = "tlighthouse.glsl"
by dafhi
Dec 02, 2019 7:48
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

at present, address reassignment is my only intent. my project 'Palettator' has the new framework.

with your help i was able to come up with a wave description in layer constructor,
where previously i also had to hard-code the equivalent wave sequence (saw + tri + tri for example) in the output
by dafhi
Dec 02, 2019 1:14
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

thanks for your help. Had to make a method for post-construction function re-assignment. Everything's working perfectly! =)
by dafhi
Nov 30, 2019 11:53
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

how about

Code: Select all

'must not contain new data members
by dafhi
Nov 30, 2019 10:50
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

this is more clear to me

Code: Select all

type mytypeaa extends mytype  '' must not contain new members
by dafhi
Nov 29, 2019 21:08
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

fxm wrote:In my previous example, I chose 'return -1/0' just to remember the 2 possible returned values, which were '-1' / '0'.


Thought you were creating an uninitialized 'NaN' condition :)
by dafhi
Nov 29, 2019 13:04
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

polymorph compiles. i assume it will run faster [update: members to protected] [update: renamed values() => write()] ' faster than int() http://www.freebasic.net/forum/viewtopic.php?p=118633 #define flo(x) (((x)*2.0-0.5)shr 1) #define sng as single #define decl declare type func_vars extends object ...
by dafhi
Nov 29, 2019 10:11
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

my bad. thought it would just fill in the values.

updated.
by dafhi
Nov 29, 2019 9:07
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

[update 3] trying to do something like this ' faster than int() http://www.freebasic.net/forum/viewtopic.php?p=118633 #define flo(x) (((x)*2.0-0.5)shr 1) type func_vars extends object decl constructor ( sng = .5, sng = .5, sng = 0, sng = 1 ) decl virtual function wave( sng ) sng decl sub function_pa...
by dafhi
Nov 29, 2019 7:17
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

evolving my own style
by dafhi
Nov 29, 2019 1:27
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

it's about efficiency. per-pixel kind of thing :D
by dafhi
Nov 29, 2019 1:18
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

user-defined wave function sequence

is that what you mean by use case? I'm using it for my palette gen
by dafhi
Nov 28, 2019 23:18
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

paul doe

Code: Select all

dim as mytype a(2) = {"a", "b", "c"}

for x as integer = 0 to w-1
  var q = 0f
  for i as integer = 0 to ubound(a)
    q += a(i)
  Next
Next

fxm - that's insane in a good way
by dafhi
Nov 28, 2019 11:46
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 801

Re: [updated topic] member function ptr

lol. thanks dodicat

it's past my bedtime .. ill try it out tomorrow

Go to advanced search