Search found 48 matches

by parakeet
Dec 11, 2017 14:05
Forum: Projects
Topic: Normal Mapping
Replies: 50
Views: 7996

Re: Normal Mapping

Thanks St_W for the tip. So I tried with the 32b compiler and ...

...yes, really this is one of the nicest thing ever seen on this forum !

congrats !
by parakeet
Dec 09, 2017 15:39
Forum: Projects
Topic: Normal Mapping
Replies: 50
Views: 7996

Re: Normal Mapping

Dear All I am very curious to see this demo but I can't compile... Any help ? Thanks Command executed: "C:\Users\anselme\Documents\perso\FreeBASIC-1.05.0-win64\fbc.exe" "C:\Users\anselme\Documents\perso\FreeBASIC-1.05.0-win64\FBIDETEMP.bas" Compiler output: C:\Users\anselme\Docum...
by parakeet
Dec 08, 2017 17:24
Forum: Tips and Tricks
Topic: drawing 3D triangles by halves to create a sentinel/sentry game
Replies: 1
Views: 522

drawing 3D triangles by halves to create a sentinel/sentry game

Dear all, This little game is an example of how to draw 3D triangles in a simpler manner : by splitting them in two halves, by the line that passes through the medium point. This is simpler because each half can be drawn by a very simple for y = up to down : draw horiz line : next y BTW to play this...
by parakeet
Jan 19, 2012 10:54
Forum: Tips and Tricks
Topic: particle based interactive fluid
Replies: 21
Views: 3230

Re: particle based interactive fluid

Dear All, physics and FB lovers. I am working occasionnally with someone who does personnal researchs about physics, and demonstrates most of his ideas using simulators written in Free Basic. For instance he has built up a wave simulator (like the ones we have all seen in some video games), then in ...
by parakeet
May 27, 2011 15:30
Forum: Tips and Tricks
Topic: 30k simple web server
Replies: 39
Views: 22874

How do you know which port to use on the return of the CGI server response? :M A browser sends a request to the port 80 of the webserver. The server accepts the connection and leaves it open . Then the server reads the received request, calls any program (can be freebasic) by any means (can be a dl...
by parakeet
Jan 22, 2011 14:33
Forum: Tips and Tricks
Topic: The Active Belt
Replies: 7
Views: 1910

h4tt3n wrote:this was caused by the simulation not following Newton's laws of movement, and therefore not conservating energy.


oops, sorry for that. It's been corrected.
by parakeet
Dec 22, 2010 18:41
Forum: Tips and Tricks
Topic: The Active Belt
Replies: 7
Views: 1910

Ah, but it's not as fun as creating it yourself! Looks really interesting Parakeet, I'll have to look closer into what the torsion thing does. However, it does seem like your simulation does not conserve energy, which can be a problem because it makes the simulation "explode". I'll take a look at i...
by parakeet
Dec 22, 2010 18:12
Forum: Tips and Tricks
Topic: The Active Belt
Replies: 7
Views: 1910

Do you know ODE (= open dynamics engine)? It can handle stuff like this and much more physics, including collision detecting. No, I don't, but it seems quite interesting, if easy to link with your own applications and not too complex to use (complex objects to instanciate). Thank you for the tip, I...
by parakeet
Dec 22, 2010 14:00
Forum: Tips and Tricks
Topic: The Active Belt
Replies: 7
Views: 1910

The Active Belt

Hi all, This aims at simulating two kinds of spring effects : length and torsion. Here the elements are linked together by -a length constant (which tends to keep the same length for each element) and -a torsion constant which tends to unbend the belt Yours, Anselme 'The Active Belt, Anselme Dewavri...
by parakeet
Dec 14, 2010 16:32
Forum: Tips and Tricks
Topic: Yet another 3d Starfield
Replies: 4
Views: 1174

Re: Yet another 3d Starfield

Nice! Rotate by adding this to your loop. dim as single ro=.001 dim as single x = points(i).x * cos(ro) - points(i).y * sin(ro) dim as single y = points(i).x * sin(ro) + points(i).y * cos(ro) points(i).x = x points(i).y ...
by parakeet
Oct 15, 2008 7:18
Forum: Tips and Tricks
Topic: 30k simple web server
Replies: 39
Views: 22874

Re: upload a file

Hi everyone. In my HTML code there is a botton that select a file and other botton that send the post command to a free basic server (simple 30K). But it does not work! Only the path and name of file are recived on server. How can the server get the file and sabe it on its own folder? Thanks. This ...
by parakeet
Sep 17, 2008 9:31
Forum: Projects
Topic: WIP 3D Engine [v0.06] (v0.07 preview screenie)
Replies: 58
Views: 15997

Hi Hezad, But I have to admit I still don't understand how your code can ensure a good color interpolation since the step is always 1 well in fact with Bresenham, it is 1 or 0. For instance to go from 0 to 3 in 9 steps it will give : +0, +0, +1, +0, +0, +1, +0, +0, +1 Since the sub is used in a 3d c...
by parakeet
Sep 11, 2008 12:03
Forum: Projects
Topic: WIP 3D Engine [v0.06] (v0.07 preview screenie)
Replies: 58
Views: 15997

parakeet, I didn't really understood your last post. Can you precise your thoughts ? thanks :) I knew I would have to work :) here is how I do it : sub h_line(x0 as integer, col as integer, x1 as integer, col1 as integer, y as integer) dim as integer x, deltax = x1 - x0, deltacol = abs(...
by parakeet
Sep 10, 2008 16:10
Forum: Projects
Topic: WIP 3D Engine [v0.06] (v0.07 preview screenie)
Replies: 58
Views: 15997

Bresenham + Horizontal line = Bad idea except if you use a bresenham to compute the (x++, next color) instead of using it to compute the classical (y++, next x). In other words, the classical bresenham is used to draw an oblique white wireframe from (x1, y1, white) to (x2, y2, white) without using ...
by parakeet
Sep 10, 2008 16:01
Forum: Projects
Topic: WIP 3D Engine [v0.06] (v0.07 preview screenie)
Replies: 58
Views: 15997

one of the way so to optimize your code is to do some precalcs. You are doing a lot of sin and cos calcs on the fly. At the start of your program create an array, say [3600] big, and fill it at the program start with a loop. that gives you a .1 degree resolution. And if you are always rotating smal...

Go to advanced search