Search found 497 matches

by Heathen
Sat Sep 26, 2009 9:27 pm
Forum: Announcement
Topic: Chipmunk 4.1.0 : 2D physic library
Replies: 15
Views: 9206

Re: Chipmunk 4.1.0 : 2D physic library

eddy wrote:uploaded
Thanks, I appreciate it! :)
by Heathen
Thu Sep 24, 2009 10:58 pm
Forum: Announcement
Topic: Chipmunk 4.1.0 : 2D physic library
Replies: 15
Views: 9206

Re: Chipmunk 4.1.0 : 2D physic library

Can someone reupload this please?

Thanks!
by Heathen
Mon Sep 21, 2009 9:13 pm
Forum: Game Programming
Topic: Collision optimization question
Replies: 7
Views: 3159

Re: Collision optimization question

I think that doing two distance checks (and a IF condition test) is slower than only one check.

Actually, that's not true. If I remove the first distance check, it slows down. Sqr and SQRT are slow compared to simple addition and subtraction. It would be faster if the objects were always ...
by Heathen
Mon Sep 21, 2009 8:52 pm
Forum: Game Programming
Topic: Collision optimization question
Replies: 7
Views: 3159

Collision optimization question

Hey guys. In one of my programs, there are 2d circles which represent 'figures' in the world which need to do accurate collision tests with each other. Because of the nature of the program, I can't just use simple bounding boxes, I need to do distance calculations since they're all circles and the ...
by Heathen
Tue May 05, 2009 2:15 am
Forum: Announcement
Topic: N3XTD: 3D engine
Replies: 201
Views: 107278

tmyke wrote: Although the current engine of terrain allowing already quite large and important zones. ;)
Thanks, I will take another look. What I'm looking for is a terrain system which is capable of having a view distance of many kilometers, while being memory/GPU/CPU efficient.
by Heathen
Mon May 04, 2009 3:55 am
Forum: Announcement
Topic: N3XTD: 3D engine
Replies: 201
Views: 107278

Very nice. :)


I noticed a problem though, the examples stay running in the background when you close the window.

What I would love to see in a 3d engine is a system for handling large terrain. Like a chunked LOD system. I know it's a lot of work though.
by Heathen
Sun Apr 19, 2009 11:46 pm
Forum: Off Topic
Topic: The Pirate Bay case
Replies: 114
Views: 20025

I think the biggest issue here is the fact that they weren't physically hosting warez of any kind. They are essentially an IP repository. Last I checked, it's not illegal to write on your webpage "OMG TWILIGHT DVD QUALITY!!!1!", unless you also offer the movie for download, which piratebay does not ...
by Heathen
Mon Apr 06, 2009 2:42 pm
Forum: Coding Questions
Topic: help read file in memory ecc... you can do ?
Replies: 13
Views: 2866

Can you be a little more specific?

Does this help?

Size = FileSize(filename)
If Size > 0
*buffer = AllocateMemory(Size)
If ReadFile(0,filename)
ReadData(0,*buffer,Size)
CloseFile(0)
EndIf
EndIf


I'm curious as to why you have not yet updated to the newest version of purebasic? It has some ...
by Heathen
Fri Mar 13, 2009 5:13 pm
Forum: Tricks 'n' Tips
Topic: Heightmaps using midpoint displacement
Replies: 12
Views: 7926

Does anyone have any code for handling large 3d terrain? I've been looking into various lod and paging algorithms and it hurts my brain lol.
by Heathen
Fri Mar 13, 2009 3:33 pm
Forum: Tricks 'n' Tips
Topic: Heightmaps using midpoint displacement
Replies: 12
Views: 7926

Thanks for this, I also have a few landscape generating procedures lying around for a game I've been making.

Diamond Square algorithm (got from a website):


#MAXPOW = 10
#MAXSZ = ((1<<#MAXPOW)+1)
Global Dim ht.f(#MAXSZ,#MAXSZ)

Procedure.d randf()
ProcedureReturn (Random(20001)-10000)/10000 ...
by Heathen
Mon Mar 09, 2009 11:45 am
Forum: Off Topic
Topic: Stream video download. How to, please!
Replies: 6
Views: 2047

by Heathen
Wed Mar 04, 2009 4:08 am
Forum: Coding Questions
Topic: NetworkServerEvent and WaitWindowEvent
Replies: 5
Views: 2073

I normally do something like this:

Code: Select all

Repeat
  netevent = NetworkServerEvent()
  winevent = WindowEvent()
  If winevent = 0 And netevent = 0
    Delay(1)
    Continue
  EndIf
 ;handle events

Until <whatever>
by Heathen
Thu Jan 29, 2009 3:37 am
Forum: Off Topic
Topic: I think PureBasic is great because..
Replies: 28
Views: 13779

I love the simplicity. Too many languages over-complicate crap, and I can't stand it. I like being able to just sit down and write a program without having to deal with endless crap in the GUI or having to remember overly-complicated rules. Everything is perfectly intuitive, at least for me.
by Heathen
Wed Dec 03, 2008 8:48 pm
Forum: Coding Questions
Topic: How to call a procedure via its address?
Replies: 4
Views: 1954

CallFunctionFast()
by Heathen
Wed Nov 05, 2008 10:09 am
Forum: Off Topic
Topic: 1984 in SFO?
Replies: 27
Views: 4237

Ollivier wrote:America is a democraty.
Actually, it's a constitutional republic. :)