Search found 8 matches

by peter
Tue Jun 08, 2004 11:36 pm
Forum: General Discussion
Topic: What will coming with PB 4.0 ??
Replies: 13
Views: 3217

OOP sucks (This is my opinion)
THOUGH i must admit that sometimes OOP or .NET features like passing an array to a functions are very handy. But better learn how to use pointers for that I think.

Compiled code is big and slow.

Some guys don't even know how to program without OOP.
Better learn how a ...
by peter
Thu May 13, 2004 3:45 pm
Forum: Coding Questions
Topic: OpenGL example for starters
Replies: 0
Views: 1232

OpenGL example for starters

I made an OpenGL program for noobies with perspective.
The OpenGl-Cube example with Purebasic doesn't have perspective view.
I'm just a noob myself so don't ask advanced questions.

You need Glwrapper, put it in the userlibs. You can get it here.
http://forums.purebasic.com/english/viewtopic.php?t ...
by peter
Wed May 12, 2004 12:42 am
Forum: Coding Questions
Topic: Opengl Cube
Replies: 2
Views: 1271

Ok
After a full day trying I have found out how to do it.
I need this stuff for a project for university.
I will make a new opengl cube program in purebasic, and will post the code
when it is ready for opengl starters. So that other noobies like me don't have to go through the pain i went trough.
by peter
Tue May 11, 2004 7:20 pm
Forum: Coding Questions
Topic: Opengl Cube
Replies: 2
Views: 1271

Opengl Cube

The Cube in the demo isn't displayed in real 3d.
How do I add perspective to the OpenGL Cube demo in the advanced examples section?
I would like to see the code for that. Thanks
by peter
Wed Apr 28, 2004 9:05 am
Forum: Coding Questions
Topic: Passing an array to a function
Replies: 3
Views: 1131

Passing an array to a function

I was wondering if I can pass an array to a function.
And the function must return an array.
For example I want to make a outproduct or dotproduct function

So

procedure outproduct(vecta(3),vectb(3))
code
return vect(c)
endprocedure

This doesn't work of course, but how can I do this easily?
by peter
Fri Apr 09, 2004 2:04 pm
Forum: Game Programming
Topic: sprite3d speed issues
Replies: 7
Views: 3205

Hmm, tell me, how can I see the difference between software and hardware 2d sprites?

I also have trouble with some other 3d cards.
The starfield is blended correctly on my radeon900pro, but with a radeon 9500 or geforce2mx I see nothing.
I use the following lines to display the stars ...
by peter
Fri Apr 09, 2004 11:02 am
Forum: Game Programming
Topic: sprite3d speed issues
Replies: 7
Views: 3205

Hmm I understand.
So I should use the 2dsprite library if possible.
I thought 3d would be faster.
The 2d hardware sprites are only possible if you have directx 8 isnt it?
by peter
Thu Apr 08, 2004 8:08 pm
Forum: Game Programming
Topic: sprite3d speed issues
Replies: 7
Views: 3205

sprite3d speed issues

I have a question about sprite3d.

I have a starfield scrolling with about 500 stars, 32x32 pixels blended sprites
I also have about 25-50 128x128 blended sprites scrolling. i also use bilinear filtering.
Everything runs fine here. 60-75 fps
But when i increase the amount 3 times, so 1500/75-150 ...